Class RpcMetricsContextCustomizers

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.rpc.RpcMetricsContextCustomizers

@Deprecated public final class RpcMetricsContextCustomizers extends Object
Deprecated.
This class is only needed during the transition period when both old and stable RPC semantic conventions are emitted simultaneously.
Provides ContextCustomizer instances for RPC metrics dual-semconv support.
  • Method Details

    • dualEmitContextCustomizer

      public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST> dualEmitContextCustomizer(RpcAttributesGetter<REQUEST,?> getter)
      Deprecated.
      Returns a ContextCustomizer that captures the old rpc.method value in context so that RPC metrics can use it when both old and stable semantic conventions are active.