-
Notifications
You must be signed in to change notification settings - Fork 853
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
Replacing the okhttp based sender using JDK autoconfigure #5958
Comments
That's correct. Based on your source code, you're using the gRPC version. The only alternative to the okhttp implementation for gRPC is If you want to do this with autoconfigure, you'll want to provide an implementation of AutoConfigurationCustomizerProvider, and call addSpanExporterCustomizer, something like:
Can also call do this programmatically if you're manually invoking
|
Oh I see you tried my recommendation above. What was the problem? |
Thanks @jack-berg I'll try to do that |
Probably I'm doing something wrong. I think I tried both the options here => https://github.com/fax4ever/telemetry-play/tree/main/sdk-autoconfigure-exporter |
I finally got around to taking a closer look at this an you are totally right that something is wrong:
|
Thank you @jack-berg. It does make sense to me. |
Is your feature request related to a problem? Please describe.
We would like to replace the okhttp based sender. It seems to be possible replacing the usages of
opentelemetry-exporter-sender-okhttp
withopentelemetry-exporter-sender-jdk
andopentelemetry-exporter-sender-grpc-managed-channel
.All work if create the SDK manually and setting the channel:
What if the OpenTelemetry SDK is created by the autoconfigure project?
Describe the solution you'd like
Find a way to replace the okhttp based sender with the SDK autoconfigure.
Describe alternatives you've considered
I tried to add a
SpanExporterCustomizer
without success.Additional context
Hi tried to do it here: https://github.com/fax4ever/telemetry-play/blob/main/sdk-autoconfigure-exporter/src/main/java/fax/play/OTelConfig.java.
The text was updated successfully, but these errors were encountered: