You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2025/09/12 20:32:20 UTC

Re: [I] Add docs for Observability of OpenDAL [opendal]

Xuanwo commented on issue #4123:
URL: https://github.com/apache/opendal/issues/4123#issuecomment-3286747133

   Hi @zjregee! Thank you so much for your patience and willingness to contribute to OpenDAL's observability documentation. I apologize for the delayed response - it's been too long since we last discussed this.
   
   I'd like to move forward with the **examples directory approach** as we discussed earlier. After reviewing our current observability layers, I think we can create comprehensive examples that would be very valuable for users.
   
   ## Current Observability Layers Available
   
   OpenDAL currently has these observability layers:
   
   **Core Observability:**
   - `LoggingLayer` - Operation logging with custom interceptors
   - `MetricsLayer` - Basic metrics collection 
   - `TracingLayer` - Distributed tracing support
   
   **Metrics Export:**
   - `PrometheusLayer` - Prometheus metrics export (legacy)
   - `PrometheusClientLayer` - Modern prometheus-client integration
   - `FastmetricsLayer` - High-performance metrics collection
   
   **OpenTelemetry Integration:**
   - `OtelMetricsLayer` - OpenTelemetry metrics
   - `OtelTraceLayer` - OpenTelemetry distributed tracing
   
   **Advanced Tracing:**
   - `FastraceLayer` - High-performance tracing with fastrace
   
   **Debugging Tools:**
   - `AwaitTreeLayer` - Async task debugging
   - `AsyncBacktraceLayer` - Async stack traces
   - `DtraceLayer` - Linux DTrace integration
   
   ## Proposed Implementation Plan
   
   I suggest we implement this in phases, starting with the most commonly used layers:
   
   **Phase 1 (Priority):** Basic observability
   - `LoggingLayer` example with custom interceptor
   - `MetricsLayer` basic usage
   - `TracingLayer` setup
   
   **Phase 2:** Metrics export
   - `PrometheusClientLayer` with HTTP server
   - `FastmetricsLayer` usage
   
   **Phase 3:** OpenTelemetry integration  
   - `OtelMetricsLayer` and `OtelTraceLayer` examples
   
   **Phase 4:** Advanced debugging
   - `AwaitTreeLayer`, `AsyncBacktraceLayer` examples
   
   Each example should follow the existing pattern in `core/examples/` with:
   - Independent `Cargo.toml` with necessary dependencies
   - `README.md` with clear usage instructions
   - `src/main.rs` with practical demonstration
   
   Would you be interested in starting with **Phase 1**? I can provide more detailed guidance on the specific implementation approach and help review the examples as you build them.
   
   What are your thoughts on this plan? Happy to discuss and adjust based on your preferences!


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org