Skip to main content

MarkerSpanCallback()

(source: string, data?: { [level in SpanVerbosity]: any }) => Promise<PropagationInfo | null> | void
Callback function type for creating marker spans in User Journey or Clickstream traces.

Parameters (2)

Name Type Required Description
source⚓︎ string
  • Descriptive name for the marker span (e.g., "checkout-completed", "navigation-event"). If not provided, no new span will be created, and the data will simply be added to the current user journey or clickstream span.
data⚓︎ { [level in SpanVerbosity]: any } x
  • Optional span data organized by verbosity level, allowing different detail levels for different environments