File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ def use_span(
410
410
yield
411
411
412
412
413
- class ProxyTracer (Tracer ):
413
+ class _ProxyTracer (Tracer ):
414
414
"""Proxies all calls to current TracerProvider
415
415
"""
416
416
@@ -491,11 +491,11 @@ def get_tracer(
491
491
) -> "Tracer" :
492
492
"""Returns a `Tracer` for use by the given instrumentation library.
493
493
494
- If tracer_provider is ommited it returns a ProxyTracer
494
+ If tracer_provider is ommited it returns a _ProxyTracer
495
495
which redirects calls to a current instrumentation library.
496
496
"""
497
497
if tracer_provider is None :
498
- return ProxyTracer (
498
+ return _ProxyTracer (
499
499
functools .partial (
500
500
_get_current_tracer ,
501
501
instrumenting_module_name = instrumenting_module_name ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def test_get_tracer(self):
16
16
"""trace.get_tracer should create a proxy to the global tracer provider."""
17
17
tracer = trace .get_tracer ("foo" , "var" )
18
18
self ._mock_tracer_provider .get_tracer .assert_not_called ()
19
- self .assertIsInstance (tracer , trace .ProxyTracer )
19
+ self .assertIsInstance (tracer , trace ._ProxyTracer )
20
20
21
21
tracer .start_span ("one" )
22
22
tracer .start_span ("two" )
You can’t perform that action at this time.
0 commit comments