vercel / speed-insights

Vercel Speed Insights package
https://vercel.com/docs/speed-insights
Apache License 2.0
62 stars 9 forks source link

sample rate #64

Closed siyou closed 8 months ago

siyou commented 8 months ago

Why did I set the sample rate of SpeedInsights to 0.01, but it seems that the number of data points did not become one percent of the original?

tobiaslins commented 8 months ago

Hey! Did datapoints decrease or did nothing change at all for you?

siyou commented 8 months ago

Datapoints has decreased significantly.

tobiaslins commented 8 months ago

What is the issue then? I am not sure if I can follow

siyou commented 8 months ago

When I set the sampling rate to 0.01, I expected the number of data points to decrease to approximately 1% of the original quantity. However, it only decreased to 20% of the original quantity. After checking and calculating, I believe this may be due to the statistical reference data not covering the entire day or normal fluctuations. We can consider this matter resolved. Thank you for your assistance.