You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Profiling] Manually downsample to 20k events if required (#131196)
* [Profiling] Manually downsample to 20k events if required
Since the random sampler aggregation is limited to p values of 0..0.5,
add an explicit downsampling for p values of 0.5..1.0.
With this, the latency of fetching stacktraces and stackframes can be
further reduced.
* Fix number of reported samples
Copy file name to clipboardExpand all lines: x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStackTracesResponse.java
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ public class GetStackTracesResponse extends ActionResponse implements ChunkedToX
Copy file name to clipboardExpand all lines: x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStackTracesResponseBuilder.java
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,14 @@ public double getSamplingRate() {
Copy file name to clipboardExpand all lines: x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/TransportGetStackTracesAction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/profiling/src/test/java/org/elasticsearch/xpack/profiling/action/GetStackTracesResponseTests.java
0 commit comments