Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Note that the returned BasicTracer has *no* propagators registered. The
user should either call register_propagator() for each needed
inject/extract format and/or the user can simply call
register_required_propagators().
The required formats are opt-in because of protobuf version conflicts
with the binary carrier.
"""
scope_manager = ThreadLocalScopeManager() \
if scope_manager is None else scope_manager
super(BasicTracer, self).__init__(scope_manager)
self.recorder = NoopRecorder() if recorder is None else recorder
self.sampler = DefaultSampler(1) if sampler is None else sampler
self._propagators = {}