0.12.2 • Published 3 years ago

kelvin-semantic-conventions v0.12.2

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
3 years ago

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

Useful links

License

Apache 2.0 - See LICENSE for more information.