diff --git a/frontik/integrations/telemetry.py b/frontik/integrations/telemetry.py index 3795d2122..a51865f4b 100644 --- a/frontik/integrations/telemetry.py +++ b/frontik/integrations/telemetry.py @@ -12,13 +12,13 @@ from opentelemetry.instrumentation import aiohttp_client, tornado from opentelemetry.propagate import set_global_textmap from opentelemetry.sdk.resources import Resource -from opentelemetry.sdk.trace import IdGenerator, TracerProvider, Span as SpanImpl +from opentelemetry.sdk.trace import IdGenerator, TracerProvider +from opentelemetry.sdk.trace import Span as SpanImpl from opentelemetry.sdk.trace.export import BatchSpanProcessor from opentelemetry.sdk.trace.sampling import ParentBased, TraceIdRatioBased from opentelemetry.semconv.resource import ResourceAttributes from opentelemetry.semconv.trace import SpanAttributes from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator -from opentelemetry.util import types from opentelemetry.util.http import ExcludeList from frontik import request_context @@ -31,6 +31,7 @@ import aiohttp from http_client.request_response import RequestBuilder from opentelemetry.trace import Span + from opentelemetry.util import types from frontik.app import FrontikApplication @@ -50,7 +51,7 @@ def __init__(self): TelemetryIntegration.patch_span_impl() @staticmethod - def patch_span_impl(): + def patch_span_impl() -> None: set_attribute = SpanImpl.set_attribute def patched_set_attribute(self, key: str, value: types.AttributeValue) -> None: