You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry run opentelemetry-instrument python3 app.py results in unknown_service:python and debug is not true.
poetry run python3 app.py correctly picks up those env vars 🤔
I guess the question is… should it? Or does using opentelemetry-instrument mean you can only use env vars and not config in code with configure_opentelemetry?
The text was updated successfully, but these errors were encountered:
Yep, that's right - both opentelemetry-instrument and configure_opentelemetry trigger the distro hook to configure the OTel SDK. If both are called, it will configure the SDK twice, which can lead to unexpected setups.
If you want a zero-code solution that's only driven by env vars you would use opentemetry-instrument.
if you want to configure via code (and optionally mix with env vars), you would use configure_opentelemetry.
I run with opentelemetry-instrument, it doesn’t pick up my code configuration in this app.
poetry run opentelemetry-instrument python3 app.py
results inunknown_service:python
and debug is not true.poetry run python3 app.py
correctly picks up those env vars 🤔I guess the question is… should it? Or does using
opentelemetry-instrument
mean you can only use env vars and not config in code withconfigure_opentelemetry
?The text was updated successfully, but these errors were encountered: