Skip to content
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

chore: re-use the same client schema for proxy #3251

Merged
merged 2 commits into from Mar 3, 2023

Conversation

gastonfournier
Copy link
Contributor

@gastonfournier gastonfournier commented Mar 3, 2023

About the changes

client-metrics-schema is less strict than proxy-metrics-schema because the former allows empty instanceId and also supports dates as timestamps as well as date-formatted strings.

Using the same schema makes sense to reduce maintainability costs and it's less error-prone if we need to modify the schema because underlying the schema they both use the same code.

The reasoning is that proxy metrics should align with our client metrics. Alternatively, we have new endpoints for edge metrics that will aggregate and bucket by client.

image

Discussion points

Will we ever want to evolve proxy-metrics differently than client-metrics? I'm under the assumption that the answer is no

@vercel
Copy link

vercel bot commented Mar 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 0:28AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
unleash-docs ⬜️ Ignored (Inspect) Mar 3, 2023 at 0:28AM (UTC)

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

@gastonfournier gastonfournier self-assigned this Mar 3, 2023
@gastonfournier gastonfournier merged commit 37ce81a into main Mar 3, 2023
@gastonfournier gastonfournier deleted the use-same-schema-for-proxy-and-client-metrics branch March 3, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants