Xuanwo opened a new pull request, #8757: URL: https://github.com/apache/opendal/pull/8757
# Which issue does this PR close? No tracking issue. This fixes an instrumentation gap in the await-tree layer. # Rationale for this change `AwaitTreeLayer` promises that pending operations appear in the await-tree registry. `AwaitTreeWrapper::delete` awaited the inner deleter without `instrument_await`, so pending deletes were missing from the tree. `Service::compose` also returned the raw composer, leaving `oio::Compose` uninstrumented. # What changes are included in this PR? - Instrument `oio::Delete::delete` with the `opendal::delete` span, matching `close`. - Wrap `oio::Compose` in `AwaitTreeWrapper` and instrument `compose` and `close` with `opendal::compose`. - Add unit tests that poll pending delete and compose mocks inside a registry root and assert the live tree contains the expected spans. The delete test fails before the fix. # Are there any user-facing changes? Pending delete and compose operations now appear in await-tree output under `opendal::delete` and `opendal::compose`. # Breaking changes # AI Usage Statement - Harness: pi coding agent - Model: group/deepseek - Effort: max - Role: Implementation sub-agent. Inspected the layer, implemented the instrumentation, added focused unit tests, and ran the focused test, clippy, and formatting checks. The tests use pending mocks rather than a live backend. -- 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]
