0.48.0 • Published 5 months ago

@opentelemetry/auto-instrumentations-web v0.48.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

OpenTelemetry Meta Packages for Web

NPM Published Version Apache License

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @opentelemetry/auto-instrumentations-web

Usage

const { WebTracerProvider } = require('@opentelemetry/sdk-trace-web');
const { getWebAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-web');
const { CollectorTraceExporter } = require('@opentelemetry/exporter-collector');
const { SimpleSpanProcessor } = require('@opentelemetry/sdk-trace-base');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const { ZoneContextManager } = require('@opentelemetry/context-zone');
const { B3Propagator } = require('@opentelemetry/propagator-b3');

const exporter = new CollectorTraceExporter({
  serviceName: 'auto-instrumentations-web',
});

const provider = new WebTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
provider.register({
  contextManager: new ZoneContextManager(),
  propagator: new B3Propagator(),
});

registerInstrumentations({
  instrumentations: [
    getWebAutoInstrumentations({
      // load custom configuration for xml-http-request instrumentation
      '@opentelemetry/instrumentation-xml-http-request': {
        clearTimingResources: true,
      },
    }),
  ],
});

Supported instrumentations

Useful links

License

APACHE 2.0 - See LICENSE for more information.

0.43.0

11 months ago

0.48.0

5 months ago

0.46.0

7 months ago

0.45.1

8 months ago

0.47.0

5 months ago

0.44.0

11 months ago

0.45.0

10 months ago

0.42.0

12 months ago

0.41.0

1 year ago

0.40.0

1 year ago

0.39.0

1 year ago

0.38.0

2 years ago

0.37.0

2 years ago

0.36.0

2 years ago

0.35.0

2 years ago

0.33.2

2 years ago

0.34.0

2 years ago

0.33.1

2 years ago

0.33.0

2 years ago

0.32.3

2 years ago

0.32.2

2 years ago

0.32.0

3 years ago

0.32.1

2 years ago

0.31.2

3 years ago

0.31.1

3 years ago

0.31.0

3 years ago

0.30.1

3 years ago

0.30.0

3 years ago

0.29.0

3 years ago

0.29.1

3 years ago

0.28.0

3 years ago

0.27.2

4 years ago

0.27.1

4 years ago

0.27.0

4 years ago

0.26.0

4 years ago

0.25.0

4 years ago

0.24.0

4 years ago

0.23.0

4 years ago

0.22.0

4 years ago

0.21.0

4 years ago

0.20.0

4 years ago

0.16.0

4 years ago

0.15.0

5 years ago