h2 icon indicating copy to clipboard operation
h2 copied to clipboard

chore: make tracing optional

Open tottoto opened this issue 1 year ago • 4 comments

Resolves #713.

tottoto avatar May 08 '24 11:05 tottoto

is there any chance of approving this?

gituser-rs avatar Sep 30 '24 17:09 gituser-rs

It will be, it's just a breaking change.

seanmonstar avatar Sep 30 '24 18:09 seanmonstar

Waiting for this PR to be merged.

If anyone is annoyed by h2 (or any other crate) emitting tracing logs but actually useless to them, a temporary workaround is to set the tracing feature "max_level_off," which would prevent the generation of the event log code, potentially improving runtime performance and reducing the binary size.

[dependencies]
# your dependencies here

tracing = { version = "*", default-features = false, features = ["max_level_off", "release_max_level_off"] }

incisakura avatar Mar 08 '25 13:03 incisakura