telemetry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FeatureAgent                     = 0
	FeatureHarnessAgent              = 1
	FeatureWorkflow                  = 2
	FeatureToolApproval              = 3
	FeatureChatHistoryMemoryProvider = 4
	FeatureFileMemoryProvider        = 5
	FeatureTextSearchProvider        = 6
	FeatureInMemoryHistoryProvider   = 13
	FeatureCompactionProvider        = 9
	FeatureSkillsProvider            = 8
	FeatureFileSkillsSource          = 15
	FeatureInMemorySkillsSource      = 16
	FeatureMCP                       = 14
	FeatureTodoProvider              = 10
	FeatureAgentModeProvider         = 11
	FeatureSequentialOrchestration   = 32
	FeatureConcurrentOrchestration   = 33
	FeatureGroupChatOrchestration    = 34
	FeatureFoundryChatClient         = 48
	FeatureFoundryAgent              = 49
	FeatureFoundryMemory             = 50
	FeatureOpenAI                    = 54
	FeatureAnthropic                 = 55
	FeatureGitHubCopilot             = 57
	FeatureAzureCosmos               = 58
	FeatureA2A                       = 62
	FeatureHostingAGUI               = 63
	FeatureShell                     = 69
	FeatureHostingA2A                = 73
)

Feature indexes match the .NET version-1 registry. Only supported capabilities registered there are tracked; indexes must not be repurposed for Go-only features.

Variables

This section is empty.

Functions

func ApplyToFoundryHTTPRequest added in v0.1.1

func ApplyToFoundryHTTPRequest(req *http.Request)

ApplyToFoundryHTTPRequest adds the framework identity and refreshes the feature comment for approved Foundry origins. The transport must enforce redirect origins.

func ApplyToHTTPRequest added in v0.1.1

func ApplyToHTTPRequest(req *http.Request)

ApplyToHTTPRequest adds the framework identity and refreshes the feature comment for approved Azure origins. Only origin-guarded OpenAI/Foundry clients may use this helper; their transports must also enforce the origin on redirects.

func ApplyToUserAgent added in v0.1.1

func ApplyToUserAgent(userAgent string, includeFeatureToken bool) string

ApplyToUserAgent refreshes the feature comment while preserving unrelated bytes. Valid existing comments are removed when the mask is empty, disabled, or excluded. Callers must approve the destination independently before including the token.

func ErrorTypeName added in v0.3.0

func ErrorTypeName(err error) string

ErrorTypeName returns the unqualified concrete type name of err for the error.type telemetry attribute.

func MarkUsed added in v0.1.1

func MarkUsed(index int)

MarkUsed records a feature for the lifetime of the process. It is concurrency-safe and idempotent. It panics for indexes outside 0 through 127, unless tracking is disabled by AGENT_FRAMEWORK_FEATURE_MASK_DISABLED=true or 1.

func PrependAgentFrameworkToHTTPHeader

func PrependAgentFrameworkToHTTPHeader(headers http.Header) http.Header

PrependAgentFrameworkToHTTPHeader prepends the Agent Framework user-agent value to an http.Header.

func PrependAgentFrameworkToUserAgent

func PrependAgentFrameworkToUserAgent(headers map[string]string) map[string]string

PrependAgentFrameworkToUserAgent prepends the Agent Framework user-agent value to headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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