Documentation
¶
Index ¶
- func Enabled() bool
- func LogCall(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, ...)
- func LogDecodeFailure(ctx context.Context, log *slog.Logger, frontend string, body []byte, err error)
- func LogExecuteOpened(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, ...)
- func Wrap(ctx context.Context, log *slog.Logger, frontend string, call *lipapi.Call, ...) lipapi.EventStream
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.
Click to show internal directories.
Click to hide internal directories.