setup_tracing

Function setup_tracing 

Source
pub fn setup_tracing(crate_name: &str) -> Result<Option<EyesShutdownHandle>>
Expand description

Sets up tracing with optional Eyes, Honeycomb, and stdout layers.

Returns an optional EyesShutdownHandle that should be used for graceful shutdown when Eyes is configured (via EYES_ORG_ID and EYES_APP_ID environment variables).

ยงEnvironment Variables

  • RUST_LOG: Log filter (defaults to info,{crate_name}=trace,tower_http=debug,serenity=error)
  • JSON_LOGS: If set, outputs JSON logs instead of hierarchical
  • HONEYCOMB_API_KEY: Enables Honeycomb tracing
  • EYES_ORG_ID: Eyes organization ID (UUID)
  • EYES_APP_ID: Eyes application ID (UUID)
  • EYES_URL: Eyes server URL (defaults to https://eyes.coreyja.com)