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

feat: handle invalid metrics #6795

Merged
merged 2 commits into from
Apr 8, 2024
Merged

feat: handle invalid metrics #6795

merged 2 commits into from
Apr 8, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Apr 8, 2024

About the changes

CLIENT_METRICS may contain invalid data and we need to handle it gracefully

Important files

Discussion points

Copy link

vercel bot commented Apr 8, 2024

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) Visit Preview Apr 8, 2024 10:02am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 10:02am

@@ -64,6 +71,7 @@ export class FeatureLifecycleService extends EventEmitter {
);
});
this.eventBus.on(CLIENT_METRICS, async (event) => {
if (!event.featureName || !event.environment) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if any data is missing we don't even proceed

@kwasniew kwasniew merged commit 7cb9910 into main Apr 8, 2024
7 checks passed
@kwasniew kwasniew deleted the handle-invalid-metrics branch April 8, 2024 10:09
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

1 participant