opentelemetry-semantic-conventions
OpenTelemetry Semantic Conventions
Decision gist · record as of 2026-08-14
Yes. This is a foundational library for any OpenTelemetry instrumentation work. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and is ranked in the top 100 PyPI packages by downloads. Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with minimal dependencies.
- Actively maintained with a recent release (29 days old) and stable repository status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions.
last release 2026-07-16 (29 days) · last repo commit 2026-08-13 · 2,587 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 542,941,923 downloads/mo, #72 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-semantic-conventions
from opentelemetry.semconv.trace import SpanAttributes
# Use semantic convention constants in instrumentation
span.set_attribute(SpanAttributes.HTTP_METHOD, "GET")- Whether the package includes constants for all current OpenTelemetry semantic convention domains (trace, metrics, logs, resource).
- How frequently the generated code is updated relative to OpenTelemetry specification releases.
What it is and what it does
OpenTelemetry Semantic Conventions is a library of auto-generated Python code that defines standardized attribute names and constants for OpenTelemetry instrumentation. It implements the naming conventions specified in the OpenTelemetry specification, allowing developers to use consistent, well-defined constants when adding attributes to spans, metrics, and other telemetry signals rather than hard-coding string names.
The package is generated automatically from the OpenTelemetry specification and depends only on opentelemetry-api and typing-extensions. It is intended for use by instrumentation libraries and applications that need to follow OpenTelemetry standards. The code is production-stable, actively maintained, and supports modern Python versions.
Use it for
- Standardize span and metric attribute names across custom instrumentation code.
- Ensure compliance with OpenTelemetry semantic conventions in distributed tracing implementations.
- Reduce typos and inconsistencies when instrumenting HTTP, database, or messaging operations.
- Enable IDE autocompletion and type checking for semantic convention constants.
- Build instrumentation libraries that follow OpenTelemetry best practices.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a foundational library for any OpenTelemetry instrumentation work. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and is ranked in the top 100 PyPI packages by downloads. Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Install
opentelemetry-semantic-conventions on PyPI
Before you install
Low friction install with minimal dependencies. Actively maintained with a recent release (29 days old) and stable repository status. Supports current Python versions (3.10–3.14).
Requires Python 3.10 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions.
Quickstart
pip install opentelemetry-semantic-conventions
from opentelemetry.semconv.trace import SpanAttributes
# Use semantic convention constants in instrumentation
span.set_attribute(SpanAttributes.HTTP_METHOD, "GET")
Verify before relying
- Whether the package includes constants for all current OpenTelemetry semantic convention domains (trace, metrics, logs, resource).
- How frequently the generated code is updated relative to OpenTelemetry specification releases.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesopentelemetry-apityping-extensions |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 542,941,923 / month, #72 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: OpenTelemetryIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: opentelemetry_semantic_conventions-0.65b0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry semantic conventions”
- opentelemetry-semantic-conventionsProvides generated Python code for OpenTelemetry semantic…
- opentelemetry-semantic-conventions-aiProvides OpenTelemetry semantic conventions and attributes for…
- openinference-semantic-conventionsDefines semantic conventions and standardized attributes for tracing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
See also opentelemetry-semantic-conventions-ai · aliyun-semantic-conventions · vercel-internal-telemetry · opentelemetry-instrumentation-logging · opentelemetry-distro · opentelemetry-test-utils · opentelemetry-instrumentation-openai-agents-v2 · opentelemetry-proto