Authenticator
interface can't be used with OtlpHttpSpanExporter
#5389
Labels
Bug
Something isn't working
Describe the bug
We can't use the
Authenticator
interface to configure http client used byOtlpHttpSpanExporter
. You can only useAuthenticator
interface withOkHttpExporterBuilder
which is used internally by the span exporter.Steps to reproduce
Caused by: java.lang.IllegalArgumentException: Delegate field is not type DefaultGrpcExporterBuilder or OkHttpGrpcExporterBuilder. at io.opentelemetry.exporter.internal.auth.Authenticator.setAuthenticatorOnDelegate(Authenticator.java:48)
What did you expect to see?
It should be possible to configure an authentication interceptor / delegate to generate a valid token when it is necessary
What version and what artifacts are you using?
Artifacts:
opentelemetry-api
,opentelemetry-sdk
,opentelemetry-exporter-otlp
,opentelemetry-exporter-common
Version: 1.25.0
Environment
Compiler: zulu JDK 17
OS: macOS 13.3.1
The text was updated successfully, but these errors were encountered: