Class RpcMetricsContextCustomizers
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.rpc.RpcMetricsContextCustomizers
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 Summary
Modifier and TypeMethodDescriptionstatic <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST> dualEmitContextCustomizer(RpcAttributesGetter<REQUEST, ?> getter) Deprecated.Returns aContextCustomizerthat captures the oldrpc.methodvalue in context so that RPC metrics can use it when both old and stable semantic conventions are active.
-
Method Details
-
dualEmitContextCustomizer
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST> dualEmitContextCustomizer(RpcAttributesGetter<REQUEST, ?> getter) Deprecated.Returns aContextCustomizerthat captures the oldrpc.methodvalue in context so that RPC metrics can use it when both old and stable semantic conventions are active.
-