github.com/l1fe-labs/forge-go/telemetry
Go telemetry package.
Go telemetry package.
Package contract
| Field | Value |
|---|---|
| Language | go |
| Source version | module source snapshot |
| Manifest | forge-go/go.mod |
| Source files | 4 |
| Evidence | Source reference; registry publication and runtime conformance are separate checks |
Import boundary
import "github.com/l1fe-labs/forge-go/telemetry"Use a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.
Source reference
Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.
audit.go
Read declaration text · 10 declaration entries
type AuditEntry struct
type AuditTrail struct
func NewAuditTrail(agentDID string) *AuditTrail
func (t *AuditTrail) Append(event AuditEvent)
func (t *AuditTrail) Entries() []AuditEntry
func (t *AuditTrail) Len() int
func (t *AuditTrail) IsEmpty() bool
func (t *AuditTrail) Last() *AuditEntry
func (t *AuditTrail) AgentDID() string
func (t *AuditTrail) FilterByKind(kind AuditEventKind) []AuditEntrycollector.go
Read declaration text · 24 declaration entries
type CompletedSpan struct
type SpanCollector interface
type NoopCollector struct
func (NoopCollector) RecordSpan(_ CompletedSpan)
func (NoopCollector) Spans() []CompletedSpan
func (NoopCollector) Clear()
func (NoopCollector) Len() int
func (NoopCollector) IsEmpty() bool
type InMemoryCollector struct
func NewInMemoryCollector() *InMemoryCollector
func (c *InMemoryCollector) RecordSpan(span CompletedSpan)
func (c *InMemoryCollector) Spans() []CompletedSpan
func (c *InMemoryCollector) Clear()
func (c *InMemoryCollector) Len() int
func (c *InMemoryCollector) IsEmpty() bool
type InMemoryTelemetry struct
func NewInMemoryTelemetry() *InMemoryTelemetry
func (t *InMemoryTelemetry) StartSpan(name string, agentDID string) SpanID
func (t *InMemoryTelemetry) EndSpan(spanID SpanID) error
func (t *InMemoryTelemetry) EmitEvent(event AuditEvent)
func (t *InMemoryTelemetry) Flush() error
func (t *InMemoryTelemetry) CompletedSpans() []CompletedSpan
func (t *InMemoryTelemetry) Events() []AuditEvent
func (t *InMemoryTelemetry) ActiveSpanCount() intcontract.go
Read declaration text · 11 declaration entries
type SpanID string
// NewSpanID generates a new random span identifier.
func NewSpanID() SpanID
func NewSpanID() SpanID
func (id SpanID) String() string
type AuditEventKind string
const (
// AuditLifecycleTransition records a lifecycle state change.
AuditLifecycleTransition AuditEventKind;
type AuditEvent struct
type TelemetryContract interface
type NoopTelemetry struct
func (NoopTelemetry) StartSpan(_ string, _ string) SpanID
func (NoopTelemetry) EndSpan(_ SpanID) error
func (NoopTelemetry) EmitEvent(_ AuditEvent)
func (NoopTelemetry) Flush() errorerrors.go
Read declaration text · 10 declaration entries
type TelemetryError struct
type TelemetryErrorKind string
const (
// ErrKindSpanNotFound indicates the span does not exist.
ErrKindSpanNotFound TelemetryErrorKind;
func (e *TelemetryError) Error() string
func (e *TelemetryError) Unwrap() error
func NewSpanNotFoundError(spanID string) *TelemetryError
func NewSpanAlreadyClosedError(spanID string) *TelemetryError
func NewAuditEntryInvalidError(reason string) *TelemetryError
func NewFlushFailedError(cause error) *TelemetryError
func NewCollectorFullError(capacity int) *TelemetryError
func NewExportFailedError(dest string, cause error) *TelemetryError