Crate emit_macros

Source
Expand description

Implementation details for emit! macros.

This crate is not intended to be consumed directly.

Macros§

dbg
Emit a temporary event as a quick-and-dirty debugging aid.
debug
Emit an event at the debug level.
debug_evt
Construct an event at the debug level that can be emitted manually.
emit
Emit an event.
error
Emit an event at the error level.
error_evt
Construct an event at the error level that can be emitted manually.
evt
Construct an event that can be emitted manually.
format
Format a template.
info
Emit an event at the info level.
info_evt
Construct an event at the info level that can be emitted manually.
new_debug_span
Create a span at the debug level that can be started and completed manually.
new_error_span
Create a span at the error level that can be started and completed manually.
new_info_span
Create a span at the info level that can be started and completed manually.
new_span
Create a span that can be started and completed manually.
new_warn_span
Create a span at the warn level that can be started and completed manually.
path
Construct a path.
props
Construct a set of properties.
tpl
Construct a template.
warn
Emit an event at the warn level.
warn_evt
Construct an event at the warn level that can be emitted manually.

Attribute Macros§

as_debug
Capture a property using its Debug implementation.
as_display
Capture a property using its Display implementation.
as_error
Capture a property using its Error implementation.
as_serde
Capture a property using its serde::Serialize implementation.
as_sval
Capture a property using its sval::Value implementation.
as_value
Capture a property using its ToValue implementation.
debug_span
Trace the execution of a function at the debug level.
error_span
Trace the execution of a function at the error level.
fmt
Specify Rust format flags to use when rendering a property in a template.
info_span
Trace the execution of a function at the info level.
key
Specify the key for a property.
optional
Specify that a property value of None should not be captured, instead of being captured as null.
span
Trace the execution of a function.
warn_span
Trace the execution of a function at the warn level.