Class OpenTelemetryClientTracerSetup

java.lang.Object
io.evitadb.driver.observability.trace.OpenTelemetryClientTracerSetup

public class OpenTelemetryClientTracerSetup extends Object
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 Details

    • OpenTelemetryClientTracerSetup

      public OpenTelemetryClientTracerSetup()
  • Method Details

    • setTracingEndpointUrlAndProtocol

      public static void setTracingEndpointUrlAndProtocol(@Nonnull String tracingEndpointUrl, @Nullable String protocol)
    • 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