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
74
74
def cursor_map_key ( session , cursor_id )
75
75
return if cursor_id . nil? || session . nil?
76
76
77
- "#{ session . id } -#{ cursor_id } "
77
+ "#{ session . session_id [ 'id' ] . to_uuid } -#{ cursor_id } "
78
78
end
79
79
80
80
def parent_context_for ( operation_context , cursor_id )
81
81
if ( key = transaction_map_key ( operation_context . session ) )
82
82
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]
85
87
end
86
88
end
87
89
@@ -92,7 +94,7 @@ def transaction_context_map
92
94
def transaction_map_key ( session )
93
95
return if session . nil? || session . implicit? || !session . in_transaction?
94
96
95
- "#{ session . id } -#{ session . txn_num } "
97
+ "#{ session . session_id [ 'id' ] . to_uuid } -#{ session . txn_num } "
96
98
end
97
99
98
100
private
You can’t perform that action at this time.
0 commit comments