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

Limit feature metrics #76

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

kujeger
Copy link
Contributor

@kujeger kujeger commented Jan 8, 2024

About the changes

Currently, the SDK attempts to upload metrics for every single feature that exsits on the server, regardless if they have been used or not. This results in a possibly gigantic payload, which can become too big to upload.

Closes #75

Important files

Discussion points

I'm not completely sure that this is the best way to check if a feature is being used/has been requested, but it does seem a pretty good proxy.
That .load(Ordering::Relaxed) is very much a guess for a good way to do it; I'm not familiar with using AtomicU64 .

Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

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

LGTM!

@sjaanus sjaanus merged commit 8a63028 into Unleash:main Jan 11, 2024
1 check passed
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.

"413 Content Too Large" when submitting metrics
2 participants