kelvin-semantic-conventions
TypeScript icon, indicating that this package has built-in type declarations

0.12.2 • Public • Published

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.

Package Sidebar

Install

npm i kelvin-semantic-conventions

Weekly Downloads

2

Version

0.12.2

License

Apache-2.0

Unpacked Size

51.2 kB

Total Files

33

Last publish

Collaborators

  • kelvin.lo