Files
tasq/node_modules/@opentelemetry/instrumentation-grpc/node_modules/@opentelemetry/semantic-conventions
2026-04-09 19:01:53 +08:00
..
2026-04-09 19:01:53 +08:00
2026-04-09 19:01:53 +08:00
2026-04-09 19:01:53 +08:00
2026-04-09 19:01:53 +08:00

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',
  });

License

Apache 2.0 - See LICENSE for more information.