Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 Changes in this version + var ErrAlreadyActive = fmt.Errorf("tracebridge: capture already active") + var ErrNotActive = fmt.Errorf("tracebridge: no active capture") + type CaptureConfig struct + RepoPath string + SessionID string + Tags map[string]string + type CaptureResult struct + Duration time.Duration + SessionID string + SpanCount int + Tags map[string]string + TranscriptPath string + type SessionCapture struct + func NewSessionCapture(config CaptureConfig, manager TraceSessionManager) *SessionCapture + func (sc *SessionCapture) AddTag(key, value string) + func (sc *SessionCapture) GetTranscriptPath() string + func (sc *SessionCapture) IsActive() bool + func (sc *SessionCapture) StartCapture(ctx context.Context) error + func (sc *SessionCapture) StopCapture(ctx context.Context) (*CaptureResult, error) + type SubprocessBridgeAdapter struct + func NewSubprocessBridgeAdapter(repoPath string) *SubprocessBridgeAdapter + func NewSubprocessBridgeAdapterWithManager(repoPath string, manager TraceSessionManager) *SubprocessBridgeAdapter + func (a *SubprocessBridgeAdapter) Disable(ctx context.Context, _ string) error + func (a *SubprocessBridgeAdapter) Enable(ctx context.Context, _ string) error + func (a *SubprocessBridgeAdapter) GetCaptureResult() *CaptureResult + func (a *SubprocessBridgeAdapter) Ready() bool + func (a *SubprocessBridgeAdapter) Status(ctx context.Context, _ string) (map[string]any, error) + type TraceSession interface + Close func(ctx context.Context) error + EndedAt func() *time.Time + ID func() string + Metadata func() map[string]string + Phase func() string + SetMetadata func(key, value string) + SpanCount func() int + StartedAt func() time.Time + TranscriptPath func() string + type TraceSessionManager interface + Load func(ctx context.Context, sessionID string) (TraceSession, error) + Start func(ctx context.Context, repoPath string, sessionID string) (TraceSession, error)