File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/mongo/tracing/open_telemetry Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ def cursor_context_map
7474 def cursor_map_key ( session , cursor_id )
7575 return if cursor_id . nil? || session . nil?
7676
77- "#{ session . id } -#{ cursor_id } "
77+ "#{ session . session_id [ 'id' ] . to_uuid } -#{ cursor_id } "
7878 end
7979
8080 def parent_context_for ( operation_context , cursor_id )
8181 if ( key = transaction_map_key ( operation_context . session ) )
8282 transaction_context_map [ key ]
83- elsif ( key = cursor_map_key ( operation_context . session , cursor_id ) )
84- cursor_context_map [ key ]
83+ elsif ( _key = cursor_map_key ( operation_context . session , cursor_id ) )
84+ # We return nil here unless we decide how to nest cursor operations.
85+ nil
86+ # cursor_context_map[key]
8587 end
8688 end
8789
@@ -92,7 +94,7 @@ def transaction_context_map
9294 def transaction_map_key ( session )
9395 return if session . nil? || session . implicit? || !session . in_transaction?
9496
95- "#{ session . id } -#{ session . txn_num } "
97+ "#{ session . session_id [ 'id' ] . to_uuid } -#{ session . txn_num } "
9698 end
9799
98100 private
You can’t perform that action at this time.
0 commit comments