telemetry

package
v0.0.257 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpanA2ATaskReceived       = "a2a.task.received"
	SpanClaudeSubprocessStart = "claude.subprocess.start"
	SpanClaudeTurnComplete    = "claude.turn.complete"
	SpanMCPToolCall           = "mcp.tool.call"
	SpanClaudeSubprocessExit  = "claude.subprocess.exit"
)

Span names used across the Klaus packages. Centralised here so a2a, claude, and mcp packages all reference the same strings.

Variables

View Source
var (
	AttrContextID     = attribute.Key("a2a.context_id")
	AttrSessionID     = attribute.Key("claude.session_id")
	AttrMessageLength = attribute.Key("a2a.message_length")
	AttrModel         = attribute.Key("claude.model")
	AttrResume        = attribute.Key("claude.resume")
	AttrTurnIndex     = attribute.Key("claude.turn_index")
	AttrStopReason    = attribute.Key("claude.stop_reason")
	AttrInputTokens   = attribute.Key("claude.input_tokens")
	AttrOutputTokens  = attribute.Key("claude.output_tokens")
	AttrToolName      = attribute.Key("mcp.tool_name")
	AttrServerName    = attribute.Key("mcp.server_name")
	AttrDurationMS    = attribute.Key("mcp.duration_ms")
	AttrExitCode      = attribute.Key("claude.exit_code")
	AttrRetryCount    = attribute.Key("claude.retry_count")
)

Attribute keys for span attributes. Using attribute.Key provides type-safe value constructors (e.g. AttrModel.String(v), AttrInputTokens.Int64(v)).

Functions

func Tracer

func Tracer(name string) trace.Tracer

Tracer returns a named tracer from the global provider.

Types

This section is empty.

Jump to

Keyboard shortcuts

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