Repository navigation
feat(channels): wire OTLP telemetry into channels-manager daemon - #922
Merged
Merged
Conversation
This was referenced Jul 16, 2026
edenreich
reviewed
Jul 16, 2026
edenreich
marked this pull request as ready for review
July 16, 2026 19:24
Co-authored-by: Eden Reich <[email protected]>
…bsystem stops The daemon instruments (messages_processed, message.duration, active_channels) were created but never recorded, so no data points were ever exported. Record them at the message-handling and channel-lifecycle sites. Also move the telemetry flush to after all subsystems stop (so their final measurements are exported) and bound it with a 10s timeout so an unreachable collector cannot hang shutdown.
Contributor
|
🎉 This PR is included in version 0.148.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #921
Summary
Initialize the telemetry meter provider + OTLP metric exporter in the channels-manager daemon path, reusing the existing telemetry.Recorder from the agent/chat path. The daemon now pushes operational metrics (messages processed, per-message duration, active channels) over OTLP when telemetry is enabled and an endpoint is configured - no new config surface needed.
Changes
ExecDaemonexecution mode to telemetry recorder to distinguish daemon metrics from agent subprocess metricsMeter()accessor ontelemetry.Recorderso subsystems can register their own instruments on the shared meter providerRunChannelsCommandwith the existing config (telemetry.enabled,telemetry.otlp.{endpoint,headers,interval}/INFER_TELEMETRY_*)ChannelManagerService:infer.daemon.messages_processed(counter),infer.daemon.message.duration(histogram),infer.daemon.active_channels(updown counter)Follow-up