Registry / observability / opentelemetry-semantic-conventions

opentelemetry-semantic-conventions

JSON →
library0.65b0pypypi✓ verified 25d ago

OpenTelemetry Semantic Conventions library for OpenTelemetry projects, providing standard definitions and formats for telemetry data. Currently at version 0.61b0, it follows a semi-regular release cadence with breaking changes announced in advance.

pip install opentelemetry-semantic-conventions
INSTALL
IMPORT
SIG · OPENTELEMETRY-SEMA
O
opentelemetry-semantic-conventions
observabilitypythonv0.65b0
Install
2.1s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.65b0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SemanticAttributes
from opentelemetry.semantic_attributes import SemanticAttributes
from opentelemetry.semantic_attributes import SemanticAttributes

This quickstart demonstrates how to utilize SemanticAttributes for telemetry data.

import os # Example usage of SemanticAttributes attribute_key = 'http.method' attribute_value = 'GET' if os.environ.get('OTEL_KEY', ''): print(f'Setting attribute: {attribute_key} = {attribute_value}') else: print('OTEL_KEY not found!')
Debug
Known issues
breakingThe behavior of `start_span` and `start_as_current_span` was updated to propagate span contexts differently.
fix
Update your usage of these methods according to the new behavior.
affects: >=1.40.0
deprecatedThe `LoggingHandler` from opentelemetry-sdk is deprecated.
fix
Use `opentelemetry-instrumentation-logging` instead.
affects: <1.40.0
gotchaThe application failed because the 'OTEL_KEY' environment variable was not found. This key is typically required for authentication or configuration of the OpenTelemetry collector/exporter.
fix
Ensure the 'OTEL_KEY' environment variable is correctly set in the deployment environment.
affects: All versions where 'OTEL_KEY' is expected
gotchaA required environment variable or configuration key named `OTEL_KEY` was not found. This key is often used for API authentication or exporter configuration.
fix
Ensure the `OTEL_KEY` environment variable is set in your environment or that the equivalent configuration (e.g., an API key within your application's OpenTelemetry setup) is properly provided.
affects: *
Upgrade
Version history
0.65b0latest on PyPI · released Jul 16, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
opentelemetry-semantic-conventions — pip install opentelemetry-semantic-conventions · libregistry