1.27.0 • Published 10 months ago

@opentelemetry/semantic-conventions v1.27.0

Weekly downloads
403,378
License
Apache-2.0
Repository
github
Last release
10 months ago

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

Import Structure

This package has 2 separate exports. The main export (@opentelemetry/semantic-conventions) includes only stable semantic conventions. It is subject to the restrictions of semantic versioning 2.0. The /incubating export (@opentelemetry/semantic-conventions/incubating) contains all stable and unstable semantic conventions. It is NOT subject to the restrictions of semantic versioning and MAY contain breaking changes in minor releases.

Usage

Stable SemConv

import { 
  ATTR_NETWORK_PEER_ADDRESS,
  ATTR_NETWORK_PEER_PORT,
  ATTR_NETWORK_PROTOCOL_NAME,
  ATTR_NETWORK_PROTOCOL_VERSION,
  NETWORK_TRANSPORT_VALUE_TCP,
} from '@opentelemetry/semantic-conventions';

const span = tracer.startSpan(spanName, spanOptions)
  .setAttributes({
    [ATTR_NETWORK_PEER_ADDRESS]: 'localhost',
    [ATTR_NETWORK_PEER_PORT]: 8080,
    [ATTR_NETWORK_PROTOCOL_NAME]: 'http',
    [ATTR_NETWORK_PROTOCOL_VERSION]: '1.1',
    [ATTR_NETWORK_TRANSPORT]: NETWORK_TRANSPORT_VALUE_TCP,
  });

Unstable SemConv

import { 
  ATTR_PROCESS_COMMAND,
  ATTR_PROCESS_COMMAND_ARGS,
  ATTR_PROCESS_COMMAND_LINE,
} from '@opentelemetry/semantic-conventions/incubating';

const span = tracer.startSpan(spanName, spanOptions)
  .setAttributes({
    [ATTR_PROCESS_COMMAND]: 'cat',
    [ATTR_PROCESS_COMMAND_ARGS]: ['file1', 'file2'],
    [ATTR_CONTAINER_COMMAND_LINE]: 'cat file1 file2',
  });

Useful links

License

Apache 2.0 - See LICENSE for more information.

@sentry/node@pipedrive/autoinstrumentation-ioredis@nozik/opentelemetry-plugin-aws-sdknotnodeagentlog-util-win-otel-final@middleware.io/mw-node-apmsalesforce-opentelemetry@wesjet/utils@chanzuckerberg/edu-platform-observabilityrenovate@everything-registry/sub-chunk-690tana-google-cloud-pubsubtaskherowinston-opentelemetry-formatwrapperopentelemetryspectratracksplunk-test-otel-webtextrix-server@dotcom-reliability-kit/opentelemetry@dmamontov/graphql-mesh-opentelemetry-plugin@dmytry-s/instrumentation-express@crymbo/sdk-logging@collabland/open-telemetry@cornie-js/backend-monitoring@corva/node-sdk@continual/sdk@coog/otel-node-tracer@contentlayer-temp/utils@contentlayer/tracing-node@contentlayer/utils@contentlayer2/utils@coozzy/tracing@coralogix/opentelemetry@dagger.io/dagger@digma/instrumentation-express@digma/opentelemetry-exporter-aggregate@digma/otel-js-instrumentation@diia-inhouse/diia-app@detail-dev/next@caisy/tracing@c2c-techhub/monitor@bondsports/telemetry@routr/processor@routr/registry@routr/rtprelay@routr/sdk@routr/simpleauth@routr/simpledata@routr/common@routr/connect@routr/dispatcher@routr/echo@routr/location@routr/pgdata@prisma/extension-optimize@paychex/instrumentation-document-load@prairielearn/opentelemetryautonomize-otlp-sdkautonomize-sdk-jsiudexiudex-webjacksonweber-sampleexpressappkettle-core@fleekxyz/graphql-teststeroid-otel-utilssuprboard-tracertryreasontracenovatracing-telemetry-libtrackpulsetrigger.devuser-identity-servicetwhiteboard@skedulo/mex-service-libs@artusx/otl@appstack-io/visibility@appsignal/opentelemetry-instrumentation-bullmq@anakshiant/instrumentation-http@anakshiant/opentelemetry-instrumentation-bull@aspecto/opentelemetry@aspecto/opentelemetry-instrumentation-express@aspecto/opentelemetry-instrumentation-mongodb@aspecto/opentelemetry-plugin-express@aspecto/plugin-mongodb@audc/applicationinsights@aurox/telemetry@askluna/exporter-logs-otlp-http-workers@askluna/exporter-logs-otlp-http-wintercg@aiondigital/opentelemetry@agoric/telemetry@akinon/next@airplane/workflow-runtime@allegoria/test-reporter-base@baillie/otel-cf-workers@axah/apm@aws/aws-distro-opentelemetry-node-autoinstrumentation@azure/opentelemetry-exporter-azure-monitor@bechara/crux@bechara/nestjs-core@bedrockio/logger
1.27.0

10 months ago

1.25.0

1 year ago

1.25.1

12 months ago

1.26.0

10 months ago

1.24.1

1 year ago

1.24.0

1 year ago

1.23.0

1 year ago

1.22.0

1 year ago

1.21.0

1 year ago

1.20.0

1 year ago

1.19.0

1 year ago

1.18.1

2 years ago

1.18.0

2 years ago

1.15.0

2 years ago

1.15.2

2 years ago

1.15.1

2 years ago

1.16.0

2 years ago

1.17.1

2 years ago

1.17.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.0

3 years ago

1.6.0

3 years ago

1.7.0

3 years ago

1.4.0

3 years ago

1.5.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.26.0

4 years ago

0.25.1-alpha.13

4 years ago

0.25.1-alpha.4

4 years ago

0.25.0

4 years ago

0.25.1-alpha.21

4 years ago

0.24.1-alpha.7

4 years ago

0.24.1-alpha.5

4 years ago

0.24.1-alpha.1

4 years ago

0.24.1-alpha.31

4 years ago

0.23.1-alpha.28

4 years ago

0.24.0

4 years ago

0.23.1-alpha.24

4 years ago

0.23.1-alpha.23

4 years ago

0.23.1-alpha.15

4 years ago

0.23.1-alpha.3

4 years ago

0.23.1-alpha.17

4 years ago

0.23.1-alpha.18

4 years ago

0.22.1-alpha.16

4 years ago

0.22.1-alpha.15

4 years ago

0.23.0

4 years ago

0.22.1-alpha.13

4 years ago

0.22.1-alpha.5

4 years ago

0.22.0

4 years ago

0.21.0

4 years ago

0.20.0

4 years ago

0.19.1-alpha.43

4 years ago

0.20.1-alpha.4

4 years ago

0.20.1-alpha.49

4 years ago

0.21.1-alpha.2

4 years ago

0.21.1-alpha.7

4 years ago

0.19.0

4 years ago

0.19.1-alpha.37

4 years ago

0.19.1-alpha.39

4 years ago

0.19.1-alpha.31

4 years ago

0.19.1-alpha.11

4 years ago

0.19.1-alpha.14

4 years ago

0.19.1-alpha.36

4 years ago

0.18.3-alpha.30

4 years ago

0.18.3-alpha.25

4 years ago

0.18.3-alpha.17

4 years ago

0.18.3-alpha.16

4 years ago

0.18.2

4 years ago

0.18.3-alpha.2

4 years ago

0.18.3-alpha.1

4 years ago

0.18.2-alpha.81

4 years ago

0.18.1

4 years ago

0.18.1-alpha.20

4 years ago

0.18.1-alpha.24

4 years ago

0.18.1-alpha.13

4 years ago

0.18.1-alpha.12

4 years ago

0.18.0

4 years ago

0.17.1-alpha.11

4 years ago

0.17.1-alpha.21

4 years ago

0.17.0

4 years ago

0.16.0

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.0

5 years ago

0.12.1-alpha.54

5 years ago

0.12.0

5 years ago

0.11.1-alpha.36

5 years ago

0.11.1-alpha.48

5 years ago

0.11.0

5 years ago

0.10.3-alpha.35

5 years ago

0.10.3-canary.0

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.0

5 years ago