@opentelemetry/plugin-react-load
    TypeScript icon, indicating that this package has built-in type declarations

    0.28.0 • Public • Published

    OpenTelemetry Plugin React Load

    NPM Published Version Apache License

    This module provides automated instrumentation for React lifecycles for Web applications.

    Compatible with OpenTelemetry JS API and 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.

    Useful links

    License

    Apache 2.0 - See LICENSE for more information.

    Install

    npm i @opentelemetry/plugin-react-load

    DownloadsWeekly Downloads

    490

    Version

    0.28.0

    License

    Apache-2.0

    Unpacked Size

    96.6 kB

    Total Files

    44

    Last publish

    Collaborators

    • bogdandrutu
    • dyladan