Socket
Socket
Sign inDemoInstall

@opentelemetry/semantic-conventions

Package Overview
Dependencies
0
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @opentelemetry/semantic-conventions

OpenTelemetry semantic conventions


Version published
Weekly downloads
13M
increased by8.92%
Maintainers
4
Install size
42.1 kB
Created
Weekly downloads
 

Package description

What is @opentelemetry/semantic-conventions?

The @opentelemetry/semantic-conventions package provides standardized naming and semantic conventions for attributes in OpenTelemetry. These conventions help ensure that telemetry data is consistent, interpretable, and analyzable across different systems and services. The package includes constants for resource attributes, span attributes, and event names that are recommended by the OpenTelemetry specification.

What are @opentelemetry/semantic-conventions's main functionalities?

Resource Attributes

Defines standard attributes to be used for service resources, allowing you to annotate your telemetry data with information about the service instance.

{"service.name": 'my-service', "service.version": '1.0.0', "service.instance.id": 'instance-123'}

Span Attributes

Provides a set of standard attributes for spans, which represent individual operations within a trace. These attributes can be used to add metadata about the operation, such as HTTP method, URL, and status code.

{"http.method": 'GET', "http.url": 'https://example.com', "http.status_code": 200}

Event Names

Includes standardized event names for logging exceptions, messages, and metrics within spans. This helps in categorizing and querying telemetry events.

"exception", "message", "metric"

Other packages similar to @opentelemetry/semantic-conventions

Changelog

Source

0.12.0

:boom: Breaking Change

  • opentelemetry-api, opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-prometheus, opentelemetry-metrics
    • #1588 Update to Proto v0.5.0 (@obecny)
  • opentelemetry-api, opentelemetry-core, opentelemetry-plugin-http, opentelemetry-plugin-https, opentelemetry-shim-opentracing
  • opentelemetry-resource-detector-aws, opentelemetry-resources
    • #1581 chore: remove duplicate hostname resource attribute (@mwear)
  • opentelemetry-api, opentelemetry-core, opentelemetry-plugin-fetch, opentelemetry-plugin-xml-http-request
  • opentelemetry-core, opentelemetry-tracing
    • #1562 feat(core): rename ProbabilitySampler to TraceIdRatioBasedSampler (@legendecas)
  • opentelemetry-exporter-prometheus
  • opentelemetry-core, opentelemetry-exporter-prometheus, opentelemetry-metrics, opentelemetry-sdk-node, opentelemetry-tracing

:rocket: (Enhancement)

  • opentelemetry-api, opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-prometheus, opentelemetry-metrics
  • opentelemetry-core, opentelemetry-tracing
  • opentelemetry-instrumentation
    • #1572 feat: adding function for checking wrapped into instrumentation (@obecny)
  • opentelemetry-core
  • opentelemetry-exporter-prometheus
  • opentelemetry-api, opentelemetry-core, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-jaeger, opentelemetry-exporter-prometheus, opentelemetry-exporter-zipkin, opentelemetry-metrics, opentelemetry-tracing
  • opentelemetry-api, opentelemetry-core, opentelemetry-node, opentelemetry-plugin-http, opentelemetry-plugin-https, opentelemetry-shim-opentracing, opentelemetry-tracing
  • opentelemetry-node, opentelemetry-sdk-node
    • #1525 feat(node-tracer): use AsyncLocalStorageContextManager by default starting Node 14.8 #1511 (@vmarchaud)
  • opentelemetry-exporter-collector, opentelemetry-exporter-jaeger, opentelemetry-exporter-zipkin, opentelemetry-grpc-utils, opentelemetry-plugin-grpc-js, opentelemetry-plugin-grpc, opentelemetry-plugin-http, opentelemetry-plugin-https
    • #1548 chore(http): remove x-opentelemetry-outgoing-request header #1547 (@vmarchaud)
  • Other
  • opentelemetry-api, opentelemetry-instrumentation, opentelemetry-node
    • #1540 Plugins refactoring - new instrumentation package for plugins (@obecny)
  • opentelemetry-api, opentelemetry-tracing
  • opentelemetry-resource-detector-aws, opentelemetry-resources
    • #1404 Feat: Added AWS ECS Plugins Resource Detector (@EdZou)
  • opentelemetry-node
  • opentelemetry-resources, opentelemetry-sdk-node
  • opentelemetry-api, opentelemetry-context-async-hooks, opentelemetry-context-base, opentelemetry-context-zone-peer-dep, opentelemetry-core, opentelemetry-shim-opentracing, opentelemetry-tracing, opentelemetry-web
  • opentelemetry-exporter-zipkin
    • #1399 chore: refactoring zipkin to be able to use it in web (@obecny)
  • opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-jaeger, opentelemetry-exporter-prometheus, opentelemetry-exporter-zipkin, opentelemetry-metrics, opentelemetry-plugin-fetch, opentelemetry-plugin-xml-http-request, opentelemetry-tracing

:bug: (Bug Fix)

  • opentelemetry-plugin-http
    • #1546 fix(http): do not set outgoing http span as active in the context #1479 (@vmarchaud)
  • opentelemetry-metrics
    • #1567 fix: histogram aggregator lastUpdateTime (@AndrewGrachov)
    • #1470 IMPORTANT - Fixing collecting data from observers when using batch observer in first run (@obecny)
  • opentelemetry-plugin-http, opentelemetry-plugin-https
  • opentelemetry-context-async-hooks
    • #1530 fix: ignore TIMERWRAP in AsyncHooksContextManager (@Flarna)
  • opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto
    • #1539 fix: include missing proto files in npm distribution (@blumamir)

:books: (Refine Doc)

  • Other
  • opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector

:sparkles: (Feature)

  • opentelemetry-resource-detector-aws, opentelemetry-resources
    • #1404 Feat: Added AWS ECS Plugins Resource Detector (@EdZou)
  • opentelemetry-exporter-zipkin
    • #1399 chore: refactoring zipkin to be able to use it in web (@obecny)

Committers: 19

Readme

Source

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 @opentelemetry/semantic-conventions

Usage

import { GeneralAttribute } from '@opentelemetry/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

FAQs

Last updated on 19 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc