Module tracing

Source
Available on crate feature tracing only.
Expand description

This module provides primitives to work with tracing and tracing-subscriber in Lambda functions.

The tracing and tracing-subscriber crates are re-exported so you don’t have to include them as direct dependencies in your projects.

Re-exports§

pub use tracing_subscriber as subscriber;

Modules§

callsite
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Callsites represent the source locations from which spans or events originate.
dispatcher
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Dispatches trace events to Subscribers.
event
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Events represent single points in time during the execution of a program.
field
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Span and Event key-value data.
instrument
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Attach a span to a std::future::Future.
level_filters
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Trace verbosity level filtering.
metadata
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Metadata describing trace data.
span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Spans represent periods of time in which a program was executing in a particular context.

Macros§

debug
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs an event at the debug level.
debug_span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a span at the debug level.
enabled
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Checks whether a span or event is enabled based on the provided metadata.
error
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs an event at the error level.
error_span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a span at the error level.
event
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a new Event.
event_enabled
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Tests whether an event with the specified level and target would be enabled.
info
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs an event at the info level.
info_span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a span at the info level.
metadata
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Statically constructs new span metadata.
span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a new span.
span_enabled
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Tests whether a span with the specified level and target would be enabled.
trace
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs an event at the trace level.
trace_span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a span at the trace level.
warn
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs an event at the warn level.
warn_span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Constructs a span at the warn level.

Structs§

Dispatch
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Dispatch trace data to a Subscriber.
Event
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Events represent single points in time where something occurred during the execution of a program.
Id
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Identifies a span within the context of a subscriber.
Level
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Describes the level of verbosity of a span or event.
Metadata
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Metadata describing a span or event.
Span
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. A handle representing a span, with the capability to enter the span if it exists.

Traits§

Callsite
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Trait implemented by callsites.
Instrument
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Attaches spans to a std::future::Future.
Subscriber
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Trait representing the functions required to collect trace data.
Value
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. A field value of an erased type.

Functions§

init_default_subscriber
Initialize tracing-subscriber with default logging options.
init_default_subscriber_with_writer
Initialize tracing-subscriber with default logging options, and a custom writer.

Attribute Macros§

instrument
Re-export the tracing crate to have access to tracing macros like info!, debug!, trace! and so on. Instruments a function to create and enter a tracing span every time the function is called.