@@ -38,14 +38,17 @@ def log_correlation_status(self, value):
38
38
if not isinstance (value , bool ):
39
39
raise TypeError ('Boolean required' )
40
40
41
- if value != self ._log_correlation_enabled :
42
- # Close any previous tracer and reopen if required
43
- tracer = global_tracer ()
44
- if hasattr (tracer , 'close' ):
45
- tracer .close ()
46
-
47
- self ._log_correlation_enabled = value
48
- self ._log_controller .enable_jaeger_client ()
41
+ # CB: 2022-09-21: Disabling tracing during transition phase of using the latest Twisted
42
+ # releases and asyncio as the base reactor. Once this is complete, a
43
+ # new major version of pyvoltha-min will be created with tracing re-enabled.
44
+ # if value != self._log_correlation_enabled:
45
+ # # Close any previous tracer and reopen if required
46
+ # tracer = global_tracer()
47
+ # if hasattr(tracer, 'close'):
48
+ # tracer.close()
49
+ #
50
+ # self._log_correlation_enabled = value
51
+ # self._log_controller.enable_jaeger_client()
49
52
50
53
@property
51
54
def trace_publishing_status (self ):
@@ -56,14 +59,17 @@ def trace_publishing_status(self, value):
56
59
if not isinstance (value , bool ):
57
60
raise TypeError ('Boolean required' )
58
61
59
- if value != self ._trace_publishing_enabled :
60
- # Close any previous tracer and reopen if required
61
- tracer = global_tracer ()
62
- if hasattr (tracer , 'close' ):
63
- tracer .close ()
64
-
65
- self ._trace_publishing_enabled = value
66
- self ._log_controller .enable_jaeger_client ()
62
+ # CB: 2022-09-21: Disabling tracing during transition phase of using the latest Twisted
63
+ # releases and asyncio as the base reactor. Once this is complete, a
64
+ # new major version of pyvoltha-min will be created with tracing re-enabled.
65
+ # if value != self._trace_publishing_enabled:
66
+ # # Close any previous tracer and reopen if required
67
+ # tracer = global_tracer()
68
+ # if hasattr(tracer, 'close'):
69
+ # tracer.close()
70
+ #
71
+ # self._trace_publishing_enabled = value
72
+ # self._log_controller.enable_jaeger_client()
67
73
68
74
@property
69
75
def component_name (self ):
@@ -88,10 +94,16 @@ def set_log_controller(self, log_controller, scope_manager, config):
88
94
self ._component_name = config .get ('component_name' , os .environ .get ('COMPONENT_NAME' ,
89
95
'unknown-olt' ))
90
96
self .scope_manager = scope_manager
91
- # Set trace/log correlation directly. During initial startup, we want to start the
92
- # OpenTracing client at the end of our init and not from the property setter functions.
93
- self ._trace_publishing_enabled = config .get ('trace_enabled' )
94
- self ._log_correlation_enabled = config .get ('log_correlation_enabled' )
97
+ # CB: 2022-09-21: Disabling tracing during transition phase of using the latest Twisted
98
+ # releases and asyncio as the base reactor. Once this is complete, a
99
+ # new major version of pyvoltha-min will be created with tracing re-enabled.
100
+ self ._trace_publishing_enabled = False
101
+ self ._log_correlation_enabled = False
102
+
103
+ # # Set trace/log correlation directly. During initial startup, we want to start the
104
+ # # OpenTracing client at the end of our init and not from the property setter functions.
105
+ # self._trace_publishing_enabled = config.get('trace_enabled')
106
+ # self._log_correlation_enabled = config.get('log_correlation_enabled')
95
107
96
108
97
109
GlobalTracingSupport = _LogFeatures ()
0 commit comments