File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 33
33
from ert .gui .tools .plugins import PluginHandler , PluginsTool
34
34
from ert .gui .tools .workflows import WorkflowsTool
35
35
from ert .plugins import ErtPluginManager
36
+ from ert .trace import getTraceID
36
37
37
38
BUTTON_STYLE_SHEET : str = """
38
39
QToolButton {
@@ -78,7 +79,9 @@ def __init__(
78
79
self .config_file = config_file
79
80
self .log_handler = log_handler
80
81
81
- self .setWindowTitle (f"ERT - { config_file } - { find_ert_info ()} " )
82
+ self .setWindowTitle (
83
+ f"ERT - { config_file } - { find_ert_info ()} - { getTraceID ()[:8 ]} "
84
+ )
82
85
self .plugin_manager = plugin_manager
83
86
self .central_widget = QFrame (self )
84
87
self .central_layout = QHBoxLayout (self .central_widget )
Original file line number Diff line number Diff line change 33
33
format_running_time ,
34
34
get_ert_memory_usage ,
35
35
)
36
+ from ert .trace import getTraceID
36
37
37
38
from ..summarypanel import SummaryPanel
38
39
from .combobox_with_description import QComboBoxWithDescription
@@ -383,6 +384,7 @@ def populate_clipboard_debug_info(self) -> None:
383
384
kv [field .name .replace ("_" , " " ).capitalize ()] = str (field_value )
384
385
385
386
kv ["**Status**" ] = ""
387
+ kv ["Trace ID" ] = getTraceID ()
386
388
kv ["Running time" ] = (
387
389
format_running_time (self ._model .get_runtime ()).split (":" )[1 ].strip ()
388
390
)
Original file line number Diff line number Diff line change 9
9
trace .set_tracer_provider (tracer_provider )
10
10
11
11
tracer = trace .get_tracer ("ert.main" )
12
+
13
+
14
+ def getTraceID () -> str :
15
+ return trace .format_trace_id (trace .get_current_span ().get_span_context ().trace_id )
You can’t perform that action at this time.
0 commit comments