Help us shape the future of Go! Take the 2026 Go Developer Survey

observability

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invocation

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

Invocation records one externally observable model or tool call. It is safe to finish from a deferred cleanup path and guarantees exactly one end event.

func Begin

func Begin(ctx context.Context, kind, name, id string, fields ...any) *Invocation

Begin writes the start event. A caller-provided ID is useful for preserving a model tool_call_id; an empty ID receives a process-unique value.

func (*Invocation) End

func (i *Invocation) End(err error, fields ...any)

End writes exactly one completion or failure event for the invocation.

Jump to

Keyboard shortcuts

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