examine

Function examine 

Source
pub fn examine(span: Span) -> Span
Expand description

Examine a given span with settings from the base TeXRayLayer

Note: A TeXRayLayer must be installed as a subscriber.

ยงExamples

use tracing_texray::{Settings, TeXRayLayer};
use tracing_subscriber::Registry;
use tracing::info_span;
use tracing_subscriber::layer::SubscriberExt;
let layer = TeXRayLayer::new().enable_events();
let subscriber = Registry::default().with(layer);
tracing::subscriber::set_global_default(subscriber).unwrap();
tracing_texray::examine(info_span!("hello")).in_scope(|| {
  println!("I'm in this span!");
});