| Crates.io | tracing-flat-json |
| lib.rs | tracing-flat-json |
| version | 0.1.0 |
| created_at | 2025-10-26 23:33:40.268467+00 |
| updated_at | 2025-10-26 23:33:40.268467+00 |
| description | A simple tracing-subscriber Layer emitting newline-delimited JSON. |
| homepage | |
| repository | https://github.com/PeterFaiman/tracing-flat-json |
| max_upload_size | |
| id | 1902019 |
| size | 89,470 |
tracing-flat-jsonto combining the json-subscriber options with_flattened_event and
with_top_level_flattened_span_list, without the caveats about duplicate
fields noted in the documentation for those options.
use tracing_subscriber::prelude::*;
tracing_subscriber::Registry::default()
.with(tracing_flat_json::FlatJsonLayer::new(std::io::stdout))
.init();
tracing-log: Handle log events emitted by tracing-log. Enabled
by default.tracing-opentelemetry: Outputs the trace_id added to spans by
tracing-opentelemetry. May not work when compiled with multiple
versions of tracing-opentelemetry in the same executable.Included:
trace_id (with feature tracing-opentelemetry)code.file.pathcode.line.numberExcluded:
targetspan_id