Skip to content

Commit f93e926

Browse files
committed
Fix linting issues
1 parent 216ba4c commit f93e926

File tree

1 file changed

+3
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ def get_default_span_details(scope: dict) -> Tuple[str, dict]:
149149
Returns:
150150
a tuple of the span name, and any attributes to attach to the span.
151151
"""
152-
span_name = scope.get("path") or "HTTP {}".format(scope.get("method", "").strip())
152+
span_name = scope.get("path", "").strip() or "HTTP {}".format(
153+
scope.get("method", "").strip()
154+
)
153155

154156
return span_name, {}
155157

0 commit comments

Comments
 (0)