Crate forc_tracing

Crate forc_tracing 

Source
Expand description

Utility items shared between forc crates.

Re-exports§

pub use tracing_subscriber;

Modules§

registry
Storage for span data shared by multiple Layers.

Structs§

EnvFilter
A Layer which filters spans and events based on a set of filter directives.
FmtSpan
Configures what points in the span lifecycle are logged as events.
HideTelemetryFilter
Filter to hide telemetry spans from regular application logs
LevelFilter
A filter comparable to a verbosity Level.
TracingSubscriberOptions

Enums§

TracingWriter

Traits§

FilterExt
Extension trait adding combinators for combining Filter.
Layer
A composable handler for tracing events.
LayerTrait
A composable handler for tracing events.
MakeWriter
A type that can create io::Write instances.
SubscriberExt
Extension trait adding a with(Layer) combinator to Subscribers.
SubscriberInitExt
Extension trait adding utility methods for subscriber initialization.

Functions§

filter_fn
Constructs a FilterFn, from a function or closure that returns true if a span or event should be enabled, based on its Metadata.
init_tracing_subscriber
A subscriber built using tracing_subscriber::registry with optional telemetry layer.
is_telemetry_disabled
Check if telemetry is disabled
println_action_green
Prints an action message with a green-bold prefix like “ Compiling “.
println_action_red
Prints an action message with a red-bold prefix like “ Removing “.
println_action_yellow
Prints an action message with a yellow-bold prefix like “ Finished “.
println_error
Prints a warning message to stderr with the red prefix “error: “.
println_green
println_green_bold
println_label_green
Prints a label with a green-bold label prefix like “Compiling “.
println_label_red
Prints a label with a red-bold label prefix like “error: “.
println_red
println_red_err
println_warning
Prints a warning message to stdout with the yellow prefix “warning: “.
println_warning_verbose
Prints a warning message to stdout with the yellow prefix “warning: “ only in verbose mode.
println_yellow
println_yellow_bold
println_yellow_err
registry
Returns a default Registry.