Skip to content

Commit 0c9fa36

Browse files
committed
Revert ActivityContext manager to avoid unrelated async requests from showing in parent span
1 parent c480561 commit 0c9fa36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenTelemetryApi/Context/ActivityContextManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import Foundation
4343
var contextValue: AnyObject?
4444
rlock.lock()
4545

46-
guard let context = contextMap[activityIdent] ?? contextMap[parentIdent] ?? contextMap.first?.value
46+
guard let context = contextMap[activityIdent] ?? contextMap[parentIdent]
4747
else {
4848
rlock.unlock()
4949
return nil

0 commit comments

Comments
 (0)