Skip to content

Commit

Permalink
HH-199910 fix linter violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkymann committed Nov 28, 2023
1 parent 35e8214 commit 540c235
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontik/integrations/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 540c235

Please sign in to comment.