Переглянути джерело

HUE-8936 [tracing] Rename execution tags

Romain 6 роки тому
батько
коміт
9a8f8029b0
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      desktop/libs/notebook/src/notebook/api.py

+ 2 - 2
desktop/libs/notebook/src/notebook/api.py

@@ -130,7 +130,7 @@ def _execute_notebook(request, notebook, snippet):
       if snippet.get('interface') == 'sqlalchemy':
         interpreter.options['session'] = session
 
-      with opentracing.tracer.start_span('execute') as site_span:
+      with opentracing.tracer.start_span('interpreter') as site_span:
         response['handle'] = interpreter.execute(notebook, snippet)
 
       # Retrieve and remove the result from the handle
@@ -182,7 +182,7 @@ def execute(request, engine=None):
 
   response = _execute_notebook(request, notebook, snippet)
 
-  with opentracing.tracer.start_span('execute') as span:
+  with opentracing.tracer.start_span('add-id') as span:
     span.set_tag(
       'query-id',
       response['handle']['guid'] if response.get('handle') and response['handle'].get('guid') else None