-
Notifications
You must be signed in to change notification settings - Fork 56
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
Need for a lock when setting the global Tracer
#32
Comments
Hey @mikebryant Any news on this? ;) |
Due to lack of answer, I will proceed to remove this lock - I haven't seen any need for this one (from the very Django perspective). |
Sorry, I've been dropping the ball here. Please go ahead. |
Thanks Mike! |
Can we get a release with this change published please? |
@naphthalene I'd say in 1 week - would like to verify the other framework instrumentations are in proper shape before we release it. |
Closing as this has been solved for long time ;) |
Hey @mikebryant
Currently we have a lock used when setting
opentracing.Tracer
(and also, indirectly, when creating aTracer
through theOPENTRACING_TRACER_CALLABLE
value), and I'm wondering whether this is needed.Before Django 1.10, the middleware is supposed to be initialized only once when the first request takes place (https://docs.djangoproject.com/en/1.9/topics/http/middleware/#init)
As of Django 1.10, the middleware will be initialized only once at server start (https://docs.djangoproject.com/en/1.10/topics/http/middleware/#init-get-response)
Is there any advanced need to take a lock? I remember you mentioning forking, but I have forgotten the details now ;)
The text was updated successfully, but these errors were encountered: