Skip to content

Commit

Permalink
Add json-subscriber to ecosystem (#3121)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
mladedav authored and hds committed Nov 22, 2024
1 parent 82a92df commit 345fbff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ maintained by the `tokio` project. These include:
- [`sentry-tracing`] provides a layer for reporting events and traces to [Sentry].
- [`tracing-loki`] provides a layer for shipping logs to [Grafana Loki].
- [`tracing-logfmt`] provides a layer that formats events and spans into the logfmt format.
- [`json-subscriber`] provides a layer for emitting JSON logs. The output can be customized much more than with [`FmtSubscriber`]'s JSON output.

If you're the maintainer of a `tracing` ecosystem crate not listed above,
please let us know! We'd love to add your project to the list!
Expand Down Expand Up @@ -428,6 +429,7 @@ please let us know! We'd love to add your project to the list!
[`tracing-loki`]: https://crates.io/crates/tracing-loki
[Grafana Loki]: https://grafana.com/oss/loki/
[`tracing-logfmt`]: https://crates.io/crates/tracing-logfmt
[`json-subscriber`]: https://crates.io/crates/json-subscriber

**Note:** that some of the ecosystem crates are currently unreleased and
undergoing active development. They may be less stable than `tracing` and
Expand Down
2 changes: 2 additions & 0 deletions tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@
//! - [`reqwest-tracing`] provides a middleware to trace [`reqwest`] HTTP requests.
//! - [`tracing-cloudwatch`] provides a layer that sends events to AWS CloudWatch Logs.
//! - [`clippy-tracing`] provides a tool to add, remove and check for `tracing::instrument`.
//! - [`json-subscriber`] provides a subscriber for emitting JSON logs. The output can be customized much more than with [`tracing-subscriber`]'s JSON output.
//!
//! If you're the maintainer of a `tracing` ecosystem crate not listed above,
//! please let us know! We'd love to add your project to the list!
Expand Down Expand Up @@ -799,6 +800,7 @@
//! [`reqwest`]: https://crates.io/crates/reqwest
//! [`tracing-cloudwatch`]: https://crates.io/crates/tracing-cloudwatch
//! [`clippy-tracing`]: https://crates.io/crates/clippy-tracing
//! [`json-subscriber`]: https://crates.io/crates/json-subscriber
//!
//! <pre class="ignore" style="white-space:normal;font:inherit;">
//! <strong>Note</strong>: Some of these ecosystem crates are currently
Expand Down

0 comments on commit 345fbff

Please sign in to comment.