Fix Datadog-Entity-ID detection paths joining#6864
Merged
Conversation
ygree
force-pushed
the
ygree/fix-entity-id-detection-path-joining
branch
from
April 1, 2024 18:41
3d02673 to
1f3b264
Compare
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 50 metrics, 13 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.081 s) : 0, 1080773
Total [baseline] (8.638 s) : 0, 8638352
Agent [candidate] (1.078 s) : 0, 1077965
Total [candidate] (8.604 s) : 0, 8603542
section iast
Agent [baseline] (1.2 s) : 0, 1200028
Total [baseline] (9.072 s) : 0, 9072027
Agent [candidate] (1.198 s) : 0, 1198053
Total [candidate] (9.084 s) : 0, 9083908
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.211 s) : 0, 1211335
Total [baseline] (9.044 s) : 0, 9043755
Agent [candidate] (1.197 s) : 0, 1197305
Total [candidate] (9.051 s) : 0, 9050885
section iast_TELEMETRY_OFF
Agent [baseline] (1.194 s) : 0, 1194052
Total [baseline] (9.084 s) : 0, 9084363
Agent [candidate] (1.196 s) : 0, 1196348
Total [candidate] (9.077 s) : 0, 9077181
gantt
title insecure-bank - break down per module: candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (677.262 ms) : 0, 677262
BytebuddyAgent [candidate] (674.464 ms) : 0, 674464
GlobalTracer [baseline] (311.13 ms) : 0, 311130
GlobalTracer [candidate] (310.69 ms) : 0, 310690
AppSec [baseline] (49.523 ms) : 0, 49523
AppSec [candidate] (49.931 ms) : 0, 49931
Remote Config [baseline] (669.446 µs) : 0, 669
Remote Config [candidate] (676.005 µs) : 0, 676
Telemetry [baseline] (7.594 ms) : 0, 7594
Telemetry [candidate] (7.75 ms) : 0, 7750
section iast
BytebuddyAgent [baseline] (797.059 ms) : 0, 797059
BytebuddyAgent [candidate] (793.167 ms) : 0, 793167
GlobalTracer [baseline] (287.792 ms) : 0, 287792
GlobalTracer [candidate] (288.513 ms) : 0, 288513
AppSec [baseline] (51.619 ms) : 0, 51619
AppSec [candidate] (52.557 ms) : 0, 52557
IAST [baseline] (21.685 ms) : 0, 21685
IAST [candidate] (22.057 ms) : 0, 22057
Remote Config [baseline] (576.425 µs) : 0, 576
Remote Config [candidate] (578.688 µs) : 0, 579
Telemetry [baseline] (6.604 ms) : 0, 6604
Telemetry [candidate] (6.842 ms) : 0, 6842
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (803.218 ms) : 0, 803218
BytebuddyAgent [candidate] (792.81 ms) : 0, 792810
GlobalTracer [baseline] (291.094 ms) : 0, 291094
GlobalTracer [candidate] (288.621 ms) : 0, 288621
AppSec [baseline] (49.803 ms) : 0, 49803
AppSec [candidate] (48.961 ms) : 0, 48961
IAST [baseline] (24.44 ms) : 0, 24440
IAST [candidate] (24.55 ms) : 0, 24550
Remote Config [baseline] (584.647 µs) : 0, 585
Remote Config [candidate] (579.276 µs) : 0, 579
Telemetry [baseline] (7.345 ms) : 0, 7345
Telemetry [candidate] (7.365 ms) : 0, 7365
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (790.583 ms) : 0, 790583
BytebuddyAgent [candidate] (791.818 ms) : 0, 791818
GlobalTracer [baseline] (288.028 ms) : 0, 288028
GlobalTracer [candidate] (289.094 ms) : 0, 289094
AppSec [baseline] (50.935 ms) : 0, 50935
AppSec [candidate] (49.44 ms) : 0, 49440
IAST [baseline] (22.152 ms) : 0, 22152
IAST [candidate] (22.273 ms) : 0, 22273
Remote Config [baseline] (580.344 µs) : 0, 580
Remote Config [candidate] (582.527 µs) : 0, 583
Telemetry [baseline] (7.349 ms) : 0, 7349
Telemetry [candidate] (8.784 ms) : 0, 8784
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.075 s) : 0, 1074740
Total [baseline] (10.418 s) : 0, 10417871
Agent [candidate] (1.077 s) : 0, 1077285
Total [candidate] (10.412 s) : 0, 10412362
section appsec
Agent [baseline] (1.192 s) : 0, 1191769
Total [baseline] (10.579 s) : 0, 10578721
Agent [candidate] (1.197 s) : 0, 1197234
Total [candidate] (10.613 s) : 0, 10613052
section iast
Agent [baseline] (1.195 s) : 0, 1195362
Total [baseline] (10.825 s) : 0, 10824843
Agent [candidate] (1.209 s) : 0, 1208726
Total [candidate] (10.936 s) : 0, 10936302
section profiling
Agent [baseline] (1.276 s) : 0, 1276318
Total [baseline] (10.701 s) : 0, 10701398
Agent [candidate] (1.275 s) : 0, 1275099
Total [candidate] (10.72 s) : 0, 10720451
gantt
title petclinic - break down per module: candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (672.854 ms) : 0, 672854
BytebuddyAgent [candidate] (673.969 ms) : 0, 673969
GlobalTracer [baseline] (309.712 ms) : 0, 309712
GlobalTracer [candidate] (310.761 ms) : 0, 310761
AppSec [baseline] (49.581 ms) : 0, 49581
AppSec [candidate] (49.731 ms) : 0, 49731
Remote Config [baseline] (657.875 µs) : 0, 658
Remote Config [candidate] (662.654 µs) : 0, 663
Telemetry [baseline] (7.539 ms) : 0, 7539
Telemetry [candidate] (7.65 ms) : 0, 7650
section appsec
BytebuddyAgent [baseline] (692.379 ms) : 0, 692379
BytebuddyAgent [candidate] (695.199 ms) : 0, 695199
GlobalTracer [baseline] (289.839 ms) : 0, 289839
GlobalTracer [candidate] (292.164 ms) : 0, 292164
AppSec [baseline] (149.217 ms) : 0, 149217
AppSec [candidate] (149.346 ms) : 0, 149346
IAST [baseline] (18.678 ms) : 0, 18678
IAST [candidate] (18.814 ms) : 0, 18814
Remote Config [baseline] (599.587 µs) : 0, 600
Remote Config [candidate] (599.949 µs) : 0, 600
Telemetry [baseline] (6.746 ms) : 0, 6746
Telemetry [candidate] (6.788 ms) : 0, 6788
section iast
BytebuddyAgent [baseline] (792.363 ms) : 0, 792363
BytebuddyAgent [candidate] (800.741 ms) : 0, 800741
GlobalTracer [baseline] (287.227 ms) : 0, 287227
GlobalTracer [candidate] (290.827 ms) : 0, 290827
AppSec [baseline] (50.088 ms) : 0, 50088
AppSec [candidate] (49.883 ms) : 0, 49883
IAST [baseline] (22.71 ms) : 0, 22710
IAST [candidate] (23.925 ms) : 0, 23925
Remote Config [baseline] (563.217 µs) : 0, 563
Remote Config [candidate] (594.719 µs) : 0, 595
Telemetry [baseline] (8.09 ms) : 0, 8090
Telemetry [candidate] (8.181 ms) : 0, 8181
section profiling
BytebuddyAgent [baseline] (682.173 ms) : 0, 682173
BytebuddyAgent [candidate] (681.562 ms) : 0, 681562
GlobalTracer [baseline] (382.491 ms) : 0, 382491
GlobalTracer [candidate] (382.536 ms) : 0, 382536
AppSec [baseline] (50.551 ms) : 0, 50551
AppSec [candidate] (50.537 ms) : 0, 50537
Remote Config [baseline] (717.969 µs) : 0, 718
Remote Config [candidate] (714.687 µs) : 0, 715
Telemetry [baseline] (7.568 ms) : 0, 7568
Telemetry [candidate] (7.557 ms) : 0, 7557
ProfilingAgent [baseline] (96.073 ms) : 0, 96073
ProfilingAgent [candidate] (95.623 ms) : 0, 95623
Profiling [baseline] (96.097 ms) : 0, 96097
Profiling [candidate] (95.647 ms) : 0, 95647
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section baseline
no_agent (370.738 µs) : 351, 390
. : milestone, 371,
iast (474.554 µs) : 453, 496
. : milestone, 475,
iast_FULL (546.399 µs) : 525, 567
. : milestone, 546,
iast_GLOBAL (504.206 µs) : 482, 526
. : milestone, 504,
iast_HARDCODED_SECRET_DISABLED (477.881 µs) : 457, 499
. : milestone, 478,
iast_INACTIVE (445.238 µs) : 425, 466
. : milestone, 445,
iast_TELEMETRY_OFF (476.601 µs) : 456, 498
. : milestone, 477,
tracing (449.821 µs) : 429, 471
. : milestone, 450,
section candidate
no_agent (374.091 µs) : 355, 393
. : milestone, 374,
iast (472.639 µs) : 452, 493
. : milestone, 473,
iast_FULL (540.531 µs) : 520, 561
. : milestone, 541,
iast_GLOBAL (499.83 µs) : 479, 521
. : milestone, 500,
iast_HARDCODED_SECRET_DISABLED (470.404 µs) : 450, 491
. : milestone, 470,
iast_INACTIVE (460.559 µs) : 440, 482
. : milestone, 461,
iast_TELEMETRY_OFF (473.722 µs) : 453, 494
. : milestone, 474,
tracing (447.139 µs) : 425, 469
. : milestone, 447,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~023f8156c1, baseline=1.32.0-SNAPSHOT~a18c05c5cf
dateFormat X
axisFormat %s
section baseline
no_agent (1.35 ms) : 1330, 1370
. : milestone, 1350,
appsec (1.735 ms) : 1712, 1759
. : milestone, 1735,
appsec_no_iast (1.73 ms) : 1706, 1754
. : milestone, 1730,
iast (1.512 ms) : 1489, 1536
. : milestone, 1512,
profiling (1.5 ms) : 1475, 1524
. : milestone, 1500,
tracing (1.478 ms) : 1454, 1503
. : milestone, 1478,
section candidate
no_agent (1.335 ms) : 1314, 1355
. : milestone, 1335,
appsec (1.722 ms) : 1698, 1747
. : milestone, 1722,
appsec_no_iast (1.719 ms) : 1694, 1745
. : milestone, 1719,
iast (1.504 ms) : 1481, 1527
. : milestone, 1504,
profiling (1.498 ms) : 1474, 1522
. : milestone, 1498,
tracing (1.49 ms) : 1466, 1514
. : milestone, 1490,
|
ygree
force-pushed
the
ygree/fix-entity-id-detection-path-joining
branch
from
April 1, 2024 23:02
1f3b264 to
023f815
Compare
ygree
enabled auto-merge (squash)
April 1, 2024 23:03
bm1549
approved these changes
Apr 1, 2024
bm1549
left a comment
Contributor
There was a problem hiding this comment.
Appreciate the extra test here 💪
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Fixes Datadog-Entity-ID detection by joining paths properly.
Motivation
It used Path.resolve that clears path when joined with '/'.
Additional Notes
Jira ticket: APMJAVA-1283
This is continuation of previously merged PR: #6858