Skip to content

Commit 58e4da3

Browse files
committed
fix: correct _UrlFilterT
1 parent d01efe5 commit 58e4da3

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client

1 file changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def response_hook(span: Span, params: typing.Union[
9191

9292
import aiohttp
9393
import wrapt
94-
94+
import yarl
9595
from opentelemetry import context as context_api
9696
from opentelemetry import trace
9797
from opentelemetry.instrumentation.aiohttp_client.package import _instruments
@@ -108,7 +108,7 @@ def response_hook(span: Span, params: typing.Union[
108108
from opentelemetry.trace.status import Status, StatusCode
109109
from opentelemetry.util.http import remove_url_credentials
110110

111-
_UrlFilterT = typing.Optional[typing.Callable[[str], str]]
111+
_UrlFilterT = typing.Optional[typing.Callable[[yarl.URL], str]]
112112
_RequestHookT = typing.Optional[
113113
typing.Callable[[Span, aiohttp.TraceRequestStartParams], None]
114114
]

0 commit comments

Comments
 (0)