Skip to content

fix: drain unused adapter metrics streams - #7146

Merged
chenghao-mou merged 1 commit into
mainfrom
chenghao/fix/AGT-3448-drain-unused-metrics-consumers
Sep 7, 2026
Merged

fix: drain unused adapter metrics streams#7146
chenghao-mou merged 1 commit into
mainfrom
chenghao/fix/AGT-3448-drain-unused-metrics-consumers

Conversation

@chenghao-mou

Copy link
Copy Markdown
Member

Unused adapter metrics peers retained every outward event after callers consumed and closed streams. Drain all four unused peers while preserving provider metrics events.

Synthetic probe Before retained After retained Savings
TTS stream adapter, 60 s PCM 2,880,960 B 0 B 100%
TTS fallback chunked, 60 s PCM 2,880,480 B 0 B 100%
TTS fallback streaming, 60 s PCM 2,880,480 B 0 B 100%
LLM fallback, 60k characters 20,002 chunks 0 chunks 100%

Addresses AGT-3448

Initial prompt and agent context

Model: GPT-5.6

investigate linear 3448

okay, let's open a draft PR and include before and after comparison table for the savings.

@chenghao-mou
chenghao-mou marked this pull request as ready for review September 6, 2026 18:32
@chenghao-mou
chenghao-mou requested a review from a team as a code owner September 6, 2026 18:32

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@chenghao-mou
chenghao-mou merged commit ba1b272 into main Sep 7, 2026
27 checks passed
@chenghao-mou
chenghao-mou deleted the chenghao/fix/AGT-3448-drain-unused-metrics-consumers branch September 7, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants