Skip to content

feat: add source identifier to API requests for telemetry#23

Merged
irisyann merged 1 commit intomainfrom
feat/source-identifier-telemetry
Apr 27, 2026
Merged

feat: add source identifier to API requests for telemetry#23
irisyann merged 1 commit intomainfrom
feat/source-identifier-telemetry

Conversation

@irisyann
Copy link
Copy Markdown
Contributor

This PR introduces a source=cli query parameter to all outbound API requests made by the CLI.

💡 Rationale

To ensure the long-term stability and performance of our API services, we need better visibility into how different clients interact with our infrastructure. Adding this identifier allows our backend to:

  • Monitor Performance: Distinguish CLI-specific traffic to identify and resolve latency issues or errors unique to this client.
  • Optimize Resources: Understand aggregate usage patterns to better scale our infrastructure and ensure a reliable experience for all users.
  • Improve Developer Experience: Use high-level metrics to prioritize features and optimizations that benefit CLI users most.

🛠️ Changes

  • Updated the internal API client to append source=cli to request URLs.
  • Logic accounts for existing query parameters to ensure URL formatting remains valid.

@irisyann irisyann requested a review from a team April 20, 2026 03:59
@khooihzhz khooihzhz requested a review from cg-eesuhn April 20, 2026 04:02
@irisyann irisyann merged commit c9eed2b into main Apr 27, 2026
3 checks passed
@irisyann irisyann deleted the feat/source-identifier-telemetry branch April 27, 2026 02:14
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