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

fix: fix variant metrics #3947

Merged
merged 2 commits into from
Jun 9, 2023
Merged

fix: fix variant metrics #3947

merged 2 commits into from
Jun 9, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Jun 9, 2023

Currently, Unleash is storing metrics every 5 seconds. However, a problem arises when multiple SDKs query the same feature flag, and one of them sends variants data while the other does not. If the SDK that does not send variants data is registered first, it leads to a error in the system.

This PR fixes the issue, by always storing variants object.

@vercel
Copy link

vercel bot commented Jun 9, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jun 9, 2023 0:22am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Jun 9, 2023 0:22am

src/lib/util/collapseHourlyMetrics.test.ts Outdated Show resolved Hide resolved
@sjaanus sjaanus enabled auto-merge (squash) June 9, 2023 12:41
@sjaanus sjaanus merged commit ea21c75 into main Jun 9, 2023
10 checks passed
@sjaanus sjaanus deleted the fix-variant-metrics branch June 9, 2023 12:48
sjaanus added a commit that referenced this pull request Jun 9, 2023
chriswk pushed a commit that referenced this pull request Jun 12, 2023
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