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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Dispatches trace events toSubscriber
s. - event
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on.Span
andEvent
key-value data. - instrument
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Attach a span to astd::future::Future
. - level_
filters - Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Trace verbosity level filtering. - metadata
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Metadata describing trace data. - span
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Constructs a span at the debug level. - enabled
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Constructs a span at the error level. - event
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Constructs a newEvent
. - event_
enabled - Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Constructs a span at the info level. - metadata
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Statically constructs new span metadata. - span
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Constructs a new span. - span_
enabled - Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Constructs a span at the trace level. - warn
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on.Dispatch
trace data to aSubscriber
. - Event
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on.Event
s 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 likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Metadata describing a span or event. - Span
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Trait implemented by callsites. - Instrument
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,debug!
,trace!
and so on. Attaches spans to astd::future::Future
. - Subscriber
- Re-export the
tracing
crate to have access to tracing macros likeinfo!
,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 likeinfo!
,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 likeinfo!
,debug!
,trace!
and so on. Instruments a function to create and enter atracing
span every time the function is called.