This commit is contained in:
parent
ee9dea06fb
commit
be361a7c18
@ -23,7 +23,7 @@ class MagicDoer:
|
||||
|
||||
tag = parameters['tag']
|
||||
sample_file_handle, sample_file_path = tempfile.mkstemp(prefix=f"{tag}_", suffix=".wav", dir="/dev/shm")
|
||||
span = opentracing.tracer.scope_manager.active().span
|
||||
span = opentracing.tracer.scope_manager.active.span
|
||||
span.log_kv({'event': 'sampleFileOpened', 'sampleTag': tag})
|
||||
response = None
|
||||
try:
|
||||
@ -64,7 +64,7 @@ class MagicDoer:
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
span = opentracing.tracer.scope_manager.active().span
|
||||
span = opentracing.tracer.scope_manager.active.span
|
||||
span.log_kv({'event': 'sampleFileDeleted', 'sampleTag': tag})
|
||||
|
||||
if not response:
|
||||
|
Loading…
Reference in New Issue
Block a user