Versions in this module Expand all Collapse all v0 v0.2.19 Jul 5, 2026 v0.2.17 Jun 27, 2026 v0.2.16 Jun 27, 2026 v0.2.15 Jun 26, 2026 v0.2.14 Jun 23, 2026 v0.2.13 Jun 22, 2026 v0.2.12 Jun 22, 2026 v0.2.11 Jun 21, 2026 v0.2.10 Jun 20, 2026 v0.2.9 Jun 20, 2026 v0.2.8 Jun 9, 2026 v0.2.7 Jun 8, 2026 v0.2.6 Jun 8, 2026 Changes in this version type RequestDetail + Error string type Summary + Error string v0.2.5 Jun 3, 2026 Changes in this version + func EmitUsage(t RequestTracer, fuel int64, bytesOut int, tenant string) type ListQuery + Tenant string v0.2.4 Jun 3, 2026 Changes in this version type RequestDetail + BytesOut int64 + Fuel int64 v0.2.3 May 29, 2026 v0.2.1 May 29, 2026 v0.2.0 May 29, 2026 Changes in this version + var ErrNotFound = errors.New("trace: request not found") + func ApplyHints(b []byte, h Hints) []byte + func Register(name string, c Constructor) + func RegisterArmable(name string, c ArmableConstructor) + func RegisterReader(name string, c ReaderConstructor) + func WithContext(parent context.Context, t RequestTracer) context.Context + type Armable interface + Close func(ctx context.Context) error + Subscribe func(ctx context.Context, sinceCursor string, buf int) (Subscription, error) + func OpenArmable(name string, cfg StoreConfig) (Armable, error) + type ArmableConstructor func(StoreConfig) (Armable, error) + type AsyncOpts struct + BodyCapBytes int + BufferSize int + DropCounter *atomic.Int64 + StaleAfter time.Duration + type AsyncSink struct + func NewAsyncSink(base Sink, opts AsyncOpts) *AsyncSink + func (s *AsyncSink) Begin(info RequestInfo) RequestTracer + func (s *AsyncSink) Close(ctx context.Context) error + func (s *AsyncSink) DroppedCount() int64 + type ClosedTrace struct + Cursor string + type Constructor func(StoreConfig) (Sink, error) + type FileSink struct + Dir string + Mode Mode + func NewFileSink(dir string, mode Mode) (*FileSink, error) + func (s *FileSink) Begin(info RequestInfo) RequestTracer + func (s *FileSink) Close(context.Context) error + type HintLookup func(tenant, stack string) Hints + type Hints struct + Omit []string + Redact []string + func (h Hints) Empty() bool + type ListQuery struct + Grep string + IfNoneMatch string + Limit int + type ListResult struct + ETag string + NotModified bool + Total int + Traces []Summary + type Mode string + const ModeFull + const ModeOff + const ModeSummary + func ParseMode(s string) Mode + type NoopSink struct + func (NoopSink) Begin(RequestInfo) RequestTracer + func (NoopSink) Close(context.Context) error + type NoopTracer struct + func (NoopTracer) End(status string, final []byte) + func (NoopTracer) Event(TimelineEvent) + func (NoopTracer) Step(StepInfo) + type Reader interface + Get func(ctx context.Context, rid string, full bool) (RequestDetail, error) + IndexNames func(ctx context.Context, max int) (names []string, total int, err error) + List func(ctx context.Context, q ListQuery) (ListResult, error) + RawFS func() (http.FileSystem, bool) + func OpenReader(name string, cfg StoreConfig) (Reader, error) + type ReaderConstructor func(StoreConfig) (Reader, error) + type RedactingSink struct + func (s *RedactingSink) Begin(info RequestInfo) RequestTracer + func (s *RedactingSink) Close(ctx context.Context) error + type RequestDetail struct + DurationMs *int64 + FinishedAt string + In map[string]any + Out any + PayloadBytes int64 + PayloadTruncated bool + RID string + Route string + Src string + Stack string + StartedAt string + Status string + Steps []Step + Tenant string + type RequestInfo struct + Payload []byte + PayloadBytes int + RID string + Src string + Stack string + StartedAt time.Time + Tenant string + type RequestTracer interface + End func(status string, finalPayload []byte) + Event func(ev TimelineEvent) + Step func(info StepInfo) + func FromContext(ctx context.Context) RequestTracer + type Sink interface + Begin func(info RequestInfo) RequestTracer + Close func(ctx context.Context) error + func NewRedactingSink(inner Sink, lookup HintLookup) Sink + func Open(name string, cfg StoreConfig) (Sink, error) + type Step struct + DurationMs int64 + Error string + FinishedAt string + In any + InputBytes int64 + InputTruncated bool + Name string + Operation string + Out any + OutputBytes int64 + OutputTruncated bool + Scope int + Stack string + StartedAt string + Status string + Transport string + type StepInfo struct + Error string + FinishedAt time.Time + Input []byte + InputBytes int + Name string + Operation string + Output []byte + OutputBytes int + Scope int + Stack string + StartedAt time.Time + Status string + Transport string + Txcl string + type StoreConfig struct + Dir string + Mode Mode + type Subscription interface + Close func() + Events func() <-chan ClosedTrace + type Summary struct + DurationMs *int64 + FinishedAt string + RID string + Route string + Src string + Stack string + StartedAt string + Status string + Tenant string + type TimelineEvent struct + Event string + Fields map[string]any + Ts time.Time