Skip to content

Commit 5d1a735

Browse files
committed
ordering imports
1 parent c5173fe commit 5d1a735

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

exporter/opentelemetry-exporter-richconsole/src/opentelemetry/exporter/richconsole/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
import datetime
5656
import typing
57-
from typing import Optional, List, Dict
57+
from typing import Dict, List, Optional
5858

5959
from rich.console import Console
6060
from rich.syntax import Syntax
@@ -73,7 +73,6 @@ def _ns_to_time(nanoseconds):
7373

7474

7575
def _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
)

exporter/opentelemetry-exporter-richconsole/tests/test_rich_exporter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313
# limitations under the License.
1414

1515
import pytest
16+
from rich.tree import Tree
1617

18+
import opentelemetry.trace
1719
from opentelemetry.exporter.richconsole import RichConsoleSpanExporter
1820
from opentelemetry.sdk import trace
19-
from opentelemetry.sdk.trace import ReadableSpan
2021
from 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")

0 commit comments

Comments
 (0)