Ability to set profiling sample interval #12446
Replies: 2 comments 3 replies
-
There are no plans to expose this at the current time but maybe we can think about it as an experimental feature in the integration? cc @JonasBa |
Beta Was this translation helpful? Give feedback.
-
@md384 You are correct. We set a sampling rate of ~10ms or 100Hz as the sampling interval in Sentry, mostly because we want our users to focus on the aggregate data that we collect instead of individual profiles. From a product point of view, this is the behavior that we would like to keep, so if we do expose it, we need to be very careful and do it in a way that does not encourage non self hosted users to set it, else we risk a 10x factor on the data we ingest from profiles (which we currently have no guardrails for). I would be curious to hear if you tried using the aggregate flamegraphs to solve your issue? The main reason is that after enough data is collected, the resolution should be even greater than what you would get from a single profile sampled at 1kH. |
Beta Was this translation helpful? Give feedback.
-
I would like the ability to set the sample interval to something greater that 100 per second (probably 1000 per second) to get better visibility into performance bottlenecks (at least temporarily or in a test environment where throughput is much lower). Is that something that would be a possibility?
I see that the V8 CpuProfiler has a function for setting the interval (which presumably sentry already uses to set to 10ms given the default is 1000us).
Beta Was this translation helpful? Give feedback.
All reactions