diff --git a/crates/ecstore/src/core/sets.rs b/crates/ecstore/src/core/sets.rs index fca4a41698..50539d1b60 100644 --- a/crates/ecstore/src/core/sets.rs +++ b/crates/ecstore/src/core/sets.rs @@ -846,7 +846,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for Sets { Ok(()) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn copy_object( &self, src_bucket: &str, @@ -924,14 +924,14 @@ impl crate::storage_api_contracts::object::ObjectOperations for Sets { )) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn delete_object_version(&self, bucket: &str, object: &str, fi: &FileInfo, force_del_marker: bool) -> Result<()> { self.get_disks_by_key(object) .delete_object_version(bucket, object, fi, force_del_marker) .await } - #[tracing::instrument(skip(self, opts))] + #[tracing::instrument(level = "trace", skip(self, opts))] async fn delete_object(&self, bucket: &str, object: &str, opts: ObjectOptions) -> Result { if opts.delete_prefix && !opts.delete_prefix_object { self.delete_prefix(bucket, object, &opts).await?; @@ -941,7 +941,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for Sets { self.get_disks_by_key(object).delete_object(bucket, object, opts).await } - #[tracing::instrument(skip(self, objects, opts))] + #[tracing::instrument(level = "trace", skip(self, objects, opts))] async fn delete_objects( &self, bucket: &str, @@ -952,7 +952,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for Sets { (deleted, errors) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn put_object_metadata(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.get_disks_by_key(object).put_object_metadata(bucket, object, opts).await } @@ -969,22 +969,22 @@ impl crate::storage_api_contracts::object::ObjectOperations for Sets { .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn delete_object_tags(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.get_disks_by_key(object).delete_object_tags(bucket, object, opts).await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn add_partial(&self, bucket: &str, object: &str, version_id: &str) -> Result<()> { self.get_disks_by_key(object).add_partial(bucket, object, version_id).await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn transition_object(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { self.get_disks_by_key(object).transition_object(bucket, object, opts).await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn restore_transitioned_object(self: Arc, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { self.get_disks_by_key(object) .restore_transitioned_object(bucket, object, opts) @@ -1073,12 +1073,12 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for Sets { delimiter, }) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn new_multipart_upload(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.get_disks_by_key(object).new_multipart_upload(bucket, object, opts).await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn copy_object_part( &self, _src_bucket: &str, @@ -1096,7 +1096,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for Sets { Err(StorageError::NotImplemented) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn put_object_part( &self, bucket: &str, @@ -1138,14 +1138,14 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for Sets { .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn abort_multipart_upload(&self, bucket: &str, object: &str, upload_id: &str, opts: &ObjectOptions) -> Result<()> { self.get_disks_by_key(object) .abort_multipart_upload(bucket, object, upload_id, opts) .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn complete_multipart_upload( self: Arc, bucket: &str, diff --git a/crates/ecstore/src/set_disk/core/io_primitives.rs b/crates/ecstore/src/set_disk/core/io_primitives.rs index f9fa47239c..210c63e238 100644 --- a/crates/ecstore/src/set_disk/core/io_primitives.rs +++ b/crates/ecstore/src/set_disk/core/io_primitives.rs @@ -6309,7 +6309,7 @@ impl SetDisks { } } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] pub(in crate::set_disk) async fn cleanup_multipart_path(&self, paths: &[String]) { if paths.is_empty() { return; @@ -6633,7 +6633,7 @@ impl SetDisks { Ok(()) } - #[tracing::instrument(skip(self, disks, meta), fields(pool_index = self.pool_index, set_index = self.set_index))] + #[tracing::instrument(level = "trace", skip(self, disks, meta), fields(pool_index = self.pool_index, set_index = self.set_index))] #[allow(clippy::too_many_arguments)] pub(in crate::set_disk) async fn rename_part( &self, @@ -6885,7 +6885,7 @@ impl SetDisks { disks } - #[tracing::instrument(skip(disks, files))] + #[tracing::instrument(level = "trace", skip(disks, files))] pub(in crate::set_disk) async fn write_unique_file_info( disks: &[Option], org_bucket: &str, diff --git a/crates/ecstore/src/set_disk/ops/multipart.rs b/crates/ecstore/src/set_disk/ops/multipart.rs index 189740ab89..638362332b 100644 --- a/crates/ecstore/src/set_disk/ops/multipart.rs +++ b/crates/ecstore/src/set_disk/ops/multipart.rs @@ -3295,7 +3295,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks { type MultipartInfo = MultipartInfo; type ListPartsInfo = ListPartsInfo; - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn copy_object_part( &self, _src_bucket: &str, @@ -4147,7 +4147,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks { result } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn new_multipart_upload(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { crate::hp_guard!("SetDisks::new_multipart_upload"); let protect_upload = opts.shard_integrity_write_enabled(); @@ -4375,7 +4375,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks { .map(|(info, _)| info) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn abort_multipart_upload(&self, bucket: &str, object: &str, upload_id: &str, opts: &ObjectOptions) -> Result<()> { let _upload_guard = self .acquire_multipart_upload_write_lock("abort_multipart_upload", bucket, object, upload_id, opts) @@ -4428,7 +4428,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks { } // complete_multipart_upload finished - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn complete_multipart_upload( self: Arc, bucket: &str, diff --git a/crates/ecstore/src/set_disk/ops/object.rs b/crates/ecstore/src/set_disk/ops/object.rs index 747ce430bc..7e12af69df 100644 --- a/crates/ecstore/src/set_disk/ops/object.rs +++ b/crates/ecstore/src/set_disk/ops/object.rs @@ -4580,7 +4580,7 @@ impl SetDisks { /// fall back to degraded accounting, never assume "absent". The extra /// value is deliberately *not* part of `ObjectInfo`, which feeds S3 /// responses, event payloads, replication, and ILM verbatim. - #[tracing::instrument(skip(self, data,))] + #[tracing::instrument(level = "trace", skip(self, data,))] pub async fn put_object_with_old_current_size( &self, bucket: &str, @@ -9696,7 +9696,7 @@ impl SetDisks { Ok(ObjectInfo::from_file_info(&fi, bucket, object, opts.versioned || opts.version_suspended)) } - #[tracing::instrument(skip(self, delete_marker_purge, commit_context))] + #[tracing::instrument(level = "trace", skip(self, delete_marker_purge, commit_context))] async fn delete_object_version_with_purge( &self, bucket: &str, @@ -10190,7 +10190,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { type ObjectToDelete = ObjectToDelete; type DeletedObject = DeletedObject; - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn copy_object( &self, src_bucket: &str, @@ -10522,7 +10522,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { src_opts.versioned || src_opts.version_suspended, )) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn delete_object_version(&self, bucket: &str, object: &str, fi: &FileInfo, force_del_marker: bool) -> Result<()> { let source_bucket_incarnation_id = if is_meta_bucketname(bucket) { None @@ -10547,7 +10547,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { result } - #[tracing::instrument(skip(self, objects, opts))] + #[tracing::instrument(level = "trace", skip(self, objects, opts))] async fn delete_objects( &self, bucket: &str, @@ -11760,7 +11760,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { (del_objects, del_errs, accounting) } - #[tracing::instrument(skip(self, opts))] + #[tracing::instrument(level = "trace", skip(self, opts))] async fn delete_object(&self, bucket: &str, object: &str, mut opts: ObjectOptions) -> Result { opts.ensure_delete_recovery_work_budget(); let _scope_outcome_guard = opts @@ -12415,7 +12415,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { Ok(oi) } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn add_partial(&self, bucket: &str, object: &str, version_id: &str) -> Result<()> { let source_bucket_incarnation_id = if is_meta_bucketname(bucket) { None @@ -12426,7 +12426,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn put_object_metadata(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { let replication_validate_only = opts .replication_status_writeback @@ -13420,13 +13420,13 @@ impl crate::storage_api_contracts::object::ObjectOperations for SetDisks { .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn delete_object_tags(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.update_object_tags_locked("delete_object_tags", bucket, object, "", opts) .await } - #[tracing::instrument(skip(self))] + #[tracing::instrument(level = "trace", skip(self))] async fn verify_object_integrity(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { let get_object_reader = ::get_object_reader( self, diff --git a/crates/ecstore/src/store/mod.rs b/crates/ecstore/src/store/mod.rs index 7a172aeae1..da528736a5 100644 --- a/crates/ecstore/src/store/mod.rs +++ b/crates/ecstore/src/store/mod.rs @@ -1634,7 +1634,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { self.handle_verify_object_integrity(bucket, object, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn copy_object( &self, src_bucket: &str, @@ -1650,7 +1650,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { .map(|(oi, _)| oi) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn delete_object_version(&self, bucket: &str, object: &str, fi: &FileInfo, force_del_marker: bool) -> Result<()> { let result = self.handle_delete_object_version(bucket, object, fi, force_del_marker).await; if result.is_ok() { @@ -1659,7 +1659,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { result } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn delete_object(&self, bucket: &str, object: &str, opts: ObjectOptions) -> Result { let result = self.handle_delete_object(bucket, object, opts).await; if result.is_ok() { @@ -1668,7 +1668,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { result } - #[instrument(skip(self, objects, opts))] + #[instrument(level = "trace", skip(self, objects, opts))] async fn delete_objects( &self, bucket: &str, @@ -1683,7 +1683,7 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { result } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn put_object_metadata(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.handle_put_object_metadata(bucket, object, opts).await } @@ -1697,21 +1697,21 @@ impl crate::storage_api_contracts::object::ObjectOperations for ECStore { self.handle_put_object_tags(bucket, object, tags, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn delete_object_tags(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.handle_delete_object_tags(bucket, object, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn add_partial(&self, bucket: &str, object: &str, version_id: &str) -> Result<()> { self.handle_add_partial(bucket, object, version_id).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn transition_object(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { self.handle_transition_object(bucket, object, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn restore_transitioned_object(self: Arc, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { self.handle_restore_transitioned_object(bucket, object, opts).await } @@ -1819,12 +1819,12 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for ECStore { .await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn new_multipart_upload(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { self.handle_new_multipart_upload(bucket, object, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn copy_object_part( &self, src_bucket: &str, @@ -1854,7 +1854,7 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for ECStore { ) .await } - #[instrument(skip(self, data))] + #[instrument(level = "trace", skip(self, data))] async fn put_object_part( &self, bucket: &str, @@ -1893,12 +1893,12 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for ECStore { .await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn abort_multipart_upload(&self, bucket: &str, object: &str, upload_id: &str, opts: &ObjectOptions) -> Result<()> { self.handle_abort_multipart_upload(bucket, object, upload_id, opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] async fn complete_multipart_upload( self: Arc, bucket: &str, diff --git a/crates/ecstore/src/store/multipart.rs b/crates/ecstore/src/store/multipart.rs index cc0899a007..ddc8d89e89 100644 --- a/crates/ecstore/src/store/multipart.rs +++ b/crates/ecstore/src/store/multipart.rs @@ -659,7 +659,7 @@ impl ECStore { }) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_new_multipart_upload( &self, bucket: &str, @@ -784,7 +784,7 @@ impl ECStore { Ok((res, idx, expected_bucket_incarnation_id)) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] #[allow(clippy::too_many_arguments)] pub(super) async fn handle_copy_object_part( &self, @@ -807,7 +807,7 @@ impl ECStore { Err(StorageError::NotImplemented) } - #[instrument(skip(self, data))] + #[instrument(level = "trace", skip(self, data))] #[hotpath::measure(impl_type = "ECStore")] pub(super) async fn handle_put_object_part( &self, @@ -1004,7 +1004,7 @@ impl ECStore { Err(StorageError::InvalidUploadID(bucket.to_owned(), object.to_owned(), upload_id.to_owned())) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_abort_multipart_upload( &self, bucket: &str, @@ -1348,7 +1348,7 @@ impl ECStore { crate::set_disk::SetDisks::evaluate_write_precondition(oi, &http_preconditions, bucket, object, opts) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_complete_multipart_upload( self: Arc, bucket: &str, diff --git a/crates/ecstore/src/store/object.rs b/crates/ecstore/src/store/object.rs index 15da591603..41a5ea6610 100644 --- a/crates/ecstore/src/store/object.rs +++ b/crates/ecstore/src/store/object.rs @@ -5240,7 +5240,7 @@ impl ECStore { Ok(info) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] #[allow(clippy::too_many_arguments)] pub(super) async fn handle_copy_object( &self, @@ -5622,7 +5622,7 @@ impl ECStore { }) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_delete_object(&self, bucket: &str, object: &str, opts: ObjectOptions) -> Result { self.handle_delete_object_with_journal(bucket, object, opts, None).await } @@ -6215,7 +6215,7 @@ impl ECStore { Err(StorageError::ObjectNotFound(bucket.to_owned(), object.to_owned())) } - #[instrument(skip(self, objects, opts))] + #[instrument(level = "trace", skip(self, objects, opts))] pub(super) async fn handle_delete_objects( &self, bucket: &str, @@ -7004,7 +7004,7 @@ impl ECStore { // Ok((del_objects, del_errs)) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_add_partial(&self, bucket: &str, object: &str, version_id: &str) -> Result<()> { let object = encode_dir_object(object); @@ -7025,7 +7025,7 @@ impl ECStore { Ok(()) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_transition_object(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<()> { let object = encode_dir_object(object); if self.single_pool() { @@ -7040,7 +7040,7 @@ impl ECStore { self.pools[idx].transition_object(bucket, &object, &opts).await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_restore_transitioned_object( self: Arc, bucket: &str, @@ -7105,7 +7105,7 @@ impl ECStore { .await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_put_object_metadata( &self, bucket: &str, @@ -7215,7 +7215,7 @@ impl ECStore { .await } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_delete_object_version( &self, bucket: &str, @@ -7235,7 +7235,7 @@ impl ECStore { Err(StorageError::NotImplemented) } - #[instrument(skip(self))] + #[instrument(level = "trace", skip(self))] pub(super) async fn handle_delete_object_tags(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result { let object = encode_dir_object(object); let object_name = object.as_str(); diff --git a/crates/protocols/src/swift/handler.rs b/crates/protocols/src/swift/handler.rs index 9244af2e86..d19143d50f 100644 --- a/crates/protocols/src/swift/handler.rs +++ b/crates/protocols/src/swift/handler.rs @@ -137,7 +137,7 @@ where self.s3_service.poll_ready(cx).map_err(Into::into) } - #[instrument(skip(self, req), fields(method = %req.method(), uri = %req.uri()))] + #[instrument(level = "trace", skip(self, req), fields(method = %req.method(), uri = %req.uri()))] fn call(&mut self, req: Request) -> Self::Future { // Try to parse as Swift request - only clone method if needed let method = req.method();