Interface TracerProvider
- All Known Implementing Classes:
OpenTelemetryTracerProvider
public interface TracerProvider
Java service to integrate various distributed tracers.
The first tracer configured will be used.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether there is a tracer available by this provider.Create a new builder for this tracer.Provide current span.default 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
-
Method Details
-
createBuilder
-
global
Deprecated, for removal: This API element is subject to removal in a future version.useServices.get(Class)to obtain the application-wideTracerfrom the service registryLegacy global tracer access. This method will be removed in a future major version, remove anOverrideannotation from it to be "future proof".- Returns:
- never returns
- Throws:
UnsupportedOperationException- always
-
global
Deprecated, 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 requestedLegacy global tracer assignment.Helidon 27 uses the service registry for application-wide tracer instances. This method is retained only for compatibility with provider implementations compiled against earlier versions. It is expected to be a no-op and will be removed in a future version.
- Parameters:
tracer- ignored- Throws:
NullPointerException- if tracer is null
-
currentSpan
-
available
boolean available()Whether there is a tracer available by this provider. This allows co-existence of multiple tracing providers within the same VM.- Returns:
- whether this tracer provider has a tracer available
-
Services.get(Class)to obtain the application-wideTracerfrom the service registry