@tracetest/instrumentation-user-interaction
v0.2.0
Published
Tracetest User Instrumentation
Downloads
16
Readme
@tracetest/instrumentation-user-interaction
About
This module provides a way to create a single trace based on the browser's user session while it's active, using the code from the official OpenTelemetry user interaction library. It allows Tracetest to generate a single trace for the end-to-end integrations from the browser (Playwright/Cypress) integrations.
Usage
Include the Auto-instrumentation in your Tracing Code
import { UserInteractionInstrumentation } from '@tracetest/instrumentation-user-interaction';
registerInstrumentations({
tracerProvider: provider,
instrumentations: [
new UserInteractionInstrumentation(),
getWebAutoInstrumentations({
'@opentelemetry/instrumentation-user-interaction': {
enabled: false,
},
}),
],
});
Useful Links
- If you want to get in touch with the Tracetest team: visit https://dub.sh/tracetest-community