Crate emit_macros

Crate emit_macros 

Source
Expand description

Implementation details for emit! macros.

This crate is not intended to be consumed directly.

Macros§

count_metric
Construct a metric sample with count as its aggregation.
count_sample
Emit a metric sample with count as its aggregation.
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.
last_metric
Construct a metric sample with last as its aggregation.
last_sample
Emit a metric sample with last as its aggregation.
max_metric
Construct a metric sample with max as its aggregation.
max_sample
Emit a metric sample with max as its aggregation.
metric
Construct a metric sample.
min_metric
Construct a metric sample with min as its aggregation.
min_sample
Emit a metric sample with min as its aggregation.
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.
sample
Emit a metric sample.
sum_metric
Construct a metric sample with sum as its aggregation.
sum_sample
Emit a metric sample with sum as its aggregation.
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.