Skip to content

Commit 26be3d5

Browse files
committed
fix(tracing/span): use credential_manager for storage operations
1 parent 189400f commit 26be3d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dreadnode/tracing/span.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def store_operation() -> str:
650650

651651
return str(filesystem.unstrip_protocol(full_path))
652652

653-
return self._storage_manager.execute_with_retry(store_operation)
653+
return self._credential_manager.execute_with_retry(store_operation)
654654

655655
def _create_object_by_hash(self, serialized: Serialized, object_hash: str) -> Object:
656656
"""Create an ObjectVal or ObjectUri depending on size with a specific hash."""
@@ -675,7 +675,7 @@ def _create_object_by_hash(self, serialized: Serialized, object_hash: str) -> Ob
675675
# Offload to file system (e.g., S3)
676676
# For storage efficiency, still use just the data_hash for the file path
677677
# This ensures we don't duplicate storage for the same data
678-
prefix = self._storage_manager.get_prefix()
678+
prefix = self._credential_manager.get_prefix()
679679
full_path = f"{prefix.rstrip('/')}/{data_hash}"
680680
object_uri = self._store_file_by_hash(data_bytes, full_path)
681681

0 commit comments

Comments
 (0)