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

Identifying otel http calls #5918

Merged

Conversation

LikeTheSalad
Copy link
Contributor

Based on comments in the previous Java SIG meeting, I've created this approach to suppress automatic instrumentation using a Context key as it's done for Python.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...lemetry/exporter/internal/InstrumentationUtil.java 100.00% <100.00%> (ø)
...orter/sender/okhttp/internal/OkHttpHttpSender.java 100.00% <100.00%> (+1.56%) ⬆️
...ry/exporter/sender/okhttp/internal/OkHttpUtil.java 100.00% <100.00%> (ø)
...pentelemetry/sdk/internal/DaemonThreadFactory.java 93.75% <100.00%> (+2.84%) ⬆️
...orter/sender/okhttp/internal/OkHttpGrpcSender.java 80.21% <71.42%> (+1.33%) ⬆️

... and 33 files with indirect coverage changes

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

Yeah this is a cool addition that will benefit Android. Thanks!

@jack-berg jack-berg added this to the 1.32.0 milestone Nov 3, 2023
LikeTheSalad and others added 3 commits November 6, 2023 13:26
…nal/InstrumentationUtil.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
…nal/InstrumentationUtil.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
…r/sender/okhttp/internal/OkHttpHttpSenderTest.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
@jack-berg
Copy link
Member

Just want to get confirmation from @open-telemetry/java-instrumentation-maintainers that this strategy in core will allow instrumentation to accomplish the required suppression? A 👍 on this comment would be great.

@jack-berg
Copy link
Member

@LikeTheSalad can you open an issue to track adding suppression to the other exporters? Zipkin, grpc sender, and jaeger come to mind.

@LikeTheSalad
Copy link
Contributor Author

@LikeTheSalad can you open an issue to track adding suppression to the other exporters? Zipkin, grpc sender, and jaeger come to mind.

Sure, I've created 2 issues, one for Zipkin and the other for Jaeger:

I'm not sure if I might be missing something but I believe the changes in this PR should cover the grpc sender?

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.

4 participants