Skip to content

Commit 2fdbf09

Browse files
authored
Add json-subscriber to ecosystem (#3121)
## Motivation I've created a library for better customization of JSON log lines and would like to make it more discoverable. This subscriber could help with a lot of issues such as #1531 ## Solution Add `json-subscriber` to the ecosystem.
1 parent 8bf753e commit 2fdbf09

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tracing/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ maintained by the `tokio` project. These include:
379379
- [`sentry-tracing`] provides a layer for reporting events and traces to [Sentry].
380380
- [`tracing-loki`] provides a layer for shipping logs to [Grafana Loki].
381381
- [`tracing-logfmt`] provides a layer that formats events and spans into the logfmt format.
382+
- [`json-subscriber`] provides a layer for emitting JSON logs. The output can be customized much more than with [`FmtSubscriber`]'s JSON output.
382383

383384
If you're the maintainer of a `tracing` ecosystem crate not listed above,
384385
please let us know! We'd love to add your project to the list!
@@ -410,6 +411,7 @@ please let us know! We'd love to add your project to the list!
410411
[`tracing-loki`]: https://crates.io/crates/tracing-loki
411412
[Grafana Loki]: https://grafana.com/oss/loki/
412413
[`tracing-logfmt`]: https://crates.io/crates/tracing-logfmt
414+
[`json-subscriber`]: https://crates.io/crates/json-subscriber
413415

414416
**Note:** that some of the ecosystem crates are currently unreleased and
415417
undergoing active development. They may be less stable than `tracing` and

tracing/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@
817817
//! - [`reqwest-tracing`] provides a middleware to trace [`reqwest`] HTTP requests.
818818
//! - [`tracing-cloudwatch`] provides a layer that sends events to AWS CloudWatch Logs.
819819
//! - [`clippy-tracing`] provides a tool to add, remove and check for `tracing::instrument`.
820+
//! - [`json-subscriber`] provides a subscriber for emitting JSON logs. The output can be customized much more than with [`tracing-subscriber`]'s JSON output.
820821
//!
821822
//! If you're the maintainer of a `tracing` ecosystem crate not listed above,
822823
//! please let us know! We'd love to add your project to the list!
@@ -860,6 +861,7 @@
860861
//! [`reqwest`]: https://crates.io/crates/reqwest
861862
//! [`tracing-cloudwatch`]: https://crates.io/crates/tracing-cloudwatch
862863
//! [`clippy-tracing`]: https://crates.io/crates/clippy-tracing
864+
//! [`json-subscriber`]: https://crates.io/crates/json-subscriber
863865
//!
864866
//! <div class="example-wrap" style="display:inline-block">
865867
//! <pre class="ignore" style="white-space:normal;font:inherit;">

0 commit comments

Comments
 (0)