Class OpenTelemetryClientTracerSetup
java.lang.Object
io.evitadb.driver.observability.trace.OpenTelemetryClientTracerSetup
This class is responsible for setting up the OpenTelemetry instance, the tracer and a propagator context.
Traces are exported to the configured endpoint URL that is set via constructor. It has to be set before using
this tracer.
- Author:
- Tomáš Pozler, FG Forrest a.s. (c) 2024
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.api.OpenTelemetryRetrieves the instance of OpenTelemetry.static voidsetTracingEndpointUrlAndProtocol(String tracingEndpointUrl, String protocol)
-
Constructor Details
-
OpenTelemetryClientTracerSetup
public OpenTelemetryClientTracerSetup()
-
-
Method Details
-
setTracingEndpointUrlAndProtocol
-
getOpenTelemetry
@Nonnull public static io.opentelemetry.api.OpenTelemetry getOpenTelemetry()Retrieves the instance of OpenTelemetry. If the instance is not initialized, it will be initialized before returning.- Returns:
- the OpenTelemetry instance
-