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

OpenTelemetry metrics exporter instrumentation breaks with instrument=false #3326

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

JonasKunz
Copy link
Contributor

@JonasKunz JonasKunz commented Sep 20, 2023

What does this PR do?

We discovered that settings instrument=false "breaks" the opentelemetry metrics instrumentation:

  • The GlobalOpenTelemetry instrumentation still works as expected
  • SdkMeterProviderBuilderInstrumentation however gets disabled
  • As a result no exporter is setup on the embedded metric SDK and therefore no metrics are exported.

Checklist

  • This is a bugfix

@JonasKunz JonasKunz merged commit a40988e into elastic:main Sep 20, 2023
13 checks passed
@JonasKunz JonasKunz deleted the metrics-instrument-fix branch September 20, 2023 14:40
schikin pushed a commit to schikin/apm-agent-java that referenced this pull request Oct 11, 2023
…=false (elastic#3326)

* OpenTelemetry metrics exporter instrumentation should be enabled even with instrument=false

* Added changelog

* Reproduce failure in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants