Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamantike committed May 6, 2021
1 parent 99cc9b5 commit 4a7082a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ def get_default_span_details(scope: dict) -> Tuple[str, dict]:
Returns:
a tuple of the span name, and any attributes to attach to the span.
"""
span_name = scope.get("path") or "HTTP {}".format(scope.get("method", "").strip())
span_name = scope.get("path", "").strip() or "HTTP {}".format(
scope.get("method", "").strip()
)

return span_name, {}

Expand Down

0 comments on commit 4a7082a

Please sign in to comment.