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. The onStart(Context, Object, Attributes) method will be called during the Instrumenter start, allowing customization of the Context just before the Instrumenter returns it.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.context.Context
    onStart(io.opentelemetry.context.Context parentContext, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
    Allows to customize the operation Context.
  • Method Details

    • onStart

      io.opentelemetry.context.Context onStart(io.opentelemetry.context.Context parentContext, REQUEST request, io.opentelemetry.api.common.Attributes startAttributes)
      Allows to customize the operation Context.