Expand description
Miden node tracing conventions and OpenTelemetry integration.
Re-exports§
pub use attribute::RecordAttribute;
Modules§
- admin
- HTTP endpoints for controlling process tracing on a private administration listener.
- field
SpanandEventkey-value data.- grpc
- panic
- spawn
Macros§
- debug
- Emits a debug-level event.
- debug_
span - Creates a debug-level span using the lexically visible
tracing_target!target. - declare_
targets - Declares a crate’s default tracing target and module-specific overrides.
- enabled
- Checks subscriber interest at a level using the lexically visible
tracing_target!target. - error
- Emits an error-level event with a typed error.
- error_
span - Creates an error-level span using the lexically visible
tracing_target!target. - info
- Emits an info-level event.
- info_
span - Creates an info-level span using the lexically visible
tracing_target!target. - miden_
span_ record - Records canonical attributes on the current
instrumentspan. - trace
- Emits a trace-level event.
- trace_
span - Creates a trace-level span using the lexically visible
tracing_target!target. - warn
- Emits a warning-level event.
- warn_
span - Creates a warn-level span using the lexically visible
tracing_target!target.
Structs§
- Level
- Describes the level of verbosity of a span or event.
- Otel
Guard - A guard that shuts down the tracer provider when dropped. This ensures that the logs are flushed to the exporter before the program exits.
- Resource
Config - Default OpenTelemetry resource attributes for this process.
- Span
- A handle representing a span, with the capability to enter the span if it exists.
- Target
Map - Maps Rust module subtrees to diagnostic tracing targets.
- Tracing
Config - Tracing subscriber configuration.
Enums§
- Open
Telemetry - Configures
setup_tracingto enable or disable the open-telemetry exporter.
Traits§
- Error
Report - Extends errors with a stable string representation of their source chain.
- Error
Span Ext - Extension helper for marking the current OpenTelemetry span as failed.
- Instrument
- Attaches spans to a
std::future::Future. - Record
Attribute - Converts a value into its canonical tracing attribute representation.
- Value
- A field value of an erased type.
Functions§
- declared_
targets - Returns the sorted, unique default and override targets declared by linked crates.
- setup_
tracing - Initializes tracing to stdout and optionally an open-telemetry exporter.
- setup_
tracing_ with_ config - Initializes tracing from explicit stdout and OpenTelemetry filter configuration.
Attribute Macros§
- instrument
- Instruments a function using canonical tracing attributes and a scoped target.