Skip to content

Commit 9870a3d

Browse files
committed
fix formatting issues
1 parent dd5bf24 commit 9870a3d

File tree

2 files changed

+6
-5
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client
  • util/opentelemetry-util-http/src/opentelemetry/util/http

2 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def response_hook(span: Span, params: typing.Union[
249249
normalise_request_header_name,
250250
normalise_response_header_name,
251251
redact_url,
252-
sanitize_method, get_custom_header_attributes,
252+
sanitize_method,
253+
get_custom_header_attributes,
253254
)
254255

255256
_UrlFilterT = typing.Optional[typing.Callable[[yarl.URL], str]]

util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def get_custom_headers(env_var: str) -> list[str]:
258258

259259

260260
def get_custom_header_attributes(
261-
headers: Mapping[str, str | list[str]] | None,
262-
captured_headers: list[str] | None,
263-
sensitive_headers: list[str] | None,
264-
normalize_function: Callable[[str], str],
261+
headers: Mapping[str, str | list[str]] | None,
262+
captured_headers: list[str] | None,
263+
sensitive_headers: list[str] | None,
264+
normalize_function: Callable[[str], str],
265265
) -> dict[str, list[str]]:
266266
"""Extract and sanitize HTTP headers for span attributes.
267267

0 commit comments

Comments
 (0)