Expand description
Macros for structured logging and telemetry.
This module provides convenient macros for creating spans, adding events, and logging messages with various severity levels. The macros provide a more ergonomic interface compared to the lower-level functions and handle attribute creation automatically.
§Span Creation
span!: Creates a new span with optional attributesevent!: Adds an event to the current span
§Logging Macros
log!: Generic logging macro that accepts a severity leveltrace!: Logs trace-level messages (most verbose)debug!: Logs debug-level messagesinfo!: Logs informational messageswarn!: Logs warning messageserror!: Logs error messagesfatal!: Logs fatal error messages
§Attribute Handling
attributes!: Creates a slice of key-value attributesattribute!: Creates a single key-value attribute
All macros support flexible attribute syntax for adding contextual information.