Interface TransactionContextPropagator

Hierarchy

  • TransactionContextPropagator

Methods

  • Experimental

    EXPERIMENTAL: Transaction context propagation is experimental and subject to change. The OpenFeature Enhancement Proposal regarding transaction context can be found here.

    Returns the currently defined transaction context using the registered transaction context propagator.

    Returns

    The current transaction context

    Returns EvaluationContext

  • Experimental

    EXPERIMENTAL: Transaction context propagation is experimental and subject to change. The OpenFeature Enhancement Proposal regarding transaction context can be found here.

    Sets the transaction context using the registered transaction context propagator.

    Type Parameters

    • R

      The return value of the callback

    Parameters

    • transactionContext: EvaluationContext

      The transaction specific context

    • callback: ((...args: unknown[]) => R)

      Callback function used to set the transaction context on the stack

        • (...args: unknown[]): R
        • Parameters

          • Rest ...args: unknown[]

          Returns R

    • Rest ...args: unknown[]

      Optional arguments that are passed to the callback function

    Returns void

Generated using TypeDoc