Skip to main content

Configuration for automatic instrumentation of user interactions. Extends the base OpenTelemetry user interaction instrumentation with additional throttling options.

Properties (4)

Property Type Default Required Description
enabled⚓︎ boolean true x

Whether to enable the plugin.

eventNames⚓︎ EventName[] x x

List of events to instrument (like 'mousedown', 'touchend', 'play' etc). By default only 'click' event is instrumented.

shouldPreventSpanCreation⚓︎ ShouldPreventSpanCreation x x

Callback function called each time new span is being created. Return true to prevent span recording. You can also use this handler to enhance created span with extra attributes.

throttleIntervalMs⚓︎ number x x

Minimum interval in milliseconds between capturing consecutive user interaction events. Used to throttle high-frequency interactions and reduce span volume.