Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/microsoft/opentelemetry/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@
GEN_AI_MAIN_AGENT_ATTRIBUTE_PREFIX = "microsoft.gen_ai.main_agent."

# --- Version propagation for distro to exporter ---
MICROSOFT_OPENTELEMETRY_VERSION_ENV = "microsoft_opentelemetry_version"
MICROSOFT_OPENTELEMETRY_VERSION_ENV = "MICROSOFT_OPENTELEMETRY_VERSION"
Comment thread
rads-1996 marked this conversation as resolved.
3 changes: 3 additions & 0 deletions src/microsoft/opentelemetry/_distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
)
from microsoft.opentelemetry._version import VERSION

os.environ.setdefault(MICROSOFT_OPENTELEMETRY_VERSION_ENV, VERSION)

# pylint: disable=wrong-import-position
import azure.monitor.opentelemetry.exporter._utils as _exporter_utils
from azure.monitor.opentelemetry.exporter.statsbeat._statsbeat_metrics import (
_StatsbeatMetrics,
Expand Down
Loading