Documentation
¶
Index ¶
- type Collector
- func (c *Collector) RecordAgentExecution(agentType, status string, duration time.Duration)
- func (c *Collector) RecordAgentInfo(agentID, agentType string)
- func (c *Collector) RecordAgentStateTransition(agentType, fromState, toState string)
- func (c *Collector) RecordCacheEviction(cacheType string)
- func (c *Collector) RecordCacheHit(cacheType string)
- func (c *Collector) RecordCacheMiss(cacheType string)
- func (c *Collector) RecordCacheSize(cacheType string, size int)
- func (c *Collector) RecordDBConnections(database string, open, idle int)
- func (c *Collector) RecordDBQuery(database, operation string, duration time.Duration)
- func (c *Collector) RecordHTTPRequest(method, path string, status int, duration time.Duration, ...)
- func (c *Collector) RecordLLMRequest(provider, model, status string, duration time.Duration, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector 指标收集器
func NewCollector ¶
NewCollector 创建指标收集器
func (*Collector) RecordAgentExecution ¶
RecordAgentExecution 记录 Agent 执行 K3 FIX: 移除 agentID 参数,仅使用 agentType(有限枚举值)
func (*Collector) RecordAgentInfo ¶
RecordAgentInfo 记录 agent_id 到 agent_type 的映射关系(低频调用,仅用于调试)
func (*Collector) RecordAgentStateTransition ¶
RecordAgentStateTransition 记录 Agent 状态转换 K3 FIX: 使用 agentType 替代 agentID,避免 agent_id x from_state x to_state 笛卡尔积爆炸
func (*Collector) RecordCacheEviction ¶
RecordCacheEviction 记录缓存驱逐
func (*Collector) RecordCacheHit ¶
RecordCacheHit 记录缓存命中
func (*Collector) RecordCacheMiss ¶
RecordCacheMiss 记录缓存未命中
func (*Collector) RecordCacheSize ¶
RecordCacheSize 记录缓存当前大小
func (*Collector) RecordDBConnections ¶
RecordDBConnections 记录数据库连接数
func (*Collector) RecordDBQuery ¶
RecordDBQuery 记录数据库查询
Click to show internal directories.
Click to hide internal directories.