--reload breaks OpenTelemetry auto-instrumentation (child subprocess doesn't inherit instrumentation)
#2805
Unanswered
yonathan-wolloch-lendbuzz
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When using
opentelemetry-instrument uvicorn app:app --reload, OpenTelemetry auto-instrumentation stops working and no traces are captured. Removing--reloadrestores tracing functionality.The Problem
When
--reloadis enabled, uvicorn spawns a child subprocess to run the actual application. Theopentelemetry-instrumentCLI sets up instrumentation in the parent (reloader) process, but this instrumentation is not inherited by the child subprocess where the application actually runs.Steps to Reproduce
Environment
Related Issues
Beta Was this translation helpful? Give feedback.
All reactions