You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example: tracing example using is_container_run() gate
A new examples/tracing crate showing the cookbook recipe end-to-end:
a tracing_subscriber installed in main() only when is_container_run()
returns true. Two containers (greet, shout) emit tracing::info! that
flow through the subscriber when dispatched in-pod.
Demonstrates both paths verbatim:
- cargo run -p cargo-athena-example-tracing
-> emits YAML, no tracing setup runs
- CARGO_ATHENA_TEMPLATE=...-greet cargo run -p ... -- '"athena"'
-> runs greet in-process; INFO greeting{name=athena} appears
Adds tracing 0.1 + tracing-subscriber 0.3 as direct deps on the
example crate only (not the workspace).
0 commit comments