@@ -123,7 +123,7 @@ private function waitForTraces(string $token, int $numExpectedTraces = 0)
123123 */
124124 private function stopAndCompareSnapshotSession (
125125 string $ token ,
126- array $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'meta.error.stack ' , 'meta._dd.p.tid ' ],
126+ array $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'metrics.php.memory.peak_usage_bytes ' , ' metrics.php.memory.peak_real_usage_bytes ' , ' meta.error.stack ' , 'meta._dd.p.tid ' ],
127127 int $ numExpectedTraces = 1 ,
128128 bool $ snapshotMetrics = false ,
129129 array $ fieldsToIgnoreMetrics = ['openai.request.duration ' ],
@@ -290,7 +290,7 @@ private function filterMetrics($metrics, $fieldsToIgnore)
290290
291291 public function tracesFromWebRequestSnapshot (
292292 $ fn ,
293- $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'meta.error.stack ' , 'meta._dd.p.tid ' , 'start ' , 'duration ' ],
293+ $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'metrics.php.memory.peak_usage_bytes ' , ' metrics.php.memory.peak_real_usage_bytes ' , ' meta.error.stack ' , 'meta._dd.p.tid ' , 'start ' , 'duration ' ],
294294 $ numExpectedTraces = 1 ,
295295 $ tracer = null
296296 ) {
@@ -317,7 +317,7 @@ public function tracesFromWebRequestSnapshot(
317317
318318 public function isolateTracerSnapshot (
319319 $ fn ,
320- $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'meta.error.stack ' , 'meta._dd.p.tid ' ],
320+ $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'metrics.php.memory.peak_usage_bytes ' , ' metrics.php.memory.peak_real_usage_bytes ' , ' meta.error.stack ' , 'meta._dd.p.tid ' ],
321321 $ numExpectedTraces = 1 ,
322322 $ tracer = null ,
323323 $ config = [],
@@ -370,7 +370,7 @@ public function isolateTracerSnapshot(
370370
371371 public function snapshotFromTraces (
372372 $ traces ,
373- $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'meta.error.stack ' , 'meta._dd.p.tid ' ],
373+ $ fieldsToIgnore = ['metrics.php.compilation.total_time_ms ' , 'metrics.php.memory.peak_usage_bytes ' , ' metrics.php.memory.peak_real_usage_bytes ' , ' meta.error.stack ' , 'meta._dd.p.tid ' ],
374374 $ tokenSubstitute = null ,
375375 $ ignoreSampledAway = false
376376 ) {
0 commit comments