6b6a34065e
This introduces another feature flag, "tracy" to the `tvix-tracing` crate. If enabled (not enabled by default), it'll add an additional layer emitting packets in a format that https://github.com/wolfpld/tracy can display. I had to be a bit tricky with the combinatorial complexity when adding this, but the resulting code still seems manageable. Change-Id: Ica824496728fa276ceae3f7a9754be0166e6558f Reviewed-on: https://cl.tvl.fyi/c/depot/+/10952 Tested-by: BuildkiteCI Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de> Reviewed-by: flokli <flokli@flokli.de>
34 lines
954 B
TOML
34 lines
954 B
TOML
[package]
|
|
name = "tvix-tracing"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
lazy_static = "1.4.0"
|
|
tracing = { version = "0.1.40", features = ["max_level_trace", "release_max_level_debug"] }
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
|
indicatif = "0.17.8"
|
|
tracing-indicatif = "0.3.6"
|
|
tokio = { version = "1.32.0" , features = ["sync", "rt"] }
|
|
thiserror = "1.0.38"
|
|
|
|
tracing-opentelemetry = { version = "0.23.0", optional = true }
|
|
opentelemetry = { version = "0.22.0", optional = true }
|
|
opentelemetry-otlp = { version = "0.15.0", optional = true }
|
|
opentelemetry_sdk = { version = "0.22.1", features = ["rt-tokio"], optional = true }
|
|
tracing-tracy = { version = "0.11.0", features = ["flush-on-exit"], optional = true }
|
|
|
|
[features]
|
|
default = []
|
|
otlp = [
|
|
"dep:tracing-opentelemetry",
|
|
"dep:opentelemetry",
|
|
"dep:opentelemetry-otlp",
|
|
"dep:opentelemetry_sdk"
|
|
]
|
|
tracy = [
|
|
"dep:tracing-tracy"
|
|
]
|
|
|
|
[lints]
|
|
workspace = true
|