trace

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package trace provides execution tracing and audit logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector records traces and audit events.

func NewCollector

func NewCollector(store storage.Storage) *Collector

func (*Collector) Audit

func (c *Collector) Audit(ctx context.Context, sessionID, actor, action, resource string) error

Audit records a security audit event.

func (*Collector) EndSpan

func (c *Collector) EndSpan(ctx context.Context, t *storage.Trace, output any, errMsg string) error

EndSpan completes a trace span.

func (*Collector) StartSpan

func (c *Collector) StartSpan(ctx context.Context, sessionID, name, kind string) (*storage.Trace, error)

StartSpan begins a new trace span.

Jump to

Keyboard shortcuts

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