File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,7 @@ async def web_handler(request):
171171 This method makes use of a ``ContextProvider`` that is automatically set during the tracer
172172 initialization, or while using a library instrumentation.
173173 """
174- return self ._context_provider .active (* args , ** kwargs )
175-
176- @property
177- def context_provider (self ):
178- """Returns the current Tracer Context Provider"""
179- return self ._context_provider
174+ return self .context_provider .active (* args , ** kwargs )
180175
181176 # TODO: deprecate this method and make sure users create a new tracer if they need different parameters
182177 @debtcollector .removals .removed_kwarg ("dogstatsd_host" , "Use `dogstatsd_url` instead" ,
@@ -290,7 +285,7 @@ def configure(
290285 self .writer .dogstatsd = self ._dogstatsd_client
291286
292287 if context_provider is not None :
293- self ._context_provider = context_provider
288+ self .context_provider = context_provider
294289
295290 if wrap_executor is not None :
296291 self ._wrap_executor = wrap_executor
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ def test_propagation_with_new_context(self):
341341 def test_event_loop_unpatch (self ):
342342 # ensures that the event loop can be unpatched
343343 unpatch ()
344- assert isinstance (self .tracer ._context_provider , DefaultContextProvider )
344+ assert isinstance (self .tracer .context_provider , DefaultContextProvider )
345345 assert asyncio .BaseEventLoop .create_task == _orig_create_task
346346
347347 def test_event_loop_double_patch (self ):
You can’t perform that action at this time.
0 commit comments