The TracingHook adds OpenTelemetry support to the LaunchDarkly SDK.

By default, span events will be added for each call to a "Variation" method.

The span event will include the canonicalKey of the context, the provider of the evaluation (LaunchDarkly), and the key of the flag being evaluated.

Hierarchy

  • TracingHook

Implements

  • Hook

Constructors

Properties

_options: ValidatedHookOptions
_tracer: Tracer = ...

Methods

  • Implements the "afterEvaluation" stage of the TracingHook.

    Parameters

    • hookContext: EvaluationSeriesContext
    • data: EvaluationSeriesData
    • detail: LDEvaluationDetail

    Returns EvaluationSeriesData

  • Implements the "beforeEvaluation" stage of the TracingHook.

    Parameters

    • hookContext: EvaluationSeriesContext
    • data: EvaluationSeriesData

    Returns EvaluationSeriesData

  • Get the meta-data for the tracing hook.

    Returns HookMetadata

Generated using TypeDoc