Skip to content

Commit 810ec49

Browse files
committed
Ruff
1 parent 205efa3 commit 810ec49

File tree

2 files changed

+8
-3
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-http

2 files changed

+8
-3
lines changed

exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/_log_exporter/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
OTEL_EXPORTER_OTLP_ENDPOINT,
4949
OTEL_EXPORTER_OTLP_HEADERS,
5050
OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE,
51-
OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER,
5251
OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE,
5352
OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY,
5453
OTEL_EXPORTER_OTLP_LOGS_COMPRESSION,
5554
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT,
5655
OTEL_EXPORTER_OTLP_LOGS_HEADERS,
5756
OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,
5857
OTEL_EXPORTER_OTLP_TIMEOUT,
58+
OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER,
5959
)
6060
from opentelemetry.util.re import parse_env_headers
6161

@@ -123,7 +123,11 @@ def __init__(
123123
)
124124
self._compression = compression or _compression_from_env()
125125
self._session = (
126-
session or _load_session_from_envvar(OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER) or requests.Session()
126+
session
127+
or _load_session_from_envvar(
128+
OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER
129+
)
130+
or requests.Session()
127131
)
128132
self._session.headers.update(self._headers)
129133
self._session.headers.update(_OTLP_HTTP_HEADERS)

exporter/opentelemetry-exporter-otlp-proto-http/tests/_common/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
# pylint: disable=protected-access
1616

17+
1718
class IterEntryPoint:
1819
def __init__(self, name, class_type):
1920
self.name = name
2021
self.class_type = class_type
2122

2223
def load(self):
23-
return self.class_type
24+
return self.class_type

0 commit comments

Comments
 (0)