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

1.25.1 • 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.

Package Sidebar

Install

npm i @opentelemetry/semantic-conventions

Weekly Downloads

13,925,007

Version

1.25.1

License

Apache-2.0

Unpacked Size

1.66 MB

Total Files

66

Last publish

Collaborators

  • pichlermarc
  • bogdandrutu
  • dyladan