Skip to content

Commit

Permalink
HH-199910 fix linter violations[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkymann committed Nov 29, 2023
1 parent 540c235 commit 3563024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontik/integrations/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def __init__(self):
def patch_span_impl() -> None:
set_attribute = SpanImpl.set_attribute

def patched_set_attribute(self, key: str, value: types.AttributeValue) -> None:
def patched_set_attribute(self: SpanImpl, key: str, value: types.AttributeValue) -> None:
if key not in excluded_span_attributes:
return set_attribute(self, key, value)

SpanImpl.set_attribute = patched_set_attribute
SpanImpl.set_attribute = patched_set_attribute # type: ignore

def initialize_app(self, app: FrontikApplication) -> Future | None:
if not options.opentelemetry_enabled:
Expand Down

0 comments on commit 3563024

Please sign in to comment.