Skip to content
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

Closed
carlosalberto opened this issue Aug 10, 2018 · 7 comments
Closed

Need for a lock when setting the global Tracer #32

carlosalberto opened this issue Aug 10, 2018 · 7 comments

Comments

@carlosalberto
Copy link
Collaborator

Hey @mikebryant

Currently we have a lock used when setting opentracing.Tracer (and also, indirectly, when creating a Tracer through the OPENTRACING_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 ;)

@carlosalberto
Copy link
Collaborator Author

Hey @mikebryant

Any news on this? ;)

@carlosalberto
Copy link
Collaborator Author

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).

@mikebryant
Copy link
Collaborator

Sorry, I've been dropping the ball here. Please go ahead.

@carlosalberto
Copy link
Collaborator Author

Thanks Mike!

@naphthalene
Copy link

Can we get a release with this change published please?

@carlosalberto
Copy link
Collaborator Author

@naphthalene I'd say in 1 week - would like to verify the other framework instrumentations are in proper shape before we release it.

@carlosalberto
Copy link
Collaborator Author

Closing as this has been solved for long time ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants