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

1.23.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.

Package Sidebar

Install

npm i @opentelemetry/semantic-conventions

Weekly Downloads

9,443,550

Version

1.23.0

License

Apache-2.0

Unpacked Size

1.66 MB

Total Files

66

Last publish

Collaborators

  • pichlermarc
  • bogdandrutu
  • dyladan