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
When working with process with multiple workers, like a FastAPI server using uvicorn workers. Metrics provider doesn't have unique instance.id for each workers, thus the metrics doesn't work properly. Ex: All workers are using the same timeseries without unique identifier, causing the statistics unstable.
Is your feature request related to a problem?
When working with process with multiple workers, like a FastAPI server using uvicorn workers. Metrics provider doesn't have unique instance.id for each workers, thus the metrics doesn't work properly. Ex: All workers are using the same timeseries without unique identifier, causing the statistics unstable.
Describe the solution you'd like
Would it be possible to allow adding unique instance.id while using auto-instrumentation? For now using Opentelemetry python SDK you can do it manually, like the following during the post-fork hook https://opentelemetry-python.readthedocs.io/en/latest/examples/fork-process-model/README.html.
But with auto-instrumentation, I'm not sure how to add the unique instance id, as MeterProvider can't be override.
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: