Class DriverTracingContext

java.lang.Object
io.evitadb.driver.observability.trace.DriverTracingContext
All Implemented Interfaces:
ClientTracingContext

public class DriverTracingContext extends Object implements ClientTracingContext
Implementation of ClientTracingContext for the driver. It depends on a gRPC library and as such, it returns all necessary gRPC related objects.
Author:
Tomáš Pozler, FG Forrest a.s. (c) 2024
  • Constructor Details

    • DriverTracingContext

      public DriverTracingContext()
  • Method Details

    • getClientInterceptor

      @Nullable public io.grpc.ClientInterceptor getClientInterceptor()
      Retrieves the client interceptor for tracing.
      Specified by:
      getClientInterceptor in interface ClientTracingContext
      Returns:
      the client interceptor for tracing
    • setTracingEndpointUrlAndProtocol

      public void setTracingEndpointUrlAndProtocol(@Nonnull String tracingEndpointUrl, @Nonnull String tracingEndpointProtocol)
      Set the tracing endpoint URL and protocol for the OpenTelemetryClientTracerSetup. The tracing endpoint URL and protocol are used to configure the export of traces to the specified endpoint.
      Specified by:
      setTracingEndpointUrlAndProtocol in interface ClientTracingContext
      Parameters:
      tracingEndpointUrl - The URL of the tracing endpoint.
      tracingEndpointProtocol - The protocol to be used for exporting traces (e.g., HTTP, GRPC).
      Throws:
      NullPointerException - If either tracingEndpointUrl or tracingEndpointProtocol is null.