Skip to content

Commit a5dbadc

Browse files
committed
experiment a bit with new function decorator
1 parent 08dbf7b commit a5dbadc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/service-library/src/servicelib/tracing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
from contextlib import contextmanager
33
from contextvars import Token
44
from functools import wraps
5-
from typing import Any, TypeAlias
5+
from typing import Any, Final, TypeAlias
66

77
import pyinstrument
88
from opentelemetry import context as otcontext
99
from opentelemetry import trace
1010
from opentelemetry.instrumentation.logging import LoggingInstrumentor
11-
from servicelib.redis._client import Final
1211
from settings_library.tracing import TracingSettings
1312

1413
TracingContext: TypeAlias = otcontext.Context | None
@@ -86,7 +85,7 @@ async def wrapper(*args: Any, **kwargs: Any) -> Any:
8685
profiler.stop()
8786
span.set_attribute(
8887
_PROFILE_ATTRIBUTE_NAME,
89-
profiler.output_text(unicode=True, color=False, show_all=True),
88+
profiler.output_text(unicode=True, color=False),
9089
)
9190

9291
return wrapper

0 commit comments

Comments
 (0)