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

bugfix: Batch processor did not shut down cleanly, losing metrics #23

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

lf-
Copy link
Collaborator

@lf- lf- commented Aug 8, 2022

When the process exited, the sending of metrics to OTLP was rudely
interrupted by cancel. This meant that the root span would often go
missing if you instrumented some kind of command line application with
the root span created at process creation.

This patch changes the shutdown logic to first ask the exporter to send
what it has and shut down, then forcibly kill it if that takes too long.

When the process exited, the sending of metrics to OTLP was rudely
interrupted by `cancel`. This meant that the root span would often go
missing if you instrumented some kind of command line application with
the root span created at process creation.

This patch changes the shutdown logic to first ask the exporter to send
what it has and shut down, then forcibly kill it if that takes too long.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants