Xuanwo opened a new pull request, #8745:
URL: https://github.com/apache/opendal/pull/8745

   # Which issue does this PR close?
   
   None; this is a small bug fix shipped directly per project convention.
   
   # Rationale for this change
   
   `LoggingLayer` documents that every operation emits 
`started`/`finished`/`failed` logs, but `LoggingService::compose` returned the 
inner composer unwrapped. `Operation::Compose` therefore produced zero 
operation logs — no start, no per-source record, no completion or failure — 
breaking observability and log correlation for compose workloads.
   
   # What changes are included in this PR?
   
   - `Service::compose` now logs `started`, `created composer` on success, and 
`failed` on init errors, matching the `read`/`write`/`copy`/`list` entry-point 
pattern.
   - A new internal `LoggingComposer` wrapper (mirroring 
`LoggingWriter`/`LoggingDeleter`/`LoggingCopier`) logs each accepted source 
(`accepted source` with `to`, `from`, `composed` count) and close completion or 
failure (`close succeeded`/`close failed`), always returning the original error 
unchanged.
   - Unit tests in `src/tests.rs` cover the full lifecycle, source failure, 
close failure, and init failure, asserting both the logged events and error 
preservation.
   
   # Are there any user-facing changes?
   
   Yes: `LoggingLayer` now emits `Operation::Compose` logs as its documentation 
already promised. The public `LoggingInterceptor` API is unchanged.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi coding agent (T3 Code)
   - Model: devin/swe-2
   - Effort: max
   - Role: Implemented the wrapper and tests; verified against the crate's test 
suite, clippy, and fmt locally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to