You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Helidon tracing API allows developer code to set the global tracer by invoking Tracer.global(tracer).
Doing so when using the OpenTelemetry tracing provider causes an incorrect exception to be thrown:
Exception in thread "main" java.lang.IllegalArgumentException: Tracer must be an instance of Helidon OpenTelemetry tracer. Please use HelidonOpenTelemetry to create such instance
at io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerProvider.global(OpenTelemetryTracerProvider.java:133)
at io.helidon.tracing.TracerProviderHelper.global(TracerProviderHelper.java:80)
at io.helidon.tracing.Tracer.global(Tracer.java:50)
This happens even if the provided tracer is indeed a HelidonOpenTelemetry object.
Steps to reproduce
With a dependency on helidon-tracing-providers-opentelemetry and helidon-tracing-api add code something like this:
Environment Details
Problem Description
The Helidon tracing API allows developer code to set the global tracer by invoking
Tracer.global(tracer)
.Doing so when using the OpenTelemetry tracing provider causes an incorrect exception to be thrown:
This happens even if the provided
tracer
is indeed aHelidonOpenTelemetry
object.Steps to reproduce
With a dependency on
helidon-tracing-providers-opentelemetry
andhelidon-tracing-api
add code something like this:The last line triggers the exception even though the provided tracer is of the correct type.
The text was updated successfully, but these errors were encountered: