Skip to content

Removing Wrong Spark Spans for Inactive Databricks Clusters#10651

Open
larakulkarni1 wants to merge 18 commits intomasterfrom
lara.kulkarni/updatingTheSparkSPans
Open

Removing Wrong Spark Spans for Inactive Databricks Clusters#10651
larakulkarni1 wants to merge 18 commits intomasterfrom
lara.kulkarni/updatingTheSparkSPans

Conversation

@larakulkarni1
Copy link

@larakulkarni1 larakulkarni1 commented Feb 20, 2026

What Does This Do

This PR focuses on removing phantom spans for Databricks Clusters. Currently, DBX Clusters can show up as Spark Jobs on the Batch Jobs Table due to the SparkListener incorrectly emitting a spark.application span for the cluster. These should not be appearing on the table. More information available on this doc

Motivation

Incorrect information on the Batch Jobs Table (customers affected).

Additional Notes

Contributor Checklist

Jira ticket: DJM-1120

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@pr-commenter
Copy link

pr-commenter bot commented Feb 20, 2026

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master lara.kulkarni/updatingTheSparkSPans
git_commit_date 1772719692 1772736097
git_commit_sha 4c3b6f3 a82739e
release_version 1.61.0-SNAPSHOT~4c3b6f3aa2 1.60.0-SNAPSHOT~a82739e0ad
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1772737923 1772737923
ci_job_id 1480474514 1480474514
ci_pipeline_id 100708175 100708175
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-a0fty07s 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-a0fty07s 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 66 metrics, 5 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.056 s) : 0, 1055953
Total [baseline] (11.034 s) : 0, 11033658
Agent [candidate] (1.054 s) : 0, 1054281
Total [candidate] (11.002 s) : 0, 11001725
section appsec
Agent [baseline] (1.243 s) : 0, 1242889
Total [baseline] (11.184 s) : 0, 11184308
Agent [candidate] (1.25 s) : 0, 1249683
Total [candidate] (11.202 s) : 0, 11202207
section iast
Agent [baseline] (1.226 s) : 0, 1225904
Total [baseline] (11.376 s) : 0, 11376167
Agent [candidate] (1.231 s) : 0, 1231343
Total [candidate] (11.268 s) : 0, 11268176
section profiling
Agent [baseline] (1.189 s) : 0, 1189428
Total [baseline] (11.164 s) : 0, 11163616
Agent [candidate] (1.188 s) : 0, 1187775
Total [candidate] (11.008 s) : 0, 11007570
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.056 s -
Agent appsec 1.243 s 186.936 ms (17.7%)
Agent iast 1.226 s 169.951 ms (16.1%)
Agent profiling 1.189 s 133.475 ms (12.6%)
Total tracing 11.034 s -
Total appsec 11.184 s 150.65 ms (1.4%)
Total iast 11.376 s 342.509 ms (3.1%)
Total profiling 11.164 s 129.958 ms (1.2%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.054 s -
Agent appsec 1.25 s 195.401 ms (18.5%)
Agent iast 1.231 s 177.061 ms (16.8%)
Agent profiling 1.188 s 133.493 ms (12.7%)
Total tracing 11.002 s -
Total appsec 11.202 s 200.482 ms (1.8%)
Total iast 11.268 s 266.451 ms (2.4%)
Total profiling 11.008 s 5.845 ms (0.1%)
gantt
    title petclinic - break down per module: candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.189 ms) : 0, 1189
crashtracking [candidate] (1.194 ms) : 0, 1194
BytebuddyAgent [baseline] (626.446 ms) : 0, 626446
BytebuddyAgent [candidate] (627.055 ms) : 0, 627055
AgentMeter [baseline] (29.101 ms) : 0, 29101
AgentMeter [candidate] (29.028 ms) : 0, 29028
GlobalTracer [baseline] (256.475 ms) : 0, 256475
GlobalTracer [candidate] (256.224 ms) : 0, 256224
AppSec [baseline] (31.419 ms) : 0, 31419
AppSec [candidate] (31.44 ms) : 0, 31440
Debugger [baseline] (59.025 ms) : 0, 59025
Debugger [candidate] (59.154 ms) : 0, 59154
Remote Config [baseline] (594.698 µs) : 0, 595
Remote Config [candidate] (587.191 µs) : 0, 587
Telemetry [baseline] (8.54 ms) : 0, 8540
Telemetry [candidate] (8.662 ms) : 0, 8662
Flare Poller [baseline] (7.146 ms) : 0, 7146
Flare Poller [candidate] (4.983 ms) : 0, 4983
section appsec
crashtracking [baseline] (1.182 ms) : 0, 1182
crashtracking [candidate] (1.208 ms) : 0, 1208
BytebuddyAgent [baseline] (656.017 ms) : 0, 656017
BytebuddyAgent [candidate] (661.5 ms) : 0, 661500
AgentMeter [baseline] (11.985 ms) : 0, 11985
AgentMeter [candidate] (12.048 ms) : 0, 12048
GlobalTracer [baseline] (257.236 ms) : 0, 257236
GlobalTracer [candidate] (259.016 ms) : 0, 259016
IAST [baseline] (23.911 ms) : 0, 23911
IAST [candidate] (23.917 ms) : 0, 23917
AppSec [baseline] (177.776 ms) : 0, 177776
AppSec [candidate] (177.274 ms) : 0, 177274
Debugger [baseline] (65.489 ms) : 0, 65489
Debugger [candidate] (65.301 ms) : 0, 65301
Remote Config [baseline] (573.642 µs) : 0, 574
Remote Config [candidate] (573.756 µs) : 0, 574
Telemetry [baseline] (8.905 ms) : 0, 8905
Telemetry [candidate] (8.869 ms) : 0, 8869
Flare Poller [baseline] (3.557 ms) : 0, 3557
Flare Poller [candidate] (3.602 ms) : 0, 3602
section iast
crashtracking [baseline] (1.196 ms) : 0, 1196
crashtracking [candidate] (1.203 ms) : 0, 1203
BytebuddyAgent [baseline] (795.669 ms) : 0, 795669
BytebuddyAgent [candidate] (799.265 ms) : 0, 799265
AgentMeter [baseline] (11.282 ms) : 0, 11282
AgentMeter [candidate] (11.409 ms) : 0, 11409
GlobalTracer [baseline] (246.331 ms) : 0, 246331
GlobalTracer [candidate] (247.708 ms) : 0, 247708
IAST [baseline] (25.053 ms) : 0, 25053
IAST [candidate] (25.291 ms) : 0, 25291
AppSec [baseline] (26.285 ms) : 0, 26285
AppSec [candidate] (26.512 ms) : 0, 26512
Debugger [baseline] (63.495 ms) : 0, 63495
Debugger [candidate] (63.526 ms) : 0, 63526
Remote Config [baseline] (531.859 µs) : 0, 532
Remote Config [candidate] (553.621 µs) : 0, 554
Telemetry [baseline] (15.039 ms) : 0, 15039
Telemetry [candidate] (14.838 ms) : 0, 14838
Flare Poller [baseline] (4.922 ms) : 0, 4922
Flare Poller [candidate] (4.874 ms) : 0, 4874
section profiling
crashtracking [baseline] (1.176 ms) : 0, 1176
crashtracking [candidate] (1.175 ms) : 0, 1175
BytebuddyAgent [baseline] (687.511 ms) : 0, 687511
BytebuddyAgent [candidate] (686.361 ms) : 0, 686361
AgentMeter [baseline] (8.64 ms) : 0, 8640
AgentMeter [candidate] (8.642 ms) : 0, 8642
GlobalTracer [baseline] (216.638 ms) : 0, 216638
GlobalTracer [candidate] (216.315 ms) : 0, 216315
AppSec [baseline] (32.208 ms) : 0, 32208
AppSec [candidate] (32.158 ms) : 0, 32158
Debugger [baseline] (62.377 ms) : 0, 62377
Debugger [candidate] (62.33 ms) : 0, 62330
Remote Config [baseline] (579.788 µs) : 0, 580
Remote Config [candidate] (577.256 µs) : 0, 577
Telemetry [baseline] (11.39 ms) : 0, 11390
Telemetry [candidate] (11.262 ms) : 0, 11262
Flare Poller [baseline] (3.506 ms) : 0, 3506
Flare Poller [candidate] (3.511 ms) : 0, 3511
ProfilingAgent [baseline] (94.16 ms) : 0, 94160
ProfilingAgent [candidate] (94.355 ms) : 0, 94355
Profiling [baseline] (94.732 ms) : 0, 94732
Profiling [candidate] (94.928 ms) : 0, 94928
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.064 s) : 0, 1063633
Total [baseline] (8.809 s) : 0, 8808783
Agent [candidate] (1.063 s) : 0, 1063367
Total [candidate] (8.818 s) : 0, 8818432
section iast
Agent [baseline] (1.222 s) : 0, 1221904
Total [baseline] (9.506 s) : 0, 9506163
Agent [candidate] (1.233 s) : 0, 1233102
Total [candidate] (9.577 s) : 0, 9576833
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.064 s -
Agent iast 1.222 s 158.271 ms (14.9%)
Total tracing 8.809 s -
Total iast 9.506 s 697.38 ms (7.9%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.063 s -
Agent iast 1.233 s 169.735 ms (16.0%)
Total tracing 8.818 s -
Total iast 9.577 s 758.401 ms (8.6%)
gantt
    title insecure-bank - break down per module: candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.206 ms) : 0, 1206
crashtracking [candidate] (1.208 ms) : 0, 1208
BytebuddyAgent [baseline] (631.247 ms) : 0, 631247
BytebuddyAgent [candidate] (631.508 ms) : 0, 631508
AgentMeter [baseline] (29.27 ms) : 0, 29270
AgentMeter [candidate] (29.196 ms) : 0, 29196
GlobalTracer [baseline] (257.786 ms) : 0, 257786
GlobalTracer [candidate] (257.565 ms) : 0, 257565
AppSec [baseline] (31.77 ms) : 0, 31770
AppSec [candidate] (31.735 ms) : 0, 31735
Debugger [baseline] (58.937 ms) : 0, 58937
Debugger [candidate] (58.85 ms) : 0, 58850
Remote Config [baseline] (602.75 µs) : 0, 603
Remote Config [candidate] (592.201 µs) : 0, 592
Telemetry [baseline] (8.711 ms) : 0, 8711
Telemetry [candidate] (8.688 ms) : 0, 8688
Flare Poller [baseline] (7.925 ms) : 0, 7925
Flare Poller [candidate] (7.911 ms) : 0, 7911
section iast
crashtracking [baseline] (1.186 ms) : 0, 1186
crashtracking [candidate] (1.206 ms) : 0, 1206
BytebuddyAgent [baseline] (792.429 ms) : 0, 792429
BytebuddyAgent [candidate] (800.85 ms) : 0, 800850
AgentMeter [baseline] (11.266 ms) : 0, 11266
AgentMeter [candidate] (11.563 ms) : 0, 11563
GlobalTracer [baseline] (246.274 ms) : 0, 246274
GlobalTracer [candidate] (247.977 ms) : 0, 247977
IAST [baseline] (25.115 ms) : 0, 25115
IAST [candidate] (25.285 ms) : 0, 25285
AppSec [baseline] (26.351 ms) : 0, 26351
AppSec [candidate] (26.504 ms) : 0, 26504
Debugger [baseline] (62.894 ms) : 0, 62894
Debugger [candidate] (62.997 ms) : 0, 62997
Remote Config [baseline] (534.988 µs) : 0, 535
Remote Config [candidate] (527.222 µs) : 0, 527
Telemetry [baseline] (14.869 ms) : 0, 14869
Telemetry [candidate] (15.066 ms) : 0, 15066
Flare Poller [baseline] (4.993 ms) : 0, 4993
Flare Poller [candidate] (4.884 ms) : 0, 4884
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master lara.kulkarni/updatingTheSparkSPans
git_commit_date 1772719692 1772736097
git_commit_sha 4c3b6f3 a82739e
release_version 1.61.0-SNAPSHOT~4c3b6f3aa2 1.60.0-SNAPSHOT~a82739e0ad
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1772738315 1772738315
ci_job_id 1480474518 1480474518
ci_pipeline_id 100708175 100708175
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-xv0ib3ie 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-xv0ib3ie 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 2 performance improvements and 3 performance regressions! Performance is the same for 14 metrics, 17 unstable metrics.

scenario Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p95 Δ mean throughput candidate mean agg_http_req_duration_p50 candidate mean agg_http_req_duration_p95 candidate mean throughput baseline mean agg_http_req_duration_p50 baseline mean agg_http_req_duration_p95 baseline mean throughput
scenario:load:insecure-bank:profiling:high_load worse
[+84.248µs; +240.206µs] or [+5.278%; +15.049%]
unstable
[+298.823µs; +1336.085µs] or [+6.678%; +29.858%]
unstable
[-539.179op/s; -35.696op/s] or [-23.096%; -1.529%]
1.758ms 5.292ms 2047.125op/s 1.596ms 4.475ms 2334.562op/s
scenario:load:insecure-bank:iast:high_load better
[-282.486µs; -129.034µs] or [-10.916%; -4.986%]
better
[-768.386µs; -194.301µs] or [-10.083%; -2.550%]
unstable
[-48.536op/s; +240.348op/s] or [-3.515%; +17.407%]
2.382ms 7.139ms 1476.656op/s 2.588ms 7.621ms 1380.750op/s
scenario:load:petclinic:tracing:high_load worse
[+0.505ms; +1.556ms] or [+2.879%; +8.874%]
worse
[+0.572ms; +1.955ms] or [+2.001%; +6.836%]
unstable
[-39.699op/s; +15.324op/s] or [-15.201%; +5.868%]
18.569ms 29.867ms 248.969op/s 17.538ms 28.603ms 261.156op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.173 ms) : 1162, 1184
.   : milestone, 1173,
iast (3.316 ms) : 3277, 3355
.   : milestone, 3316,
iast_FULL (5.895 ms) : 5836, 5955
.   : milestone, 5895,
iast_GLOBAL (3.696 ms) : 3627, 3764
.   : milestone, 3696,
profiling (1.931 ms) : 1915, 1947
.   : milestone, 1931,
tracing (1.777 ms) : 1763, 1791
.   : milestone, 1777,
section candidate
no_agent (1.193 ms) : 1181, 1205
.   : milestone, 1193,
iast (3.095 ms) : 3055, 3134
.   : milestone, 3095,
iast_FULL (5.966 ms) : 5907, 6026
.   : milestone, 5966,
iast_GLOBAL (3.615 ms) : 3546, 3684
.   : milestone, 3615,
profiling (2.212 ms) : 2191, 2233
.   : milestone, 2212,
tracing (1.795 ms) : 1781, 1810
.   : milestone, 1795,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.173 ms [1.162 ms, 1.184 ms] -
iast 3.316 ms [3.277 ms, 3.355 ms] 2.143 ms (182.7%)
iast_FULL 5.895 ms [5.836 ms, 5.955 ms] 4.722 ms (402.6%)
iast_GLOBAL 3.696 ms [3.627 ms, 3.764 ms] 2.523 ms (215.1%)
profiling 1.931 ms [1.915 ms, 1.947 ms] 757.843 µs (64.6%)
tracing 1.777 ms [1.763 ms, 1.791 ms] 604.099 µs (51.5%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.193 ms [1.181 ms, 1.205 ms] -
iast 3.095 ms [3.055 ms, 3.134 ms] 1.902 ms (159.4%)
iast_FULL 5.966 ms [5.907 ms, 6.026 ms] 4.773 ms (400.1%)
iast_GLOBAL 3.615 ms [3.546 ms, 3.684 ms] 2.422 ms (203.1%)
profiling 2.212 ms [2.191 ms, 2.233 ms] 1.019 ms (85.4%)
tracing 1.795 ms [1.781 ms, 1.81 ms] 602.357 µs (50.5%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2
    dateFormat X
    axisFormat %s
section baseline
no_agent (18.353 ms) : 18160, 18545
.   : milestone, 18353,
appsec (18.89 ms) : 18697, 19083
.   : milestone, 18890,
code_origins (17.807 ms) : 17626, 17988
.   : milestone, 17807,
iast (17.634 ms) : 17459, 17810
.   : milestone, 17634,
profiling (18.87 ms) : 18683, 19058
.   : milestone, 18870,
tracing (17.868 ms) : 17692, 18043
.   : milestone, 17868,
section candidate
no_agent (17.851 ms) : 17667, 18035
.   : milestone, 17851,
appsec (18.656 ms) : 18463, 18849
.   : milestone, 18656,
code_origins (17.995 ms) : 17816, 18174
.   : milestone, 17995,
iast (17.681 ms) : 17507, 17855
.   : milestone, 17681,
profiling (18.612 ms) : 18427, 18797
.   : milestone, 18612,
tracing (18.746 ms) : 18555, 18936
.   : milestone, 18746,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.353 ms [18.16 ms, 18.545 ms] -
appsec 18.89 ms [18.697 ms, 19.083 ms] 537.444 µs (2.9%)
code_origins 17.807 ms [17.626 ms, 17.988 ms] -545.622 µs (-3.0%)
iast 17.634 ms [17.459 ms, 17.81 ms] -718.176 µs (-3.9%)
profiling 18.87 ms [18.683 ms, 19.058 ms] 517.757 µs (2.8%)
tracing 17.868 ms [17.692 ms, 18.043 ms] -485.075 µs (-2.6%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 17.851 ms [17.667 ms, 18.035 ms] -
appsec 18.656 ms [18.463 ms, 18.849 ms] 804.797 µs (4.5%)
code_origins 17.995 ms [17.816 ms, 18.174 ms] 144.017 µs (0.8%)
iast 17.681 ms [17.507 ms, 17.855 ms] -170.288 µs (-1.0%)
profiling 18.612 ms [18.427 ms, 18.797 ms] 761.166 µs (4.3%)
tracing 18.746 ms [18.555 ms, 18.936 ms] 894.519 µs (5.0%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master lara.kulkarni/updatingTheSparkSPans
git_commit_date 1772719692 1772736097
git_commit_sha 4c3b6f3 a82739e
release_version 1.61.0-SNAPSHOT~4c3b6f3aa2 1.60.0-SNAPSHOT~a82739e0ad
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1772738157 1772738157
ci_job_id 1480474521 1480474521
ci_pipeline_id 100708175 100708175
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-nlodpf3s 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-nlodpf3s 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.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.101 s) : 15101000, 15101000
.   : milestone, 15101000,
appsec (15.003 s) : 15003000, 15003000
.   : milestone, 15003000,
iast (18.365 s) : 18365000, 18365000
.   : milestone, 18365000,
iast_GLOBAL (17.307 s) : 17307000, 17307000
.   : milestone, 17307000,
profiling (14.774 s) : 14774000, 14774000
.   : milestone, 14774000,
tracing (15.134 s) : 15134000, 15134000
.   : milestone, 15134000,
section candidate
no_agent (15.382 s) : 15382000, 15382000
.   : milestone, 15382000,
appsec (15.203 s) : 15203000, 15203000
.   : milestone, 15203000,
iast (17.904 s) : 17904000, 17904000
.   : milestone, 17904000,
iast_GLOBAL (17.789 s) : 17789000, 17789000
.   : milestone, 17789000,
profiling (14.922 s) : 14922000, 14922000
.   : milestone, 14922000,
tracing (15.414 s) : 15414000, 15414000
.   : milestone, 15414000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.101 s [15.101 s, 15.101 s] -
appsec 15.003 s [15.003 s, 15.003 s] -98.0 ms (-0.6%)
iast 18.365 s [18.365 s, 18.365 s] 3.264 s (21.6%)
iast_GLOBAL 17.307 s [17.307 s, 17.307 s] 2.206 s (14.6%)
profiling 14.774 s [14.774 s, 14.774 s] -327.0 ms (-2.2%)
tracing 15.134 s [15.134 s, 15.134 s] 33.0 ms (0.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.382 s [15.382 s, 15.382 s] -
appsec 15.203 s [15.203 s, 15.203 s] -179.0 ms (-1.2%)
iast 17.904 s [17.904 s, 17.904 s] 2.522 s (16.4%)
iast_GLOBAL 17.789 s [17.789 s, 17.789 s] 2.407 s (15.6%)
profiling 14.922 s [14.922 s, 14.922 s] -460.0 ms (-3.0%)
tracing 15.414 s [15.414 s, 15.414 s] 32.0 ms (0.2%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.60.0-SNAPSHOT~a82739e0ad, baseline=1.61.0-SNAPSHOT~4c3b6f3aa2
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.473 ms) : 1462, 1485
.   : milestone, 1473,
appsec (3.838 ms) : 3615, 4061
.   : milestone, 3838,
iast (2.257 ms) : 2188, 2326
.   : milestone, 2257,
iast_GLOBAL (2.31 ms) : 2240, 2379
.   : milestone, 2310,
profiling (2.112 ms) : 2055, 2168
.   : milestone, 2112,
tracing (2.057 ms) : 2003, 2110
.   : milestone, 2057,
section candidate
no_agent (1.48 ms) : 1469, 1492
.   : milestone, 1480,
appsec (3.712 ms) : 3498, 3927
.   : milestone, 3712,
iast (2.259 ms) : 2190, 2327
.   : milestone, 2259,
iast_GLOBAL (2.302 ms) : 2232, 2371
.   : milestone, 2302,
profiling (2.085 ms) : 2030, 2139
.   : milestone, 2085,
tracing (2.065 ms) : 2012, 2119
.   : milestone, 2065,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.473 ms [1.462 ms, 1.485 ms] -
appsec 3.838 ms [3.615 ms, 4.061 ms] 2.365 ms (160.5%)
iast 2.257 ms [2.188 ms, 2.326 ms] 783.566 µs (53.2%)
iast_GLOBAL 2.31 ms [2.24 ms, 2.379 ms] 836.362 µs (56.8%)
profiling 2.112 ms [2.055 ms, 2.168 ms] 638.163 µs (43.3%)
tracing 2.057 ms [2.003 ms, 2.11 ms] 583.059 µs (39.6%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.48 ms [1.469 ms, 1.492 ms] -
appsec 3.712 ms [3.498 ms, 3.927 ms] 2.232 ms (150.8%)
iast 2.259 ms [2.19 ms, 2.327 ms] 778.323 µs (52.6%)
iast_GLOBAL 2.302 ms [2.232 ms, 2.371 ms] 821.63 µs (55.5%)
profiling 2.085 ms [2.03 ms, 2.139 ms] 604.454 µs (40.8%)
tracing 2.065 ms [2.012 ms, 2.119 ms] 585.186 µs (39.5%)

@larakulkarni1 larakulkarni1 force-pushed the lara.kulkarni/updatingTheSparkSPans branch from 8bf15a0 to fb1450e Compare February 24, 2026 16:26
@larakulkarni1 larakulkarni1 changed the title Removing Wrong Spark Spans for Inactive Databricks Clusters [DJM-1120] Removing Wrong Spark Spans for Inactive Databricks Clusters Mar 2, 2026
@larakulkarni1 larakulkarni1 changed the title [DJM-1120] Removing Wrong Spark Spans for Inactive Databricks Clusters Removing Wrong Spark Spans for Inactive Databricks Clusters Mar 2, 2026
@larakulkarni1 larakulkarni1 marked this pull request as ready for review March 2, 2026 16:21
@larakulkarni1 larakulkarni1 requested a review from a team as a code owner March 2, 2026 16:21
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@larakulkarni1 larakulkarni1 requested a review from charlesmyu March 2, 2026 16:21
@larakulkarni1 larakulkarni1 added inst: apache spark Apache Spark instrumentation type: bug Bug report and fix labels Mar 3, 2026
Comment on lines +332 to +344
// Flush any remaining traces and return.
tracer.flush();
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking more closely at this code - it seems like we already try to handle Databricks jobs up above by checking for applicationSpan == null && jobCount > 0 and returning before we ever initialize the application span. Would it make sense to unify our updated logic into there?

This might also explain why we weren't seeing this issue previously - most customers don't start all purpose clusters and run nothing on them before they spin down

Copy link
Author

Choose a reason for hiding this comment

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

I was thinking about adding in the check in initApplicationSpanIfNotInitialized() because it's used in multiple methods (they have guards currently) but on the off chance it's used again in the future, adding the check in initApplicationSpanIfNotInitialized would prevent a DBX cluster having a spark span if the new code doesn't have a guard.

Copy link
Contributor

Choose a reason for hiding this comment

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

For posterity, we discussed in person and we agreed that in that case we would prefer updating all callers to reflect the check being moved into initApplicationSpanIfNotInitialized. For now, though, we follow the existing pattern and update the check where it is called in finishApplication.

Copy link
Contributor

@charlesmyu charlesmyu left a comment

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: apache spark Apache Spark instrumentation type: bug Bug report and fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants