tracing-log-sample 0.1.0

A tracing-subscriber layer that rate-limits log output using reservoir sampling
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tracing-log-sample"
version = "0.1.0"
authors = ["Conrad Ludgate <conradludgate@gmail.com>"]
build = false
exclude = ["examples/demo.avif"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A tracing-subscriber layer that rate-limits log output using reservoir sampling"
readme = "README.md"
keywords = [
    "tracing",
    "logging",
    "sampling",
    "rate-limit",
]
categories = ["development-tools::debugging"]
license = "Apache-2.0"
repository = "https://github.com/conradludgate/tracing-log-sample"

[lib]
name = "tracing_log_sample"
path = "src/lib.rs"

[[example]]
name = "spiky"
path = "examples/spiky.rs"

[[bench]]
name = "sampling"
path = "benches/sampling.rs"
harness = false

[dependencies.fastrand]
version = "2"

[dependencies.thread_local]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "registry",
    "fmt",
]

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.statrs]
version = "0.18"