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

[EPIC] Accurate metrics when client-side sampling is on #73

Open
danielkhan opened this issue May 25, 2023 · 0 comments
Open

[EPIC] Accurate metrics when client-side sampling is on #73

danielkhan opened this issue May 25, 2023 · 0 comments

Comments

@danielkhan
Copy link

danielkhan commented May 25, 2023

Problem

Our customers frequently use client-side sampling to control costs, but we also don’t feel confident suggesting a 100% client-side sampling rate on all platforms because of performance concerns. At the same time, we tend to assume a 100% client-side sampling rate when we talk about the completeness of metrics.

Accurate metrics must be a key goal regardless of client-side or server-side sampling rates.

User Stories

  • As a user, I want my metrics to be accurate, even if I sample on the client.

Possible Solutions

  • Improve our SDKs to sample 100% in all cases (does not solve cost control by customers).
  • Always extract and aggregate complete metrics in our SDK regardless of the sampling rate (will create cost on our end, complicated to maintain on all SDKs)
  • Report the client-side sample rate with metrics sent to the backend and extrapolate them based on this rate.

Clarifications

  • While it's a technical requirement to strive for, we will never be able to assume that any given client samples with 100% and as such, tuning our SDKs for this, won't solve the problem completely.
  • Whichever approach we choose, this will increase COGS for us.
  • We need to re-validate all SDKs and implement better backpressure management to guarantee even if customers set 100% sampling, especially in a very high throughput environment, we never negatively impact the customers infrastructure
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

No branches or pull requests

1 participant