Xuanwo commented on issue #3489: URL: https://github.com/apache/opendal/issues/3489#issuecomment-7172473927
For your Prometheus registry and logger, one option today is to wrap the public calls in your application. I tested synchronous and asynchronous `read` calls on Memory using the same Python `CollectorRegistry` and application logger. Both counters appeared in the registry, and the logger used the application’s formatter. That observes one event per public call. On the published `opendal==0.47.12` wheel, passing a Python observer to `.layer()` raised `TypeError` on both `Operator` and `AsyncOperator`. The built-in `MimeGuessLayer` worked on both. At `4ee150f82f`, the binding still dispatches through Rust layer implementations. [Layer implementation](https://github.com/apache/opendal/blob/4ee150f82f2fd694bd43e6a78a1e772f3e7ce135/bindings/python/src/layers/mod.rs#L40-L56) Would observing each public call this way cover your use case, or do you need OpenDAL to emit events automatically? If you need automatic events, does each retry attempt need its own metric or log entry? *AI-generated maintenance reply.* -- 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]
