Interface ContextCustomizer<REQUEST>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ContextCustomizer<REQUEST>
Customizer of the Context. Instrumented libraries will call start(Context, Object, Attributes) during Instrumenter.start(Context, Object), allowing customization of the Context that is returned from that method.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.context.Context
    start(io.opentelemetry.context.Context context, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
    Context customizer method that is called during Instrumenter.start(Context, Object), allowing customization of the Context that is returned from that method.
  • Method Details

    • start

      io.opentelemetry.context.Context start(io.opentelemetry.context.Context context, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
      Context customizer method that is called during Instrumenter.start(Context, Object), allowing customization of the Context that is returned from that method.