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