Re-exports§
pub use errors::into_fatal;pub use errors::into_recoverable;pub use errors::TelemetryError;pub use errors::WatcherError;pub use telemetry_formatter::TelemetryFormatter;pub use telemetry_layer::TelemetryLayer;pub use tracing as __reexport_tracing;pub use tracing_subscriber as __reexport_tracing_subscriber;
Modules§
- errors
- event
- Events represent single points in time during the execution of a program.
- file_
watcher - prelude
- process_
watcher - span
- Spans represent periods of time in which a program was executing in a particular context.
- systeminfo_
watcher - telemetry_
formatter - telemetry_
layer
Macros§
- debug
- Constructs an event at the debug level.
- debug_
telemetry - Generate a
DEBUGtelemetryEvent - error
- Constructs an event at the error level.
- error_
telemetry - Generate an
ERRORtelemetryEvent - event
- Constructs a new
Event. - info
- Constructs an event at the info level.
- info_
telemetry - Generate an
INFOtelemetryEvent - new
- Create a new
TelemetryLayer. - new_
with_ watchers - A convenience macro to do
new!()followed by creating and starting aFileWatcherandSystemInfoWatcherwithin a single step. - new_
with_ watchers_ and_ init - A convenience macro to do
new_with_watchers!()followed by setting theTracingLayeras the global defaultSubscriber. - span
- Constructs a new span.
- span_
telemetry - Enter a temporary
Span, then generates anEventwith telemetry enabled - trace
- Constructs an event at the trace level.
- trace_
telemetry - Generate a
TRACEtelemetryEvent - warn
- Constructs an event at the warn level.
- warn_
telemetry - Generate a
WARNtelemetryEvent
Structs§
- EnvSetting
- A helper struct to get environment variables with a default value
- Level
- Describes the level of verbosity of a span or event.
- Telemetry
Config - Telemetry’s global configuration
- Worker
Guard - A guard that flushes spans/events associated to a
NonBlockingon a drop - __
reexport_ EnvFilter - A
Layerwhich filters spans and events based on a set of filter directives.
Traits§
- __
reexport_ Layer - A composable handler for
tracingevents. - __
reexport_ Subscriber Init Ext - Extension trait adding utility methods for subscriber initialization.
- __
reexport_ tracing_ subscriber_ Subscriber Ext - Extension trait adding a
with(Layer)combinator toSubscribers.
Functions§
- get_
process_ name - Helper function to get the current process’ binary filename
- telemetry_
config - Get the global telemetry configuration