Skip to content

Commit

Permalink
fixing formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Sep 18, 2019
1 parent 1a3dc75 commit 607a794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from opentelemetry import propagators
from opentelemetry.trace import SpanKind


# NOTE: Currently we force passing a tracer. But in turn, this forces the user
# to configure a SDK before enabling this integration. In turn, this means that
# if the SDK/tracer is already using `requests` they may, in theory, bypass our
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def __call__(self, environ, start_response):
path_info = environ["PATH_INFO"] or "/"
parent_span = propagators.extract(get_header_from_environ, environ)

with tracer.start_span(path_info, parent_span, kind=trace.SpanKind.SERVER) as span:
with tracer.start_span(
path_info, parent_span, kind=trace.SpanKind.SERVER
) as span:
self._add_request_attributes(span, environ)
start_response = self._create_start_response(span, start_response)

Expand Down

0 comments on commit 607a794

Please sign in to comment.