Versions in this module Expand all Collapse all v0 v0.3.2 Mar 6, 2026 v0.3.1 Mar 4, 2026 v0.3.0 Mar 4, 2026 v0.2.0 Feb 11, 2026 v0.1.0 Feb 8, 2026 Changes in this version + func DecodeEvent(e Event) string + func GetTraceEnv() map[string]string + func NewRecordingReader(r io.Reader, recorder *Recorder, eventType EventType) io.Reader + func NewRecordingWriter(w io.Writer, recorder *Recorder, eventType EventType) io.Writer + type Config struct + CgroupPath string + PID int + type DarwinTracer struct — darwin/amd64 + func NewDarwinTracer(cfg Config) (*DarwinTracer, error) + func (t *DarwinTracer) Events() <-chan ExecEvent + func (t *DarwinTracer) OnExec(cb func(ExecEvent)) + func (t *DarwinTracer) Start() error + func (t *DarwinTracer) Stop() error + type DecodedEvent struct + Decoded string + type Event struct + Data []byte + Signal string + Size *Size + TimestampNano int64 + Type EventType + type EventType string + const EventResize + const EventSignal + const EventStderr + const EventStdin + const EventStdout + type ExecEvent struct + Args []string + Command string + Duration *time.Duration + ExitCode *int + PID int + PPID int + Timestamp time.Time + WorkingDir string + func (e ExecEvent) IsBuildCommand() bool + func (e ExecEvent) IsGitCommit() bool + type Metadata struct + Command []string + Environment map[string]string + InitialSize Size + RunID string + Timestamp time.Time + type ProcConnectorTracer struct — linux/amd64 + func NewProcConnectorTracer(cfg Config) (*ProcConnectorTracer, error) + func (t *ProcConnectorTracer) Events() <-chan ExecEvent + func (t *ProcConnectorTracer) OnExec(cb func(ExecEvent)) + func (t *ProcConnectorTracer) Start() error + func (t *ProcConnectorTracer) Stop() error + type Recorder struct + func NewRecorder(runID string, command []string, env map[string]string, initialSize Size) *Recorder + func (r *Recorder) AddEvent(eventType EventType, data []byte) + func (r *Recorder) AddResize(width, height int) + func (r *Recorder) AddSignal(sig string) + func (r *Recorder) Save(path string) error + type RecordingReader struct + func (rr *RecordingReader) Read(p []byte) (n int, err error) + type RecordingWriter struct + func (rw *RecordingWriter) Write(p []byte) (n int, err error) + type Size struct + Height int + Width int + type StubTracer struct + func NewStubTracer(cfg Config) *StubTracer + func (t *StubTracer) Emit(event ExecEvent) + func (t *StubTracer) Events() <-chan ExecEvent + func (t *StubTracer) OnExec(cb func(ExecEvent)) + func (t *StubTracer) Start() error + func (t *StubTracer) Stop() error + type Trace struct + Events []Event + Metadata Metadata + func Load(path string) (*Trace, error) + func (t *Trace) Decode() []DecodedEvent + func (t *Trace) FindClearScreen() []int + func (t *Trace) FindResizeIssues(windowNanos int64) []string + func (t *Trace) Save(path string) error + type Tracer interface + Events func() <-chan ExecEvent + OnExec func(func(ExecEvent)) + Start func() error + Stop func() error + func New(cfg Config) (Tracer, error)