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

1.24.0 • Public • Published

OpenTelemetry Semantic Conventions

NPM Published Version 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.

/@opentelemetry/semantic-conventions/

    Package Sidebar

    Install

    npm i @opentelemetry/semantic-conventions

    Weekly Downloads

    10,902,752

    Version

    1.24.0

    License

    Apache-2.0

    Unpacked Size

    1.66 MB

    Total Files

    66

    Last publish

    Collaborators

    • pichlermarc
    • bogdandrutu
    • dyladan