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

telemetry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 13 Imported by: 0

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
	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 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