Skip to main content

Crate trace_weft

Crate trace_weft 

Source

Re-exports§

pub use builder::SpanBuilder;
pub use builder::agent as build_agent;
pub use builder::llm_call as build_llm_call;
pub use builder::tool as build_tool;
pub use capture::CaptureConfig;
pub use capture::capture_enabled;
pub use capture::capture_json;
pub use capture::capture_policy;
pub use capture::init_capture;
pub use capture::redact_text;
pub use context::SpanContext;
pub use context::current_span_context;
pub use context::scope_current;
pub use events::EventBuilder;
pub use events::event;
pub use hitl::HitlResponse;
pub use hitl::get_pending_approvals;
pub use hitl::register_approval;
pub use hitl::resolve_approval;
pub use replay::ReplayConfig;
pub use replay::init_replay;
pub use serde_json;
pub use uuid;

Modules§

builder
capture
Content capture.
context
Ambient span context.
eval
events
Intra-span event recording.
hitl
redactor
replay
semconv
Shared OpenTelemetry GenAI semantic-convention attribute keys.

Structs§

BlobHash
BlobRef
CheckpointRecord
CostEstimate
EventId
EventRecord
A point-in-time event recorded within a span. Events carry their parent span and an ordering seq so an event stream (retries, budget checks, guardrail trips, REPL steps) survives without collapsing into many tiny spans.
LocalConfig
NullStore
A TraceStore that discards every span and event. Lets integrators compile tracing in but disable it at runtime (init_custom(Arc::new(NullStore))) without their own cfg shims.
RedactionResult
RunId
SessionId
SpanId
SpanRecord
TokenUsage
TraceId
TraceRecord

Enums§

CapturePolicy
EventKind
Kind of an intra-span event — a point-in-time occurrence within a span’s lifetime (a retry, a budget check, a guardrail trip, an REPL step), as opposed to a span, which has a duration.
RedactionStatus
ReplayMode
SideEffectPolicy
SpanStatus
TraceWeftSpanKind

Traits§

BlobStore
Redactor
TraceStore

Functions§

init_custom
init_local
record_event
record_span

Type Aliases§

LocalRecorder

Attribute Macros§

agent
llm_call
tool