Available on crate feature
dial9 only.Expand description
dial9 runtime telemetry re-exports.
Modules§
- core
- Building blocks for extending dial9: implement a
Source, write custom encoders, author custom segment processors, reach the raw recording modules. - format
- The trace format: define events with
#[derive(TraceEvent)], encode your own types withTraceField, read a trace back withDecoder. - trace_
format - dial9-trace-format
Structs§
- Dial9
Handle - Cheap, cloneable handle for recording events and controlling telemetry.
- Dial9
Tokio Handle - Tokio handle for spawning instrumented tasks.
- Disk
- Disk-backed mode (default).
- Install
Global Handle Error Recorder::install_global_handledid not install: a process-globalDial9Handlewas already installed.- Memory
- In-memory mode.
- Recorder
- Owns the recording state: the
Dial9Handle, the flush thread, and (with thepipelinefeature) the background worker. - Recorder
Builder - Builder for a runtime-agnostic
Recorder. Seerecorder. - Task
Dump Config - Configuration for task dump capture.
- Tokio
Attach Options - Per-runtime attach settings. All optional; runtime-scoped only (session-wide settings like the pipeline, S3, and segment metadata stay on the recorder).
- Tokio
Hooks - User-provided callbacks to run alongside dial9’s internal Tokio runtime hooks.
- Traced
Future - Future wrapper produced by
spawn_withfor custom spawn APIs.
Traits§
- Dial9
Handle Tokio Ext - Tokio instrumentation for
Dial9Handle. - Join
SetExt - Dial9 instrumentation for [
JoinSet]. - Recorder
Pipeline Ext - dial9 pipeline presets on the recorder builder.
- Recorder
Source Ext - A builder that can register
Sources.
Functions§
- block_
on - Run
futureto completion onruntime, instrumented. - record_
event - Record an event on the handle
Dial9Handle::currentresolves. - recorder
- Begin building a recorder backed by
writer. - recorder_
disabled - A recorder with recording permanently disabled: no flush thread, no sources,
and
handlereturns a disabled handle. - recorder_
from_ env - Build a recorder and its instrumented Tokio runtime from standard
DIAL9_*environment variables. - recorder_
from_ env_ with recorder_from_env, plus control over the Tokio runtime it builds.- recorder_
or_ disabled - Begin building a recorder backed by
writer, or a writer-free disabled one when the writer could not be created. - spawn
- Spawn a traced task on the current tokio runtime.
- spawn_
in - Spawn a traced task onto a specific runtime, from any thread.
Type Aliases§
- Attached
Runtime - The recorder and runtime pair a
#[dial9::main]config returns. - Disk
Buffer - Alias for the disk-backed writer (the default mode).
- Memory
Buffer - Alias for the in-memory writer.
Attribute Macros§
- main
- Instrument an async main function with dial9 telemetry.