Class MessagingProcessContextCustomizer<REQUEST>

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.messaging.internal.MessagingProcessContextCustomizer<REQUEST>
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST>

public class MessagingProcessContextCustomizer<REQUEST> extends Object implements io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST>
    create(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter)
     
    static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST>
    create(BiFunction<io.opentelemetry.context.Context,REQUEST,io.opentelemetry.context.Context> producerContextExtractor)
     
    io.opentelemetry.context.Context
    onStart(io.opentelemetry.context.Context parentContext, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST> create(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter)
    • create

      public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST> create(BiFunction<io.opentelemetry.context.Context,REQUEST,io.opentelemetry.context.Context> producerContextExtractor)
    • onStart

      public io.opentelemetry.context.Context onStart(io.opentelemetry.context.Context parentContext, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
      Specified by:
      onStart in interface io.opentelemetry.instrumentation.api.instrumenter.ContextCustomizer<REQUEST>