Skip to content
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

Merged
merged 8 commits into from
Apr 11, 2023
Merged

chore: update opentelemetry swift #136

merged 8 commits into from
Apr 11, 2023

Conversation

seemk
Copy link
Contributor

@seemk seemk commented Apr 4, 2023

@seemk seemk requested a review from johnbley as a code owner April 4, 2023 11:10
@seemk
Copy link
Contributor Author

seemk commented Apr 4, 2023

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)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seemk seemk merged commit 580e9ab into main Apr 11, 2023
@johnbley johnbley deleted the update-otel branch February 26, 2024 13:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants