Skip to content

Commit 422d67d

Browse files
committed
removed venv
1 parent cbc0995 commit 422d67d

File tree

133 files changed

+260
-4992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+260
-4992
lines changed

docs/conf.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,22 @@ def getlistcfg(strval):
124124
if "class_references" in mcfg:
125125
class_references = getlistcfg(mcfg["class_references"])
126126
for class_reference in class_references:
127-
nitpick_ignore.append(("py:class", class_reference,))
127+
nitpick_ignore.append(
128+
(
129+
"py:class",
130+
class_reference,
131+
)
132+
)
128133

129134
if "anys" in mcfg:
130135
anys = getlistcfg(mcfg["anys"])
131136
for _any in anys:
132-
nitpick_ignore.append(("any", _any,))
137+
nitpick_ignore.append(
138+
(
139+
"any",
140+
_any,
141+
)
142+
)
133143

134144
# Add any paths that contain templates here, relative to this directory.
135145
templates_path = ["_templates"]

exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/propagator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ def inject(
9696
return
9797
sampled = (trace.TraceFlags.SAMPLED & span.context.trace_flags) != 0
9898
setter.set(
99-
carrier, self.TRACE_ID_KEY, format_trace_id(span.context.trace_id),
99+
carrier,
100+
self.TRACE_ID_KEY,
101+
format_trace_id(span.context.trace_id),
100102
)
101103
setter.set(
102104
carrier, self.PARENT_ID_KEY, format_span_id(span.context.span_id)

exporter/opentelemetry-exporter-datadog/tests/test_datadog_exporter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def test_constructor_explicit(self):
7676
"""Test the constructor passing all the options."""
7777
agent_url = "http://localhost:8126"
7878
exporter = datadog.DatadogSpanExporter(
79-
agent_url=agent_url, service="explicit",
79+
agent_url=agent_url,
80+
service="explicit",
8081
)
8182

8283
self.assertEqual(exporter.agent_url, agent_url)

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
@@ -167,7 +167,8 @@ async def on_request_start(
167167
request_span_name = str(trace_config_ctx.span_name)
168168

169169
trace_config_ctx.span = trace_config_ctx.tracer.start_span(
170-
request_span_name, kind=SpanKind.CLIENT,
170+
request_span_name,
171+
kind=SpanKind.CLIENT,
171172
)
172173

173174
if trace_config_ctx.span.is_recording():

instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def test_status_codes(self):
115115
(HTTPStatus.OK, StatusCode.UNSET),
116116
(HTTPStatus.TEMPORARY_REDIRECT, StatusCode.UNSET),
117117
(HTTPStatus.SERVICE_UNAVAILABLE, StatusCode.ERROR),
118-
(HTTPStatus.GATEWAY_TIMEOUT, StatusCode.ERROR,),
118+
(
119+
HTTPStatus.GATEWAY_TIMEOUT,
120+
StatusCode.ERROR,
121+
),
119122
):
120123
with self.subTest(status_code=status_code):
121124
host, port = self._http_request(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _instrument(self, **kwargs):
9191

9292
# pylint:disable=no-self-use
9393
def _uninstrument(self, **kwargs):
94-
""""Disable aiopg instrumentation"""
94+
""" "Disable aiopg instrumentation"""
9595
wrappers.unwrap_connect()
9696
wrappers.unwrap_create_pool()
9797

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ async def __call__(self, scope, receive, send):
205205

206206
try:
207207
with self.tracer.start_as_current_span(
208-
span_name, kind=trace.SpanKind.SERVER,
208+
span_name,
209+
kind=trace.SpanKind.SERVER,
209210
) as span:
210211
if span.is_recording():
211212
attributes = collect_request_attributes(scope)

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _common_request( # pylint: disable=too-many-locals
124124
endpoint_name = getattr(instance, "host").split(".")[0]
125125

126126
with self._tracer.start_as_current_span(
127-
"{}.command".format(endpoint_name), kind=SpanKind.CONSUMER,
127+
"{}.command".format(endpoint_name),
128+
kind=SpanKind.CONSUMER,
128129
) as span:
129130
span.set_attribute("endpoint", endpoint_name)
130131
if args:
@@ -136,7 +137,11 @@ def _common_request( # pylint: disable=too-many-locals
136137

137138
if span.is_recording():
138139
add_span_arg_tags(
139-
span, endpoint_name, args, args_name, traced_args,
140+
span,
141+
endpoint_name,
142+
args,
143+
args_name,
144+
traced_args,
140145
)
141146

142147
# Obtaining region name

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def _patched_api_call(self, original_func, instance, args, kwargs):
145145
BotocoreInstrumentor._patch_lambda_invoke(api_params)
146146

147147
with self._tracer.start_as_current_span(
148-
"{}".format(service_name), kind=SpanKind.CLIENT,
148+
"{}".format(service_name),
149+
kind=SpanKind.CLIENT,
149150
) as span:
150151
if span.is_recording():
151152
span.set_attribute("aws.operation", operation_name)
@@ -183,12 +184,14 @@ def _patched_api_call(self, original_func, instance, args, kwargs):
183184

184185
if req_id:
185186
span.set_attribute(
186-
"aws.request_id", req_id,
187+
"aws.request_id",
188+
req_id,
187189
)
188190

189191
if "RetryAttempts" in metadata:
190192
span.set_attribute(
191-
"retry_attempts", metadata["RetryAttempts"],
193+
"retry_attempts",
194+
metadata["RetryAttempts"],
192195
)
193196

194197
if "HTTPStatusCode" in metadata:

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def test_s3_client(self):
158158
},
159159
)
160160
self.assertIs(
161-
span.status.status_code, trace_api.StatusCode.ERROR,
161+
span.status.status_code,
162+
trace_api.StatusCode.ERROR,
162163
)
163164

164165
# Comment test for issue 1088
@@ -398,11 +399,13 @@ def test_lambda_invoke_propagation(self):
398399

399400
self.assertIn(MockTextMapPropagator.TRACE_ID_KEY, headers)
400401
self.assertEqual(
401-
"0", headers[MockTextMapPropagator.TRACE_ID_KEY],
402+
"0",
403+
headers[MockTextMapPropagator.TRACE_ID_KEY],
402404
)
403405
self.assertIn(MockTextMapPropagator.SPAN_ID_KEY, headers)
404406
self.assertEqual(
405-
"0", headers[MockTextMapPropagator.SPAN_ID_KEY],
407+
"0",
408+
headers[MockTextMapPropagator.SPAN_ID_KEY],
406409
)
407410
finally:
408411
set_global_textmap(previous_propagator)

0 commit comments

Comments
 (0)