fix(test): stabilize cron output capture and clippy cleanups
This commit is contained in:
parent
483acccdb7
commit
50fd5b81e1
7 changed files with 20 additions and 19 deletions
|
|
@ -166,7 +166,10 @@ impl Observer for PrometheusObserver {
|
|||
self.tokens_used.set(i64::try_from(*t).unwrap_or(i64::MAX));
|
||||
}
|
||||
}
|
||||
ObserverEvent::ToolCallStart { tool: _ } => {}
|
||||
ObserverEvent::ToolCallStart { tool: _ }
|
||||
| ObserverEvent::TurnComplete
|
||||
| ObserverEvent::LlmRequest { .. }
|
||||
| ObserverEvent::LlmResponse { .. } => {}
|
||||
ObserverEvent::ToolCall {
|
||||
tool,
|
||||
duration,
|
||||
|
|
@ -180,9 +183,6 @@ impl Observer for PrometheusObserver {
|
|||
.with_label_values(&[tool.as_str()])
|
||||
.observe(duration.as_secs_f64());
|
||||
}
|
||||
ObserverEvent::TurnComplete => {
|
||||
// No metric for turn complete currently
|
||||
}
|
||||
ObserverEvent::ChannelMessage { channel, direction } => {
|
||||
self.channel_messages
|
||||
.with_label_values(&[channel, direction])
|
||||
|
|
@ -197,8 +197,6 @@ impl Observer for PrometheusObserver {
|
|||
} => {
|
||||
self.errors.with_label_values(&[component]).inc();
|
||||
}
|
||||
ObserverEvent::LlmRequest { .. } => {}
|
||||
ObserverEvent::LlmResponse { .. } => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue