npm.io
0.12.2 • Published 5 years ago

kelvin-semantic-conventions

Licence
Apache-2.0
Version
0.12.2
Deps
0
Size
50 kB
Vulns
0
Weekly
0
Stars
3.5K

OpenTelemetry Semantic Conventions

Gitter chat NPM Published Version dependencies devDependencies Apache License

Semantic Convention constants for use with the OpenTelemetry SDK/APIs. This document defines standard attributes for traces.

Installation

npm install --save kelvin-semantic-conventions

Usage

import { GeneralAttribute } from 'kelvin-semantic-conventions';

const span = tracer.startSpan().startSpan(spanName, spanOptions)
  .setAttributes({
    [GeneralAttribute.NET_PEER_HOSTNAME]: 'localhost',
  });

License

Apache 2.0 - See LICENSE for more information.

Keywords