From 607a7943fc7dce105b16b8304c97785a21286578 Mon Sep 17 00:00:00 2001 From: Yusuke Tsutsumi Date: Wed, 18 Sep 2019 09:53:27 -0700 Subject: [PATCH] fixing formatting. --- .../src/opentelemetry/ext/http_requests/__init__.py | 1 + .../src/opentelemetry/ext/wsgi/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/opentelemetry-ext-http-requests/src/opentelemetry/ext/http_requests/__init__.py b/ext/opentelemetry-ext-http-requests/src/opentelemetry/ext/http_requests/__init__.py index 7971b0e128..994968e196 100644 --- a/ext/opentelemetry-ext-http-requests/src/opentelemetry/ext/http_requests/__init__.py +++ b/ext/opentelemetry-ext-http-requests/src/opentelemetry/ext/http_requests/__init__.py @@ -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 diff --git a/ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py b/ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py index 6974a77df3..28caa77e52 100644 --- a/ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py +++ b/ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py @@ -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)