question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need for a lock when setting the global `Tracer`

See original GitHub issue

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 😉

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
carlosalbertocommented, Sep 19, 2018

Thanks Mike!

0reactions
carlosalbertocommented, Jun 10, 2019

Closing as this has been solved for long time 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trace.UseGlobalLock Property (System.Diagnostics)
Gets or sets a value indicating whether the global lock should be used. public: static property bool UseGlobalLock { bool get(); void set(bool...
Read more >
Protect the position of events in Logic Pro - Apple Support
Select one or more events, then choose Functions > Lock SMPTE Position (or use the corresponding key command). Control-click the event, then choose...
Read more >
28.1 Locks: The Basic Idea - cs.wisc.edu
To use a lock, we add some code around the critical section like this: 1 lock_t mutex; // some globally-allocated lock 'mutex'. 2...
Read more >
How Safecrackers Can Unlock an ATM in Minutes ... - WIRED
At Defcon this week, security researcher Mike Davis will show how he can pick the lock of an ATM safe in no time,...
Read more >
Star Citizen Tobii Eye Tracker 5 Settings Guide - YouTube
Are you struggling with your Tobii eye tracker 5 settings in Star Citizen? In this video we walk you through every Tobii setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found