Skip to content

Fix: Convert array values to comma-separated strings in telemetry metrics emitAgencticLoop_InvokeLLM #1458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025

Conversation

XiaoxuanLu
Copy link
Contributor

Problem

Flare is sending the telemetry payloads as JSON blobs, but each IDE is re-serializing this data differently. When array values like toolName, toolUseId, and latency are passed directly to the telemetry service, inconsistencies occur across different clients. The telemetry service expects literal strings, not arrays, which causes data processing issues downstream.

Solution

Modified the emitAgencticLoop_InvokeLLM method to flatten array values into comma-separated strings before emitting the telemetry metric. This ensures that each IDE receives properly formatted string values instead of arrays.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@XiaoxuanLu XiaoxuanLu requested a review from a team as a code owner May 28, 2025 19:40
@XiaoxuanLu XiaoxuanLu changed the title Fix: Convert array values to comma-separated strings in telemetry metrics Fix: Convert array values to comma-separated strings in telemetry metrics emitAgencticLoop_InvokeLLM May 28, 2025
@XiaoxuanLu XiaoxuanLu merged commit 6682e21 into main May 28, 2025
6 checks passed
@XiaoxuanLu XiaoxuanLu deleted the xiaoluk/telemetryMetrics branch May 28, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants