-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: batch processor doesn't work with uwsgi #2277
Conversation
I need to use opentelemetry with uwsgi. Are there plans for this to release? Can I work around this by monkey patching in this implementation of BatchSpanProcessor? |
Hi @Cruuncher , We have documented here how to use the uwsgi hooks here. I didn't get the time to test this change. I will revisit it this weekend. |
@srikanthccv Thank you you for pointing me to the relevant documentation! I've been really spinning my wheels trying to get this working, and googling doesn't really find the answers 😓 This appears to be working for us now |
cc @aabmass |
This fix would probably solve all cases in which |
When does this happen? One thing I am still thinking about is how do I do the same for |
Oh I guess it wouldn't happen for the cases we care about (only when child processes are spawned). Different question: Is there still a need for |
It's fine to still have it. With the hook the reinit happens immediately but with pids records need to arrive at |
I am okay to discuss this in a separate issue/pr to unblock this. |
Description
The change introduced in #2242 didn't work for uwsgi since its worker process management is implemented in C and
_at_fork_reinit
is never invoked. We solve this by invoking it manually when we find process ids do not match.Fixes #2266
Type of change
Please delete options that are not relevant.