-
Notifications
You must be signed in to change notification settings - Fork 848
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
optimize resource detection #6222
optimize resource detection #6222
Conversation
5d74279
to
2ba1bb0
Compare
2ba1bb0
to
a8b30ea
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6222 +/- ##
============================================
- Coverage 91.05% 91.05% -0.01%
+ Complexity 5687 5685 -2
============================================
Files 621 622 +1
Lines 16642 16660 +18
Branches 1703 1706 +3
============================================
+ Hits 15153 15169 +16
Misses 998 998
- Partials 491 493 +2 ☔ View full report in Codecov by Sentry. |
Can the jar service name provider check for the presence of |
After re-reading the |
Maybe, but I'd argue that its making them more confusing. The behavior of |
that was not the idea - not providing |
Thinking about it, an abstract superclass can probably achieve a similar level of disability for authors. |
I tried this approach out: open-telemetry/opentelemetry-java-instrumentation#10540 |
Closing in favor of #6250 |
optimize resource detection by skipping providers that would add no new keys
Most of the functionality is already working with the following pattern: give the lower priority detector a higher order, so that it runs later an can check if it should be skipped
However, the environment resource provider runs last - so if the user adds the service name using
service.name
- the jar service name provider would still be run in vain.