8000 feat(telemetry): introduce opentelemetry metrics to cody #CODY-5585 by fengzhou-sg · Pull Request #7647 · sourcegraph/cody · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(telemetry): introduce opentelemetry metrics to cody #CODY-5585 #7647

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 7 commits into from
Apr 9, 2025

Conversation

fengzhou-sg
Copy link
Contributor
@fengzhou-sg fengzhou-sg commented Apr 1, 2025

Introduces OpenTelemetry's metrics support to cody client. This allows cody client to send real-time metrics (currently every minute) for observability, monitoring. The metrics can be queried with prometheus or GCP's metric explorer. For example:

Screenshot 2025-04-01 at 10 42 38 AM

No additional configuration is required. New metrics will automatically appear in GCP's metric explorer.

In addition, with the version field (attached to the meter), the metrics can be used for release gating before rolling out to all populations.
Screenshot 2025-04-01 at 11 01 34 AM

Test plan

  • manual testing

@fengzhou-sg fengzhou-sg enabled auto-merge (squash) April 2, 2025 15:53
@fengzhou-sg fengzhou-sg disabled auto-merge April 3, 2025 01:07
Copy link
Member
@valerybugakov valerybugakov left a comment

Choose a reason for hiding this comment

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

Great idea! Approving to unblock with some comments inline. Please share instructions in #wg-inference-latency on how to access/review these metrics once the code is merged, and we have some data in GCP.

8278 @fengzhou-sg fengzhou-sg enabled auto-merge (squash) April 9, 2025 00:25
@fengzhou-sg fengzhou-sg merged commit a1f91de into main Apr 9, 2025
20 of 22 checks passed
@fengzhou-sg fengzhou-sg deleted the fengzhou/cody-5585-metrics-support branch April 9, 2025 00:59
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.

2 participants
0