-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore: update opentelemetry swift #136
Conversation
Investigating the test failure, it seems some of the spans are duplicated |
@@ -8,11 +8,23 @@ import Foundation | |||
/// Implementation for the Span class that records trace events. | |||
public class RecordEventsReadableSpan: ReadableSpan { | |||
public var isRecording = true | |||
|
|||
fileprivate let internalStatusQueue = DispatchQueue(label: "org.opentelemetry.RecordEventsReadableSpan.internalStatusQueue", attributes: .concurrent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the duplicate spans be coming from otel creating spans from different threads? I am wondering if a serial queue would fix the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was fixed with open-telemetry/opentelemetry-swift#400
Mainly to bring in open-telemetry/opentelemetry-swift#379