Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
omgitsaheadcrab committed Aug 21, 2024
1 parent c074c62 commit ddfb5e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ def __init__(
self.exclude_receive_span = (
"receive" in exclude_spans if exclude_spans else False
)
self.exclude_send_span = "send" in exclude_spans if exclude_spans else False
self.exclude_send_span = (
"send" in exclude_spans if exclude_spans else False
)

# pylint: disable=too-many-statements
async def __call__(
Expand Down Expand Up @@ -884,9 +886,7 @@ async def otel_send(message: dict[str, Any]):
else {}
)
if len(custom_response_attributes) > 0:
server_span.set_attributes(
custom_response_attributes
)
server_span.set_attributes(custom_response_attributes)

if status_code:
set_status_code(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@ def _instrument(self, **kwargs):
else parse_excluded_urls(_excluded_urls)
)
_InstrumentedFastAPI._meter_provider = kwargs.get("meter_provider")
_InstrumentedFastAPI._exclude_spans = kwargs.get(
"exclude_spans"
)
_InstrumentedFastAPI._exclude_spans = kwargs.get("exclude_spans")
fastapi.FastAPI = _InstrumentedFastAPI

def _uninstrument(self, **kwargs):
Expand Down

0 comments on commit ddfb5e6

Please sign in to comment.