File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
exporter/opentelemetry-exporter-richconsole
src/opentelemetry/exporter/richconsole Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 5454
5555import datetime
5656import typing
57- from typing import Optional , List , Dict
57+ from typing import Dict , List , Optional
5858
5959from rich .console import Console
6060from rich .syntax import Syntax
@@ -73,7 +73,6 @@ def _ns_to_time(nanoseconds):
7373
7474
7575def _child_to_tree (child : Tree , span : ReadableSpan ):
76- print (span .name )
7776 child .add (
7877 Text .from_markup (f"[bold cyan]Kind :[/bold cyan] { span .kind .name } " )
7978 )
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import pytest
16+ from rich .tree import Tree
1617
18+ import opentelemetry .trace
1719from opentelemetry .exporter .richconsole import RichConsoleSpanExporter
1820from opentelemetry .sdk import trace
19- from opentelemetry .sdk .trace import ReadableSpan
2021from opentelemetry .sdk .trace .export import (
2122 BatchSpanProcessor ,
2223 SimpleSpanProcessor ,
2324)
24- import opentelemetry .trace
25- from rich .tree import Tree
2625
2726
2827@pytest .fixture (name = "span_processor" )
You can’t perform that action at this time.
0 commit comments