streamdebug

package
v0.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether verbose local turn diagnostics are enabled.

func LogCall

func LogCall(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, stream bool, bodyBytes int, selector string)

LogCall records a compact canonical request shape without logging prompt text.

func LogDecodeFailure

func LogDecodeFailure(ctx context.Context, log *slog.Logger, frontend string, body []byte, err error)

LogDecodeFailure records why a frontend rejected a request before canonical call creation.

func LogExecuteOpened

func LogExecuteOpened(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, start time.Time)

LogExecuteOpened records time spent before the executor returns an event stream.

func Wrap

func Wrap(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, es lipapi.EventStream, start time.Time) lipapi.EventStream

Wrap logs stream progress and terminal state while preserving EventStream semantics. Diag correlation fields (trace ID, A-leg ID) are captured from ctx now — not stored as a context — so Close can log with the same correlation after the request ctx is gone (AGENTS.md: do not store contexts in structs).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL