Skip to content

Commit

Permalink
feat: inject OTEL_PYTHON_CONFIGURATOR env var to python instrumented … (
Browse files Browse the repository at this point in the history
#2078)

…applications
  • Loading branch information
tamirdavid1 authored Dec 29, 2024
1 parent 9318342 commit 51bbb72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions odiglet/pkg/instrumentation/instrumentlang/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const (
envLogCorrelation = "OTEL_PYTHON_LOG_CORRELATION"
envPythonPath = "PYTHONPATH"
envOtelExporterOTLPTracesProtocol = "OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"
pythonConfiguratorEnvVar = "OTEL_PYTHON_CONFIGURATOR"
pythonConfiguratorValue = "odigos-python-configurator"
envOtelExporterOTLPMetricsProtocol = "OTEL_EXPORTER_OTLP_METRICS_PROTOCOL"
httpProtobufProtocol = "http/protobuf"
pythonOdigosOpampServer = "ODIGOS_OPAMP_SERVER_HOST"
Expand Down Expand Up @@ -45,6 +47,7 @@ func Python(deviceId string, uniqueDestinationSignals map[common.ObservabilitySi
pythonOdigosOpampServer: opampServerHost,
envLogCorrelation: "true",
envPythonPath: pythonpathVal,
pythonConfiguratorEnvVar: pythonConfiguratorValue,
"OTEL_EXPORTER_OTLP_ENDPOINT": otlpEndpoint,
envOtelTracesExporter: tracesExporter,
envOtelMetricsExporter: metricsExporter,
Expand Down

0 comments on commit 51bbb72

Please sign in to comment.