OpenTelemetry SDK
    Preparing search index...

    1.0.0

    interface Context {
        deleteValue(key: symbol): @opentelemetry/api.Context;
        getValue(key: symbol): unknown;
        setValue(key: symbol, value: unknown): @opentelemetry/api.Context;
    }
    Index
    • Return a new context which inherits from this context but does not contain a value for the given key.

      Parameters

      • key: symbol

        context key for which to clear a value

      Returns @opentelemetry/api.Context

    • Get a value from the context.

      Parameters

      • key: symbol

        key which identifies a context value

      Returns unknown

    • Create a new context which inherits from this context and has the given key set to the given value.

      Parameters

      • key: symbol

        context key for which to set the value

      • value: unknown

        value to set for the given key

      Returns @opentelemetry/api.Context