@tracetest/instrumentation-user-interaction
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

@tracetest/instrumentation-user-interaction

NPM Published Version

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

Package Sidebar

Install

npm i @tracetest/instrumentation-user-interaction

Repository

tracetest.io

Weekly Downloads

18

Version

0.0.37

License

ISC

Unpacked Size

36.7 kB

Total Files

13

Last publish

Collaborators

  • xoscar
  • olensmar