Class InstrumenterContext

java.lang.Object
io.opentelemetry.instrumentation.api.internal.InstrumenterContext

public final class InstrumenterContext extends Object
Helper class for sharing computed values between different AttributesExtractors and SpanNameExtractor called in the start phase of the Instrumenter.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • computeIfAbsent

      public static <T> T computeIfAbsent(String key, Function<String,T> function)
    • reset

      public static void reset()