-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed to shutdown OpenTelemetry trace exporter gracefully. #6651
Comments
Thanks for bringing this up. I think it's not wired up correctly: This Lines 538 to 543 in d3a4a87
should happen in the shutdown code path, maybe here Lines 845 to 861 in d3a4a87
or here Lines 225 to 249 in d3a4a87
|
@nicolaschotard if you'd like to submit a fix based on Stephan's feedback feel free to do so. We're happy to help out. Thanks for reporting this. |
Hey thank you both for your quick answers. And indeed, moving the |
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulShutdonw function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com>
And I believe this commit introduced the bug. |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue. |
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulShutdonw function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: open-policy-agent#6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
When running OPA with the distributed tracing option enabled, the OpenTelemetry trace exporter is not gracefully shut down when the server is stopped. This PR fixes that issues by moving the trace exporter shutdown in the gracefulServerShutdown function. Fixes: #6651 Signed-off-by: Nicolas Chotard <nicolas.chotard@backmarket.com> Signed-off-by: David Wobrock <david.wobrock@backmarket.com>
Short description
When running OPA with the distributed tracing option enabled, we get the following error when the server is stopped.
Steps To Reproduce
opa
(I've tried with version 0.62 and the latest version)Expected behavior
The
OpenTelemetry
trace exporter should be gracefully shut down, and no error should be seen.Additional context
We have seen this error appeared after upgrading OPA from version 0.59 to 0.62.
The text was updated successfully, but these errors were encountered: