Skip to content

Commit 81dbf16

Browse files
committed
initial commit
1 parent b16709e commit 81dbf16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/opentelemetry-util-genai/src/opentelemetry/util/genai/_upload/completion_hook.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def done(future: Future[None]) -> None:
149149
path,
150150
contents_hashed_to_filename,
151151
), json_encodeable in upload_data.items():
152+
if contents_hashed_to_filename and self._file_exists(path):
153+
continue
152154
# could not acquire, drop data
153155
if not self._semaphore.acquire(blocking=False): # pylint: disable=consider-using-with
154156
_logger.warning(

0 commit comments

Comments
 (0)