Skip to content

Commit 2f21804

Browse files
committed
comments, clean up doc strings
1 parent b7bbeae commit 2f21804

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

util/opentelemetry-util-genai/src/opentelemetry/util/genai/_fsspec_upload/fsspec_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def done(future: Future[None]) -> None:
104104
"fsspec upload queue is full, dropping upload %s",
105105
path,
106106
)
107-
return
107+
continue
108108

109109
try:
110110
fut = self._executor.submit(

util/opentelemetry-util-genai/src/opentelemetry/util/genai/environment_variables.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
)
2222
"""
2323
.. envvar:: OTEL_INSTRUMENTATION_GENAI_UPLOAD_HOOK
24-
25-
The only known value is ``fsspec``, which
2624
"""
2725

2826
OTEL_INSTRUMENTATION_GENAI_UPLOAD_BASE_PATH = (
@@ -32,7 +30,7 @@
3230
.. envvar:: OTEL_INSTRUMENTATION_GENAI_UPLOAD_BASE_PATH
3331
3432
An :func:`fsspec.open` compatible URI/path for uploading prompts and responses. Can be a local
35-
path like ``file:./prompts`` or a cloud storage URI such as ``gs://my_bucket``. For more
33+
path like ``/path/to/prompts`` or a cloud storage URI such as ``gs://my_bucket``. For more
3634
information, see
3735
3836
* `Instantiate a file-system

util/opentelemetry-util-genai/tests/test_fsspec_upload.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ def test_upload_then_shutdown(self):
121121
def test_upload_blocked(self):
122122
unblock_upload = threading.Event()
123123

124-
def blocked_upload(*args: Any) -> None:
124+
def blocked_upload(*args: Any):
125125
unblock_upload.wait()
126+
return MagicMock()
126127

127-
self.mock_fsspec.open = MagicMock(wraps=blocked_upload)
128+
self.mock_fsspec.open.side_effect = blocked_upload
128129

129130
# fill the queue
130131
for _ in range(MAXSIZE):

0 commit comments

Comments
 (0)