Class DriverTracingContext
java.lang.Object
io.evitadb.driver.observability.trace.DriverTracingContext
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ClientInterceptorRetrieves the client interceptor for tracing.voidsetTracingEndpointUrlAndProtocol(String tracingEndpointUrl, String tracingEndpointProtocol) Set the tracing endpoint URL and protocol for the OpenTelemetryClientTracerSetup.
-
Constructor Details
-
DriverTracingContext
public DriverTracingContext()
-
-
Method Details
-
getClientInterceptor
@Nullable public io.grpc.ClientInterceptor getClientInterceptor()Retrieves the client interceptor for tracing.- Specified by:
getClientInterceptorin interfaceClientTracingContext- 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:
setTracingEndpointUrlAndProtocolin interfaceClientTracingContext- 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.
-