tracing-samply 0.1.0

Tracing subscriber layer for samply
docs.rs failed to build tracing-samply-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: tracing-samply-0.1.5

tracing-samply

A tracing-subscriber layer that bridges tracing with samply.

Currently, this only records spans as markers using samply's ad-hoc marker file format, which are then detected at runtime by samply and written to the profile.

Markers for a thread are only detected if samply is attached when the thread is created.

This crate will adapt to any changes upstream. The creator has expressed that the marker file is a temporary measure and that it will be replaced with a more robust solution in the future: https://github.com/mstange/samply/pull/143#issuecomment-2067747892

See also: mstange/samply#349

Usage

use tracing_subscriber::prelude::*;

fn main() {
    tracing_subscriber::registry()
        // ... other layers
        .with(tracing_samply::SamplyLayer::new())
        .init();
    
    // Your application code that uses `tracing`
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.