File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
exporter/opentelemetry-exporter-richconsole/src/opentelemetry/exporter/richconsole Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 64
64
import opentelemetry .trace
65
65
from opentelemetry .sdk .trace import ReadableSpan
66
66
from opentelemetry .sdk .trace .export import SpanExporter , SpanExportResult
67
- from opentelemetry .semconv .trace import SpanAttributes
67
+ from opentelemetry .semconv ._incubating .attributes .db_attributes import (
68
+ DB_STATEMENT ,
69
+ )
68
70
69
71
70
72
def _ns_to_time (nanoseconds ):
@@ -120,7 +122,7 @@ def _child_add_optional_attributes(child: Tree, span: ReadableSpan):
120
122
label = Text .from_markup ("[bold cyan]Attributes :[/bold cyan] " )
121
123
)
122
124
for attribute in span .attributes :
123
- if attribute == SpanAttributes . DB_STATEMENT :
125
+ if attribute == DB_STATEMENT :
124
126
attributes .add (
125
127
Text .from_markup (f"[bold cyan]{ attribute } :[/bold cyan] " )
126
128
)
You can’t perform that action at this time.
0 commit comments