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 6464import opentelemetry .trace
6565from opentelemetry .sdk .trace import ReadableSpan
6666from 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+ )
6870
6971
7072def _ns_to_time (nanoseconds ):
@@ -120,7 +122,7 @@ def _child_add_optional_attributes(child: Tree, span: ReadableSpan):
120122 label = Text .from_markup ("[bold cyan]Attributes :[/bold cyan] " )
121123 )
122124 for attribute in span .attributes :
123- if attribute == SpanAttributes . DB_STATEMENT :
125+ if attribute == DB_STATEMENT :
124126 attributes .add (
125127 Text .from_markup (f"[bold cyan]{ attribute } :[/bold cyan] " )
126128 )
You can’t perform that action at this time.
0 commit comments