tracing-dlt
A
tracing subscriber/layer for sending structured logs and traces to the COVESA DLT daemon.
Overview
tracing-dlt provides a tracing layer that forwards logs and spans to the COVESA DLT daemon. This allows you to use the standard tracing macros in your Rust application while outputting to DLT.
Features
- ✅ Tracing integration - Use standard
tracing::info!,tracing::debug!, etc. - ✅ Structured logging - Field types are preserved when sent to DLT
- ✅ Span context - Nested spans appear in log messages
- ✅ Dynamic log levels - Responds to DLT daemon log level changes
- ✅ Thread-safe - Safe for concurrent use across async tasks
- ✅ Multiple contexts - Support for different logging contexts per span
Note: The
tracing-dltanddlt-rscrates can be used simultaneously in the same application, as long as application registration is done throughtracing-dlt.
Basic Example
use ;
use ;
Features
trace_load_ctrl- Enable DLT load control support (optional)dlt_layer_internal_logging- Enable debug logging for the layer itself
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Contributing
This project is part of Eclipse OpenSOVD, but can be used independently. See CONTRIBUTING.md for guidelines.