Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

O11Y-3733: opentelemetry-dart: Implement Improvements to Timer in BatchSpanProcessor #137

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

michaelyeager-wf
Copy link
Contributor

Which problem is this PR solving?

The implementation of Timer for periodic export of spans from BatchSpanProcessor is convoluted and not as null-safe as it should be.

This PR simplifies how BatchSpanProcessor uses Timer in emitting spans.

How Has This Been Tested?

  • Confirmed that unit tests pass following these changes.
  • Loaded these changes in a small testing application and confirmed that it can be used to properly emit traces.

@michaelyeager-wf
Copy link
Contributor Author

Loaded these changes in a small testing application and confirmed that it can be used to properly emit traces.

QA +1

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Copy link
Contributor

@kennytrytek-wf kennytrytek-wf left a comment

Choose a reason for hiding this comment

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

This behavior is in accordance with the spec.
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#batching-processor

One thing that is missing is immediate batch export once maximum batch size has been reached, but that was missing before too. It should be added separately.

@michaelyeager-wf
Copy link
Contributor Author

@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rmconsole4-wk rmconsole4-wk merged commit 9b9f6c1 into master Nov 28, 2023
1 check passed
@rmconsole4-wk rmconsole4-wk deleted the myeager-wf/O11Y-3733 branch November 28, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants