Class OpenTelemetryTracerProvider
java.lang.Object
io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerProvider
- All Implemented Interfaces:
TracerProvider
Service loader provider implementation for
TracerProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aSpanrepresenting the currently-active OpenTelemetry span with any current baggage set on the returned span.booleanWhether there is a tracer available by this provider.Create a new builder for this tracer.Provide current span.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TracerProvider
global, globalModifier and TypeMethodDescriptiondefault Tracerglobal()Deprecated, for removal: This API element is subject to removal in a future version.default voidDeprecated, for removal: This API element is subject to removal in a future version.useServices.set(Class, Object[])to register aTracerin the service registry before tracing is requested
-
Constructor Details
-
OpenTelemetryTracerProvider
public OpenTelemetryTracerProvider()Required public constructor forServiceLoader.
-
-
Method Details
-
activeSpan
-
createBuilder
Description copied from interface:TracerProviderCreate a new builder for this tracer.- Specified by:
createBuilderin interfaceTracerProvider- Returns:
- a tracer builder
-
currentSpan
Description copied from interface:TracerProviderProvide current span.- Specified by:
currentSpanin interfaceTracerProvider- Returns:
- current span, or empty optional if current span cannot be found
-
available
public boolean available()Description copied from interface:TracerProviderWhether there is a tracer available by this provider. This allows co-existence of multiple tracing providers within the same VM.- Specified by:
availablein interfaceTracerProvider- Returns:
- whether this tracer provider has a tracer available
-
Services.get(Class)to obtain the application-wideTracerfrom the service registry