Skip to content

Commit 235d22d

Browse files
committed
Fix variable name
1 parent eb17ec2 commit 235d22d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ def test_shutdown_interrupts_export_retry_backoff(self):
347347
time.sleep(0.05)
348348
# The code should now be in a 1 second backoff.
349349
# pylint: disable=protected-access
350-
self.assertFalse(self.exporter._shutdown_is_occuring.is_set())
350+
self.assertFalse(self.exporter._shutdown_in_progress.is_set())
351351
self.exporter.shutdown()
352-
self.assertTrue(self.exporter._shutdown_is_occuring.is_set())
352+
self.assertTrue(self.exporter._shutdown_in_progress.is_set())
353353
export_result = export_thread.join()
354354
end_wait = time.time()
355355
self.assertEqual(export_result, SpanExportResult.FAILURE)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(
121121
| None = None,
122122
preferred_aggregation: dict[type, Aggregation] | None = None,
123123
):
124-
self._shutdown_is_occuring = threading.Event()
124+
self._shutdown_in_progress = threading.Event()
125125
self._endpoint = endpoint or environ.get(
126126
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT,
127127
_append_metrics_path(
@@ -238,7 +238,7 @@ def export(
238238
resp.reason,
239239
backoff_seconds,
240240
)
241-
shutdown = self._shutdown_is_occuring.wait(backoff_seconds)
241+
shutdown = self._shutdown_in_progress.wait(backoff_seconds)
242242
if shutdown:
243243
_logger.warning("Shutdown in progress, aborting retry.")
244244
break
@@ -249,7 +249,7 @@ def shutdown(self, timeout_millis: float = 30_000, **kwargs) -> None:
249249
_logger.warning("Exporter already shutdown, ignoring call")
250250
return
251251
self._shutdown = True
252-
self._shutdown_is_occuring.set()
252+
self._shutdown_in_progress.set()
253253
self._session.close()
254254

255255
@property

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
compression: Optional[Compression] = None,
7878
session: Optional[requests.Session] = None,
7979
):
80-
self._shutdown_is_occuring = threading.Event()
80+
self._shutdown_in_progress = threading.Event()
8181
self._endpoint = endpoint or environ.get(
8282
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,
8383
_append_trace_path(
@@ -186,7 +186,7 @@ def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult:
186186
resp.reason,
187187
backoff_seconds,
188188
)
189-
shutdown = self._shutdown_is_occuring.wait(backoff_seconds)
189+
shutdown = self._shutdown_in_progress.wait(backoff_seconds)
190190
if shutdown:
191191
_logger.warning("Shutdown in progress, aborting retry.")
192192
break
@@ -197,7 +197,7 @@ def shutdown(self):
197197
_logger.warning("Exporter already shutdown, ignoring call")
198198
return
199199
self._shutdown = True
200-
self._shutdown_is_occuring.set()
200+
self._shutdown_in_progress.set()
201201
self._session.close()
202202

203203
def force_flush(self, timeout_millis: int = 30000) -> bool:

0 commit comments

Comments
 (0)