Class RpcExceptionEventExtractors

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.rpc.internal.RpcExceptionEventExtractors

public final class RpcExceptionEventExtractors extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Details

    • setRpcClientExceptionEventExtractor

      public static <REQUEST> void setRpcClientExceptionEventExtractor(io.opentelemetry.instrumentation.api.instrumenter.InstrumenterBuilder<REQUEST,?> builder)
      Configures the RPC client exception event name and severity. Only takes effect when emitting exceptions as logs is enabled via the otel.semconv.exception.signal.preview flag.
    • setRpcServerExceptionEventExtractor

      public static <REQUEST> void setRpcServerExceptionEventExtractor(io.opentelemetry.instrumentation.api.instrumenter.InstrumenterBuilder<REQUEST,?> builder)
      Configures the RPC server exception event name and severity. Only takes effect when emitting exceptions as logs is enabled via the otel.semconv.exception.signal.preview flag.