Skip to content

Conversation

@BradenChapman
Copy link

Signed-off-by: Braden Chapman braden.chapman@chicagotrading.com

Description: Updated Python environment variable injection for autoinstrumentation to use appendOrReplace() instead of appendIfNotSet(). Other languages use appendOrReplace().

Users at my company deploy their applications into kubernetes using Helm. In the Helm chart, we have the following set:

  • name: OTEL_EXPORTER_OTLP_ENDPOINT
    value: "http://$(NODE_IP):4317"
  • name: OTEL_EXPORTER_OTLP_PROTOCOL
    value: "grpc"
    But Python cannot use grpc. When attempting to override the variables in the helm chart by setting them in the Instrumentation object to be used by the autoinstrumentation injection, the helm chart variables take precedent because the Python injection in the operator currently uses appendIfNotSet, whereas other languages use appendOrReplace.

…r languages by using appendOrReplace

Signed-off-by: Braden Chapman <bradengchapman@gmail.com>
@BradenChapman BradenChapman requested a review from a team as a code owner December 12, 2025 19:43
@linux-foundation-easycla
Copy link

CLA Not Signed

@atoulme atoulme marked this pull request as draft December 12, 2025 22:24
@atoulme
Copy link
Contributor

atoulme commented Dec 12, 2025

Moving to draft while you work out the CLA. Please be advised this change is likely not workable as it would break existing environments. Specifically, PYTHONPATH is special for Python. You'll need a changelog and check the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants