0.34.0 • Published 8 months ago

@opentelemetry/plugin-react-load v0.34.0

Weekly downloads
34
License
Apache-2.0
Repository
-
Last release
8 months ago

OpenTelemetry Plugin React Load

NPM Published Version Apache License

This module provides automatic instrumentation for React lifecycles for Web applications, which may be loaded using the @opentelemetry/sdk-trace-web package.

If total installation size is not constrained, it is recommended to use the @opentelemetry/auto-instrumentations-web bundle with @opentelemetry/sdk-trace-web for the most seamless instrumentation experience.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Status

MaturityComponent OwnerCompatibility
UnmaintainedN/AAPI 1.0+SDK 1.0+

Installation

npm install --save @opentelemetry/plugin-react-load

Usage

import { BaseOpenTelemetryComponent } from '@opentelemetry/plugin-react-load';

// Set once for the entire plugin
BaseOpenTelemetryComponent.setLogger(logger);
BaseOpenTelemetryComponent.setTracer('name', 'version');

To instrument components, extend BaseOpenTelemetryComponent:

import { BaseOpenTelemetryComponent } from '@opentelemetry/plugin-react-load';

export class Component1 extends BaseOpenTelemetryComponent { ... }

See /examples/react-load for a short example.

Semantic Conventions

This package does not currently generate any attributes from semantic conventions.

Useful links

License

Apache 2.0 - See LICENSE for more information.

0.34.0

8 months ago

0.33.0

9 months ago

0.32.0

11 months ago

0.31.1

12 months ago

0.31.0

1 year ago

0.30.1

2 years ago

0.30.0

2 years ago

0.29.0

3 years ago

0.29.1

2 years ago

0.28.2

3 years ago

0.28.1

3 years ago

0.28.0

4 years ago

0.27.0

4 years ago

0.26.1

4 years ago

0.26.0

4 years ago

0.25.0

4 years ago

0.24.0

5 years ago

0.23.0

5 years ago

0.22.0

5 years ago

0.21.0

5 years ago

0.20.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago