opentelemetry-js/packages/opentelemetry-semantic-conv...
Marc Pichler b34c39bf32
chore(deps): update dependency eslint to v8.43.0 (#3929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2023-07-06 15:14:56 +02:00
..
src chore(deps): update dependency prettier to v2.8.8 (#3905) 2023-06-14 14:18:20 +02:00
.eslintignore
.eslintrc.js chore(deps): update dependency eslint to v8.43.0 (#3929) 2023-07-06 15:14:56 +02:00
.npmignore
LICENSE
README.md fix(semantic-conventions): update trace semantic conventions url (#3843) 2023-05-30 08:53:32 +02:00
package.json chore: prepare release 1.15 / 0.41 (#3963) 2023-07-06 13:06:26 +02:00
tsconfig.esm.json chore: automatically generate tsconfigs (#3432) 2022-11-23 23:34:41 +08:00
tsconfig.esnext.json chore: automatically generate tsconfigs (#3432) 2022-11-23 23:34:41 +08:00
tsconfig.json chore: automatically generate tsconfigs (#3432) 2022-11-23 23:34:41 +08:00

README.md

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.