Options which allow configuring the tracing hook.

Hierarchy

  • TracingHookOptions

Properties

environmentId?: string
includeValue?: boolean

If set to true, then the tracing hook will add the evaluated flag value to span events and spans.

The default is false.

includeVariant?: boolean

If set to true, then the tracing hook will add the evaluated flag value to span events and spans.

The default is false.

Deprecated

This option is deprecated and will be removed in a future version. This has been replaced by includeValue. If both are set, includeValue will take precedence.

logger?: LDLogger

Set to use a custom logging configuration, otherwise the logging will be done using console.

spans?: boolean

Experimental: If set to true, then the tracing hook will add spans for each variation method call. Span events are always added and are unaffected by this setting.

The default value is false.

This feature is experimental and the data in the spans, or nesting of spans, could change in future versions.

Generated using TypeDoc