Skip to content

Make rum injector stream/writer more resilient to errors #9184

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amarziali
Copy link
Contributor

What Does This Do

Make InjectingPipeOutStream and InjectingPipeWriter more deterministic when an IOException is thrown by the downstream.

In this particular case, the wrappers stop trying to inject to the downstream and just delegate the writes since the underlying buffer is now in an inconsistent state (we do not know in advance which portion of the buffer has been eventually written and what will be the retry policy of the user). This implies that eventually data can be corrupted or lost (but this would also have happened without this wrapper)

However, if the error arose when draining, the draining is resumed from the position that broke.

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@amarziali amarziali requested a review from a team as a code owner July 16, 2025 12:33
@amarziali amarziali requested a review from smola July 16, 2025 12:33
@amarziali amarziali added type: enhancement Enhancements and improvements comp: rum Realtime User Monitoring labels Jul 16, 2025
@amarziali amarziali requested a review from mcculls July 16, 2025 12:33
@pr-commenter
Copy link

pr-commenter bot commented Jul 16, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master andrea.marziali/resilience
git_commit_date 1752667115 1752674934
git_commit_sha 2fe6aa2 fca1f17
release_version 1.52.0-SNAPSHOT~2fe6aa2d23 1.52.0-SNAPSHOT~fca1f179a9
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752676814 1752676814
ci_job_id 1031601030 1031601030
ci_pipeline_id 70720605 70720605
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-vqa5ctej 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-vqa5ctej 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 12 unstable metrics.

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.044 s) : 0, 1044018
Total [baseline] (8.688 s) : 0, 8687566
Agent [candidate] (1.039 s) : 0, 1039138
Total [candidate] (8.617 s) : 0, 8616990
section iast
Agent [baseline] (1.186 s) : 0, 1185545
Total [baseline] (9.363 s) : 0, 9363009
Agent [candidate] (1.174 s) : 0, 1173796
Total [candidate] (9.393 s) : 0, 9392979
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.044 s -
Agent iast 1.186 s 141.527 ms (13.6%)
Total tracing 8.688 s -
Total iast 9.363 s 675.443 ms (7.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.039 s -
Agent iast 1.174 s 134.659 ms (13.0%)
Total tracing 8.617 s -
Total iast 9.393 s 775.989 ms (9.0%)
gantt
    title insecure-bank - break down per module: candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.441 ms) : 0, 1441
crashtracking [candidate] (1.457 ms) : 0, 1457
BytebuddyAgent [baseline] (733.943 ms) : 0, 733943
BytebuddyAgent [candidate] (730.249 ms) : 0, 730249
GlobalTracer [baseline] (242.243 ms) : 0, 242243
GlobalTracer [candidate] (241.161 ms) : 0, 241161
AppSec [baseline] (30.427 ms) : 0, 30427
AppSec [candidate] (30.477 ms) : 0, 30477
Debugger [baseline] (6.026 ms) : 0, 6026
Debugger [candidate] (6.036 ms) : 0, 6036
Remote Config [baseline] (645.242 µs) : 0, 645
Remote Config [candidate] (651.26 µs) : 0, 651
Telemetry [baseline] (8.241 ms) : 0, 8241
Telemetry [candidate] (8.221 ms) : 0, 8221
section iast
crashtracking [baseline] (1.446 ms) : 0, 1446
crashtracking [candidate] (1.436 ms) : 0, 1436
BytebuddyAgent [baseline] (856.278 ms) : 0, 856278
BytebuddyAgent [candidate] (847.642 ms) : 0, 847642
GlobalTracer [baseline] (233.391 ms) : 0, 233391
GlobalTracer [candidate] (230.898 ms) : 0, 230898
AppSec [baseline] (28.539 ms) : 0, 28539
AppSec [candidate] (28.494 ms) : 0, 28494
Debugger [baseline] (9.169 ms) : 0, 9169
Debugger [candidate] (5.85 ms) : 0, 5850
Remote Config [baseline] (599.936 µs) : 0, 600
Remote Config [candidate] (612.381 µs) : 0, 612
Telemetry [baseline] (8.093 ms) : 0, 8093
Telemetry [candidate] (8.055 ms) : 0, 8055
IAST [baseline] (27.084 ms) : 0, 27084
IAST [candidate] (30.031 ms) : 0, 30031
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.037 s) : 0, 1037272
Total [baseline] (10.728 s) : 0, 10727832
Agent [candidate] (1.048 s) : 0, 1047513
Total [candidate] (10.729 s) : 0, 10729240
section appsec
Agent [baseline] (1.22 s) : 0, 1219731
Total [baseline] (10.785 s) : 0, 10785010
Agent [candidate] (1.217 s) : 0, 1217202
Total [candidate] (10.783 s) : 0, 10783377
section iast
Agent [baseline] (1.191 s) : 0, 1190803
Total [baseline] (10.985 s) : 0, 10984914
Agent [candidate] (1.18 s) : 0, 1180174
Total [candidate] (10.933 s) : 0, 10932840
section profiling
Agent [baseline] (1.206 s) : 0, 1205518
Total [baseline] (10.971 s) : 0, 10970913
Agent [candidate] (1.184 s) : 0, 1184463
Total [candidate] (10.868 s) : 0, 10868354
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.037 s -
Agent appsec 1.22 s 182.459 ms (17.6%)
Agent iast 1.191 s 153.531 ms (14.8%)
Agent profiling 1.206 s 168.246 ms (16.2%)
Total tracing 10.728 s -
Total appsec 10.785 s 57.179 ms (0.5%)
Total iast 10.985 s 257.082 ms (2.4%)
Total profiling 10.971 s 243.081 ms (2.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.048 s -
Agent appsec 1.217 s 169.689 ms (16.2%)
Agent iast 1.18 s 132.661 ms (12.7%)
Agent profiling 1.184 s 136.95 ms (13.1%)
Total tracing 10.729 s -
Total appsec 10.783 s 54.137 ms (0.5%)
Total iast 10.933 s 203.601 ms (1.9%)
Total profiling 10.868 s 139.114 ms (1.3%)
gantt
    title petclinic - break down per module: candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.433 ms) : 0, 1433
crashtracking [candidate] (1.455 ms) : 0, 1455
BytebuddyAgent [baseline] (728.395 ms) : 0, 728395
BytebuddyAgent [candidate] (737.654 ms) : 0, 737654
GlobalTracer [baseline] (240.42 ms) : 0, 240420
GlobalTracer [candidate] (241.889 ms) : 0, 241889
AppSec [baseline] (30.403 ms) : 0, 30403
AppSec [candidate] (30.412 ms) : 0, 30412
Debugger [baseline] (6.035 ms) : 0, 6035
Debugger [candidate] (6.098 ms) : 0, 6098
Remote Config [baseline] (651.523 µs) : 0, 652
Remote Config [candidate] (649.988 µs) : 0, 650
Telemetry [baseline] (8.996 ms) : 0, 8996
Telemetry [candidate] (8.272 ms) : 0, 8272
section appsec
crashtracking [baseline] (1.442 ms) : 0, 1442
crashtracking [candidate] (1.44 ms) : 0, 1440
BytebuddyAgent [baseline] (754.921 ms) : 0, 754921
BytebuddyAgent [candidate] (752.464 ms) : 0, 752464
GlobalTracer [baseline] (233.345 ms) : 0, 233345
GlobalTracer [candidate] (233.35 ms) : 0, 233350
AppSec [baseline] (168.049 ms) : 0, 168049
AppSec [candidate] (169.301 ms) : 0, 169301
Debugger [baseline] (7.89 ms) : 0, 7890
Debugger [candidate] (7.168 ms) : 0, 7168
Remote Config [baseline] (602.165 µs) : 0, 602
Remote Config [candidate] (594.976 µs) : 0, 595
Telemetry [baseline] (8.767 ms) : 0, 8767
Telemetry [candidate] (8.045 ms) : 0, 8045
IAST [baseline] (23.412 ms) : 0, 23412
IAST [candidate] (23.601 ms) : 0, 23601
section iast
crashtracking [baseline] (1.459 ms) : 0, 1459
crashtracking [candidate] (1.457 ms) : 0, 1457
BytebuddyAgent [baseline] (860.868 ms) : 0, 860868
BytebuddyAgent [candidate] (852.562 ms) : 0, 852562
GlobalTracer [baseline] (233.746 ms) : 0, 233746
GlobalTracer [candidate] (232.082 ms) : 0, 232082
AppSec [baseline] (31.209 ms) : 0, 31209
AppSec [candidate] (30.74 ms) : 0, 30740
Debugger [baseline] (6.67 ms) : 0, 6670
Debugger [candidate] (7.532 ms) : 0, 7532
Remote Config [baseline] (594.861 µs) : 0, 595
Remote Config [candidate] (591.929 µs) : 0, 592
Telemetry [baseline] (8.031 ms) : 0, 8031
Telemetry [candidate] (8.018 ms) : 0, 8018
IAST [baseline] (27.044 ms) : 0, 27044
IAST [candidate] (26.057 ms) : 0, 26057
section profiling
crashtracking [baseline] (1.429 ms) : 0, 1429
crashtracking [candidate] (1.392 ms) : 0, 1392
BytebuddyAgent [baseline] (773.392 ms) : 0, 773392
BytebuddyAgent [candidate] (759.151 ms) : 0, 759151
GlobalTracer [baseline] (223.615 ms) : 0, 223615
GlobalTracer [candidate] (220.248 ms) : 0, 220248
AppSec [baseline] (30.984 ms) : 0, 30984
AppSec [candidate] (30.482 ms) : 0, 30482
Debugger [baseline] (6.41 ms) : 0, 6410
Debugger [candidate] (6.352 ms) : 0, 6352
Remote Config [baseline] (713.33 µs) : 0, 713
Remote Config [candidate] (669.014 µs) : 0, 669
Telemetry [baseline] (13.547 ms) : 0, 13547
Telemetry [candidate] (14.029 ms) : 0, 14029
ProfilingAgent [baseline] (106.094 ms) : 0, 106094
ProfilingAgent [candidate] (103.672 ms) : 0, 103672
Profiling [baseline] (106.118 ms) : 0, 106118
Profiling [candidate] (103.695 ms) : 0, 103695
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master andrea.marziali/resilience
git_commit_date 1752667115 1752674934
git_commit_sha 2fe6aa2 fca1f17
release_version 1.52.0-SNAPSHOT~2fe6aa2d23 1.52.0-SNAPSHOT~fca1f179a9
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752676492 1752676492
ci_job_id 1031601032 1031601032
ci_pipeline_id 70720605 70720605
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-1-6kgl33nu 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-1-6kgl33nu 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 1 performance improvements and 5 performance regressions! Performance is the same for 6 metrics, 12 unstable metrics.

scenario Δ mean http_req_duration Δ mean throughput candidate mean http_req_duration candidate mean throughput baseline mean http_req_duration baseline mean throughput
scenario:load:insecure-bank:iast:high_load better
[-556.759µs; -225.830µs] or [-5.818%; -2.360%]
unstable
[-37.342op/s; +78.029op/s] or [-7.695%; +16.080%]
9.179ms 505.594op/s 9.570ms 485.250op/s
scenario:load:insecure-bank:profiling:high_load worse
[+267.546µs; +568.776µs] or [+3.168%; +6.734%]
unstable
[-93.998op/s; +42.623op/s] or [-17.122%; +7.764%]
8.864ms 523.312op/s 8.446ms 549.000op/s
scenario:load:insecure-bank:no_agent:high_load worse
[+125.227µs; +230.802µs] or [+2.933%; +5.406%]
unstable
[-158.556op/s; +74.181op/s] or [-14.757%; +6.904%]
4.447ms 1032.281op/s 4.269ms 1074.469op/s
scenario:load:insecure-bank:tracing:high_load worse
[+264.039µs; +492.823µs] or [+3.574%; +6.670%]
unstable
[-104.366op/s; +43.991op/s] or [-16.660%; +7.022%]
7.767ms 596.250op/s 7.389ms 626.438op/s
scenario:load:insecure-bank:iast_FULL:high_load worse
[+279.222µs; +858.942µs] or [+2.085%; +6.414%]
unstable
[-51.631op/s; +23.318op/s] or [-14.844%; +6.704%]
13.960ms 333.656op/s 13.391ms 347.812op/s
scenario:load:petclinic:code_origins:high_load worse
[+1.278ms; +2.129ms] or [+2.922%; +4.869%]
unstable
[-11.099op/s; +3.224op/s] or [-10.377%; +3.014%]
45.423ms 103.025op/s 43.720ms 106.963op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23
    dateFormat X
    axisFormat %s
section baseline
no_agent (37.025 ms) : 36731, 37320
.   : milestone, 37025,
appsec (46.928 ms) : 46516, 47340
.   : milestone, 46928,
code_origins (43.72 ms) : 43329, 44111
.   : milestone, 43720,
iast (44.464 ms) : 44072, 44856
.   : milestone, 44464,
profiling (48.162 ms) : 47713, 48611
.   : milestone, 48162,
tracing (43.606 ms) : 43239, 43974
.   : milestone, 43606,
section candidate
no_agent (37.872 ms) : 37574, 38171
.   : milestone, 37872,
appsec (46.895 ms) : 46478, 47312
.   : milestone, 46895,
code_origins (45.423 ms) : 45023, 45823
.   : milestone, 45423,
iast (44.634 ms) : 44260, 45008
.   : milestone, 44634,
profiling (47.617 ms) : 47140, 48094
.   : milestone, 47617,
tracing (44.154 ms) : 43781, 44527
.   : milestone, 44154,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.025 ms [36.731 ms, 37.32 ms] -
appsec 46.928 ms [46.516 ms, 47.34 ms] 9.903 ms (26.7%)
code_origins 43.72 ms [43.329 ms, 44.111 ms] 6.695 ms (18.1%)
iast 44.464 ms [44.072 ms, 44.856 ms] 7.439 ms (20.1%)
profiling 48.162 ms [47.713 ms, 48.611 ms] 11.137 ms (30.1%)
tracing 43.606 ms [43.239 ms, 43.974 ms] 6.581 ms (17.8%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.872 ms [37.574 ms, 38.171 ms] -
appsec 46.895 ms [46.478 ms, 47.312 ms] 9.023 ms (23.8%)
code_origins 45.423 ms [45.023 ms, 45.823 ms] 7.551 ms (19.9%)
iast 44.634 ms [44.26 ms, 45.008 ms] 6.761 ms (17.9%)
profiling 47.617 ms [47.14 ms, 48.094 ms] 9.744 ms (25.7%)
tracing 44.154 ms [43.781 ms, 44.527 ms] 6.282 ms (16.6%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.269 ms) : 4221, 4317
.   : milestone, 4269,
iast (9.57 ms) : 9413, 9728
.   : milestone, 9570,
iast_FULL (13.391 ms) : 13130, 13651
.   : milestone, 13391,
iast_GLOBAL (10.294 ms) : 10113, 10475
.   : milestone, 10294,
profiling (8.446 ms) : 8310, 8582
.   : milestone, 8446,
tracing (7.389 ms) : 7286, 7491
.   : milestone, 7389,
section candidate
no_agent (4.447 ms) : 4397, 4497
.   : milestone, 4447,
iast (9.179 ms) : 9029, 9329
.   : milestone, 9179,
iast_FULL (13.96 ms) : 13682, 14238
.   : milestone, 13960,
iast_GLOBAL (10.082 ms) : 9897, 10267
.   : milestone, 10082,
profiling (8.864 ms) : 8721, 9008
.   : milestone, 8864,
tracing (7.767 ms) : 7657, 7877
.   : milestone, 7767,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.269 ms [4.221 ms, 4.317 ms] -
iast 9.57 ms [9.413 ms, 9.728 ms] 5.301 ms (124.2%)
iast_FULL 13.391 ms [13.13 ms, 13.651 ms] 9.121 ms (213.7%)
iast_GLOBAL 10.294 ms [10.113 ms, 10.475 ms] 6.025 ms (141.1%)
profiling 8.446 ms [8.31 ms, 8.582 ms] 4.177 ms (97.8%)
tracing 7.389 ms [7.286 ms, 7.491 ms] 3.12 ms (73.1%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.447 ms [4.397 ms, 4.497 ms] -
iast 9.179 ms [9.029 ms, 9.329 ms] 4.732 ms (106.4%)
iast_FULL 13.96 ms [13.682 ms, 14.238 ms] 9.513 ms (213.9%)
iast_GLOBAL 10.082 ms [9.897 ms, 10.267 ms] 5.635 ms (126.7%)
profiling 8.864 ms [8.721 ms, 9.008 ms] 4.417 ms (99.3%)
tracing 7.767 ms [7.657 ms, 7.877 ms] 3.32 ms (74.7%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master andrea.marziali/resilience
git_commit_date 1752667115 1752674934
git_commit_sha 2fe6aa2 fca1f17
release_version 1.52.0-SNAPSHOT~2fe6aa2d23 1.52.0-SNAPSHOT~fca1f179a9
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1752677008 1752677008
ci_job_id 1031601035 1031601035
ci_pipeline_id 70720605 70720605
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-2-d3dghxzs 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-2-d3dghxzs 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics.

Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.324 s) : 15324000, 15324000
.   : milestone, 15324000,
appsec (14.991 s) : 14991000, 14991000
.   : milestone, 14991000,
iast (18.299 s) : 18299000, 18299000
.   : milestone, 18299000,
iast_GLOBAL (18.065 s) : 18065000, 18065000
.   : milestone, 18065000,
profiling (15.276 s) : 15276000, 15276000
.   : milestone, 15276000,
tracing (14.816 s) : 14816000, 14816000
.   : milestone, 14816000,
section candidate
no_agent (15.613 s) : 15613000, 15613000
.   : milestone, 15613000,
appsec (14.825 s) : 14825000, 14825000
.   : milestone, 14825000,
iast (18.766 s) : 18766000, 18766000
.   : milestone, 18766000,
iast_GLOBAL (17.947 s) : 17947000, 17947000
.   : milestone, 17947000,
profiling (15.918 s) : 15918000, 15918000
.   : milestone, 15918000,
tracing (14.829 s) : 14829000, 14829000
.   : milestone, 14829000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.324 s [15.324 s, 15.324 s] -
appsec 14.991 s [14.991 s, 14.991 s] -333.0 ms (-2.2%)
iast 18.299 s [18.299 s, 18.299 s] 2.975 s (19.4%)
iast_GLOBAL 18.065 s [18.065 s, 18.065 s] 2.741 s (17.9%)
profiling 15.276 s [15.276 s, 15.276 s] -48.0 ms (-0.3%)
tracing 14.816 s [14.816 s, 14.816 s] -508.0 ms (-3.3%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.613 s [15.613 s, 15.613 s] -
appsec 14.825 s [14.825 s, 14.825 s] -788.0 ms (-5.0%)
iast 18.766 s [18.766 s, 18.766 s] 3.153 s (20.2%)
iast_GLOBAL 17.947 s [17.947 s, 17.947 s] 2.334 s (14.9%)
profiling 15.918 s [15.918 s, 15.918 s] 305.0 ms (2.0%)
tracing 14.829 s [14.829 s, 14.829 s] -784.0 ms (-5.0%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~fca1f179a9, baseline=1.52.0-SNAPSHOT~2fe6aa2d23
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.475 ms) : 1463, 1486
.   : milestone, 1475,
appsec (2.449 ms) : 2396, 2501
.   : milestone, 2449,
iast (2.196 ms) : 2133, 2259
.   : milestone, 2196,
iast_GLOBAL (2.237 ms) : 2174, 2300
.   : milestone, 2237,
profiling (2.056 ms) : 2005, 2108
.   : milestone, 2056,
tracing (2.002 ms) : 1954, 2050
.   : milestone, 2002,
section candidate
no_agent (1.48 ms) : 1468, 1492
.   : milestone, 1480,
appsec (3.652 ms) : 3437, 3868
.   : milestone, 3652,
iast (2.203 ms) : 2140, 2266
.   : milestone, 2203,
iast_GLOBAL (2.23 ms) : 2168, 2293
.   : milestone, 2230,
profiling (2.032 ms) : 1982, 2082
.   : milestone, 2032,
tracing (2.022 ms) : 1973, 2071
.   : milestone, 2022,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.475 ms [1.463 ms, 1.486 ms] -
appsec 2.449 ms [2.396 ms, 2.501 ms] 974.113 µs (66.1%)
iast 2.196 ms [2.133 ms, 2.259 ms] 721.406 µs (48.9%)
iast_GLOBAL 2.237 ms [2.174 ms, 2.3 ms] 762.659 µs (51.7%)
profiling 2.056 ms [2.005 ms, 2.108 ms] 581.82 µs (39.5%)
tracing 2.002 ms [1.954 ms, 2.05 ms] 527.322 µs (35.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.48 ms [1.468 ms, 1.492 ms] -
appsec 3.652 ms [3.437 ms, 3.868 ms] 2.172 ms (146.8%)
iast 2.203 ms [2.14 ms, 2.266 ms] 723.158 µs (48.9%)
iast_GLOBAL 2.23 ms [2.168 ms, 2.293 ms] 750.396 µs (50.7%)
profiling 2.032 ms [1.982 ms, 2.082 ms] 552.309 µs (37.3%)
tracing 2.022 ms [1.973 ms, 2.071 ms] 541.566 µs (36.6%)

@amarziali amarziali force-pushed the andrea.marziali/resilience branch from b1720e0 to 7e5f82a Compare July 16, 2025 13:09
@amarziali amarziali enabled auto-merge (squash) July 17, 2025 12:36
Comment on lines +117 to +123
boolean tmpFilter = filter;

// will be reset if no errors after the following write
filter = false;
downstream.write(array, off + marker.length - 1, len - bulkWriteThreshold);
filter = tmpFilter;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
boolean tmpFilter = filter;
// will be reset if no errors after the following write
filter = false;
downstream.write(array, off + marker.length - 1, len - bulkWriteThreshold);
filter = tmpFilter;
boolean wasFiltering = filter;
// will be reset if no errors after the following write
filter = false;
downstream.write(array, off + marker.length - 1, len - bulkWriteThreshold);
filter = wasFiltering;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also suggest replacing the other occurrences of tmpFilter with wasFiltering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: rum Realtime User Monitoring type: enhancement Enhancements and improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants