@opentelemetry/semantic-conventions
    TypeScript icon, indicating that this package has built-in type declarations

    0.25.0 • Public • Published

    OpenTelemetry Semantic Conventions

    NPM Published Version dependencies devDependencies Apache License

    Semantic Convention constants for use with the OpenTelemetry SDK/APIs. This document defines standard attributes for traces.

    Installation

    npm install --save @opentelemetry/semantic-conventions

    Usage

    import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
    
    const span = tracer.startSpan().startSpan(spanName, spanOptions)
      .setAttributes({
        [SemanticAttributes.NET_PEER_NAME]: 'localhost',
      });

    Useful links

    License

    Apache 2.0 - See LICENSE for more information.

    Install

    npm i @opentelemetry/semantic-conventions

    DownloadsWeekly Downloads

    913,337

    Version

    0.25.0

    License

    Apache-2.0

    Unpacked Size

    263 kB

    Total Files

    39

    Last publish

    Collaborators

    • mayurkale22
    • bogdandrutu
    • dyladan
    • obecny