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.
import { UserInteractionInstrumentation } from '@tracetest/instrumentation-user-interaction';
registerInstrumentations({
tracerProvider: provider,
instrumentations: [
new UserInteractionInstrumentation(),
getWebAutoInstrumentations({
'@opentelemetry/instrumentation-user-interaction': {
enabled: false,
},
}),
],
});
- If you want to get in touch with the Tracetest team: visit https://dub.sh/tracetest-community