Skip to main content

Crate miden_node_tracing

Crate miden_node_tracing 

Source
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
Span and Event key-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 instrument span.
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.
OtelGuard
A guard that shuts down the tracer provider when dropped. This ensures that the logs are flushed to the exporter before the program exits.
ResourceConfig
Default OpenTelemetry resource attributes for this process.
Span
A handle representing a span, with the capability to enter the span if it exists.
TargetMap
Maps Rust module subtrees to diagnostic tracing targets.
TracingConfig
Tracing subscriber configuration.

Enums§

OpenTelemetry
Configures setup_tracing to enable or disable the open-telemetry exporter.

Traits§

ErrorReport
Extends errors with a stable string representation of their source chain.
ErrorSpanExt
Extension helper for marking the current OpenTelemetry span as failed.
Instrument
Attaches spans to a std::future::Future.
RecordAttribute
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.