| Crates.io | tracing-dlt |
| lib.rs | tracing-dlt |
| version | 0.1.0 |
| created_at | 2025-12-01 14:05:28.285894+00 |
| updated_at | 2025-12-01 14:05:28.285894+00 |
| description | DLT log sink for |
| homepage | https://github.com/eclipse-opensovd/dlt-tracing-lib |
| repository | |
| max_upload_size | |
| id | 1959803 |
| size | 33,955 |
A
tracing subscriber/layer for sending structured logs and traces to the COVESA DLT daemon.
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.
tracing::info!, tracing::debug!, etc.Note: The
tracing-dltanddlt-rscrates can be used simultaneously in the same application, as long as application registration is done throughtracing-dlt.
use tracing_dlt::{DltLayer, DltId};
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize DLT layer
let dlt_layer = DltLayer::new(
&DltId::new(b"MBTI")?,
"My Beautiful Trace Ingestor"
)?;
// Set up tracing subscriber
tracing_subscriber::registry()
.with(dlt_layer)
.init();
// Use standard tracing macros
tracing::info!("Application started");
tracing::warn!(temperature = 95.5, "High temperature detected");
// Will be logged with context ID "SPCL"
tracing::warn!(dlt_context = "SPCL", "Log message on 'special' context id");
Ok(())
}
trace_load_ctrl - Enable DLT load control support (optional)dlt_layer_internal_logging - Enable debug logging for the layer itselfLicensed under the Apache License, Version 2.0. See LICENSE for details.
This project is part of Eclipse OpenSOVD, but can be used independently. See CONTRIBUTING.md for guidelines.