Skip to content

Commit c96790d

Browse files
committed
Fix ruff
1 parent ffa529d commit c96790d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
> Use [this search for a list of all CHANGELOG.md files in this repo](https://github.com/search?q=repo%3Aopen-telemetry%2Fopentelemetry-python-contrib+path%3A**%2FCHANGELOG.md&type=code).
1111
1212
## Unreleased
13-
- `opentelemetry-instrumentation-asgi` Fixed an issue where FastAPI reports IP instead of URL.
14-
([#3670](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3670))
1513

1614
### Fixed
1715

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@ def get_host_port_url_tuple(scope):
451451
host_value = host_header[0]
452452
# Ensure host_value is a string, not bytes
453453
if isinstance(host_value, bytes):
454-
host_value = _decode_header_item(
455-
host_value
456-
)
454+
host_value = _decode_header_item(host_value)
457455

458456
url_host = host_value
459457

0 commit comments

Comments
 (0)