-
Notifications
You must be signed in to change notification settings - Fork 292
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
Fix baggages mapping configuration when only keys are provided #7972
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 52 metrics, 11 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.091 s) : 0, 1091021
Total [baseline] (8.596 s) : 0, 8596238
Agent [candidate] (1.084 s) : 0, 1084306
Total [candidate] (8.58 s) : 0, 8580106
section iast
Agent [baseline] (1.214 s) : 0, 1214345
Total [baseline] (9.143 s) : 0, 9143178
Agent [candidate] (1.209 s) : 0, 1208941
Total [candidate] (9.181 s) : 0, 9181191
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.207 s) : 0, 1206690
Total [baseline] (9.116 s) : 0, 9116310
Agent [candidate] (1.21 s) : 0, 1209617
Total [candidate] (9.098 s) : 0, 9098350
section iast_TELEMETRY_OFF
Agent [baseline] (1.212 s) : 0, 1212164
Total [baseline] (9.135 s) : 0, 9135462
Agent [candidate] (1.215 s) : 0, 1214723
Total [candidate] (9.147 s) : 0, 9146665
gantt
title insecure-bank - break down per module: candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (693.278 ms) : 0, 693278
BytebuddyAgent [candidate] (690.763 ms) : 0, 690763
GlobalTracer [baseline] (317.499 ms) : 0, 317499
GlobalTracer [candidate] (314.752 ms) : 0, 314752
AppSec [baseline] (54.854 ms) : 0, 54854
AppSec [candidate] (54.326 ms) : 0, 54326
Remote Config [baseline] (713.983 µs) : 0, 714
Remote Config [candidate] (678.452 µs) : 0, 678
Telemetry [baseline] (10.773 ms) : 0, 10773
Telemetry [candidate] (9.957 ms) : 0, 9957
section iast
BytebuddyAgent [baseline] (809.225 ms) : 0, 809225
BytebuddyAgent [candidate] (803.502 ms) : 0, 803502
GlobalTracer [baseline] (304.886 ms) : 0, 304886
GlobalTracer [candidate] (304.687 ms) : 0, 304687
AppSec [baseline] (56.851 ms) : 0, 56851
AppSec [candidate] (57.312 ms) : 0, 57312
IAST [baseline] (21.476 ms) : 0, 21476
IAST [candidate] (21.483 ms) : 0, 21483
Remote Config [baseline] (618.015 µs) : 0, 618
Remote Config [candidate] (601.314 µs) : 0, 601
Telemetry [baseline] (7.436 ms) : 0, 7436
Telemetry [candidate] (7.521 ms) : 0, 7521
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (802.208 ms) : 0, 802208
BytebuddyAgent [candidate] (804.779 ms) : 0, 804779
GlobalTracer [baseline] (304.22 ms) : 0, 304220
GlobalTracer [candidate] (304.548 ms) : 0, 304548
AppSec [baseline] (56.101 ms) : 0, 56101
AppSec [candidate] (57.04 ms) : 0, 57040
IAST [baseline] (22.361 ms) : 0, 22361
IAST [candidate] (21.382 ms) : 0, 21382
Remote Config [baseline] (622.31 µs) : 0, 622
Remote Config [candidate] (622.44 µs) : 0, 622
Telemetry [baseline] (7.443 ms) : 0, 7443
Telemetry [candidate] (7.441 ms) : 0, 7441
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (805.853 ms) : 0, 805853
BytebuddyAgent [candidate] (807.197 ms) : 0, 807197
GlobalTracer [baseline] (305.88 ms) : 0, 305880
GlobalTracer [candidate] (306.737 ms) : 0, 306737
AppSec [baseline] (58.129 ms) : 0, 58129
AppSec [candidate] (57.364 ms) : 0, 57364
IAST [baseline] (20.388 ms) : 0, 20388
IAST [candidate] (21.475 ms) : 0, 21475
Remote Config [baseline] (628.774 µs) : 0, 629
Remote Config [candidate] (627.095 µs) : 0, 627
Telemetry [baseline] (7.425 ms) : 0, 7425
Telemetry [candidate] (7.439 ms) : 0, 7439
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.086 s) : 0, 1086494
Total [baseline] (10.411 s) : 0, 10411186
Agent [candidate] (1.084 s) : 0, 1084399
Total [candidate] (10.426 s) : 0, 10425873
section appsec
Agent [baseline] (1.216 s) : 0, 1216196
Total [baseline] (10.679 s) : 0, 10679098
Agent [candidate] (1.216 s) : 0, 1215704
Total [candidate] (10.659 s) : 0, 10658674
section iast
Agent [baseline] (1.209 s) : 0, 1209382
Total [baseline] (10.854 s) : 0, 10853630
Agent [candidate] (1.211 s) : 0, 1210634
Total [candidate] (10.851 s) : 0, 10850990
section profiling
Agent [baseline] (1.283 s) : 0, 1282935
Total [baseline] (10.858 s) : 0, 10857648
Agent [candidate] (1.285 s) : 0, 1285100
Total [candidate] (10.832 s) : 0, 10831772
gantt
title petclinic - break down per module: candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (691.712 ms) : 0, 691712
BytebuddyAgent [candidate] (687.63 ms) : 0, 687630
GlobalTracer [baseline] (316.826 ms) : 0, 316826
GlobalTracer [candidate] (315.715 ms) : 0, 315715
AppSec [baseline] (54.765 ms) : 0, 54765
AppSec [candidate] (54.454 ms) : 0, 54454
Remote Config [baseline] (699.931 µs) : 0, 700
Remote Config [candidate] (714.932 µs) : 0, 715
Telemetry [baseline] (8.631 ms) : 0, 8631
Telemetry [candidate] (12.077 ms) : 0, 12077
section appsec
BytebuddyAgent [baseline] (704.617 ms) : 0, 704617
BytebuddyAgent [candidate] (704.213 ms) : 0, 704213
GlobalTracer [baseline] (312.843 ms) : 0, 312843
GlobalTracer [candidate] (312.945 ms) : 0, 312945
AppSec [baseline] (165.309 ms) : 0, 165309
AppSec [candidate] (166.212 ms) : 0, 166212
IAST [baseline] (21.667 ms) : 0, 21667
IAST [candidate] (20.315 ms) : 0, 20315
Remote Config [baseline] (643.732 µs) : 0, 644
Remote Config [candidate] (640.864 µs) : 0, 641
Telemetry [baseline] (8.182 ms) : 0, 8182
Telemetry [candidate] (7.801 ms) : 0, 7801
section iast
BytebuddyAgent [baseline] (804.099 ms) : 0, 804099
BytebuddyAgent [candidate] (805.167 ms) : 0, 805167
GlobalTracer [baseline] (305.069 ms) : 0, 305069
GlobalTracer [candidate] (305.158 ms) : 0, 305158
AppSec [baseline] (57.669 ms) : 0, 57669
AppSec [candidate] (56.759 ms) : 0, 56759
IAST [baseline] (20.658 ms) : 0, 20658
IAST [candidate] (21.607 ms) : 0, 21607
Remote Config [baseline] (616.483 µs) : 0, 616
Remote Config [candidate] (628.089 µs) : 0, 628
Telemetry [baseline] (7.481 ms) : 0, 7481
Telemetry [candidate] (7.518 ms) : 0, 7518
section profiling
BytebuddyAgent [baseline] (682.926 ms) : 0, 682926
BytebuddyAgent [candidate] (682.939 ms) : 0, 682939
GlobalTracer [baseline] (399.383 ms) : 0, 399383
GlobalTracer [candidate] (401.639 ms) : 0, 401639
AppSec [baseline] (54.967 ms) : 0, 54967
AppSec [candidate] (55.144 ms) : 0, 55144
Remote Config [baseline] (674.922 µs) : 0, 675
Remote Config [candidate] (678.664 µs) : 0, 679
Telemetry [baseline] (12.97 ms) : 0, 12970
Telemetry [candidate] (10.754 ms) : 0, 10754
ProfilingAgent [baseline] (92.866 ms) : 0, 92866
ProfilingAgent [candidate] (94.889 ms) : 0, 94889
Profiling [baseline] (92.89 ms) : 0, 92890
Profiling [candidate] (94.912 ms) : 0, 94912
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.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section baseline
no_agent (380.73 µs) : 361, 401
. : milestone, 381,
iast (486.991 µs) : 466, 508
. : milestone, 487,
iast_FULL (649.378 µs) : 628, 671
. : milestone, 649,
iast_GLOBAL (523.855 µs) : 502, 545
. : milestone, 524,
iast_HARDCODED_SECRET_DISABLED (495.039 µs) : 473, 517
. : milestone, 495,
iast_INACTIVE (449.889 µs) : 429, 471
. : milestone, 450,
iast_TELEMETRY_OFF (492.234 µs) : 470, 514
. : milestone, 492,
tracing (451.228 µs) : 429, 473
. : milestone, 451,
section candidate
no_agent (378.15 µs) : 358, 398
. : milestone, 378,
iast (494.647 µs) : 473, 516
. : milestone, 495,
iast_FULL (646.947 µs) : 626, 668
. : milestone, 647,
iast_GLOBAL (513.512 µs) : 492, 536
. : milestone, 514,
iast_HARDCODED_SECRET_DISABLED (487.585 µs) : 467, 509
. : milestone, 488,
iast_INACTIVE (449.782 µs) : 429, 471
. : milestone, 450,
iast_TELEMETRY_OFF (480.411 µs) : 459, 502
. : milestone, 480,
tracing (452.247 µs) : 431, 473
. : milestone, 452,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section baseline
no_agent (1.368 ms) : 1347, 1388
. : milestone, 1368,
appsec (1.736 ms) : 1711, 1760
. : milestone, 1736,
appsec_no_iast (1.731 ms) : 1706, 1756
. : milestone, 1731,
iast (1.499 ms) : 1476, 1521
. : milestone, 1499,
profiling (1.507 ms) : 1483, 1531
. : milestone, 1507,
tracing (1.478 ms) : 1454, 1503
. : milestone, 1478,
section candidate
no_agent (1.367 ms) : 1347, 1386
. : milestone, 1367,
appsec (1.747 ms) : 1722, 1772
. : milestone, 1747,
appsec_no_iast (1.747 ms) : 1723, 1772
. : milestone, 1747,
iast (1.493 ms) : 1471, 1515
. : milestone, 1493,
profiling (1.524 ms) : 1500, 1548
. : milestone, 1524,
tracing (1.479 ms) : 1454, 1505
. : milestone, 1479,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section baseline
no_agent (15.104 s) : 15104000, 15104000
. : milestone, 15104000,
appsec (15.452 s) : 15452000, 15452000
. : milestone, 15452000,
iast (18.425 s) : 18425000, 18425000
. : milestone, 18425000,
iast_GLOBAL (18.492 s) : 18492000, 18492000
. : milestone, 18492000,
profiling (14.872 s) : 14872000, 14872000
. : milestone, 14872000,
tracing (15.205 s) : 15205000, 15205000
. : milestone, 15205000,
section candidate
no_agent (15.529 s) : 15529000, 15529000
. : milestone, 15529000,
appsec (15.061 s) : 15061000, 15061000
. : milestone, 15061000,
iast (19.066 s) : 19066000, 19066000
. : milestone, 19066000,
iast_GLOBAL (18.283 s) : 18283000, 18283000
. : milestone, 18283000,
profiling (15.622 s) : 15622000, 15622000
. : milestone, 15622000,
tracing (14.939 s) : 14939000, 14939000
. : milestone, 14939000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~ad038d2876, baseline=1.43.0-SNAPSHOT~6181783bd1
dateFormat X
axisFormat %s
section baseline
no_agent (1.458 ms) : 1447, 1470
. : milestone, 1458,
appsec (2.33 ms) : 2288, 2371
. : milestone, 2330,
iast (2.068 ms) : 2015, 2120
. : milestone, 2068,
iast_GLOBAL (2.114 ms) : 2061, 2167
. : milestone, 2114,
profiling (1.924 ms) : 1883, 1965
. : milestone, 1924,
tracing (1.914 ms) : 1873, 1954
. : milestone, 1914,
section candidate
no_agent (1.466 ms) : 1455, 1478
. : milestone, 1466,
appsec (2.317 ms) : 2276, 2358
. : milestone, 2317,
iast (2.073 ms) : 2021, 2125
. : milestone, 2073,
iast_GLOBAL (2.11 ms) : 2057, 2162
. : milestone, 2110,
profiling (1.931 ms) : 1889, 1974
. : milestone, 1931,
tracing (1.919 ms) : 1879, 1960
. : milestone, 1919,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
What Does This Do
Fix baggages mapping when only keys are provided.
Before that, setting a baggage mapping with key only was not taken into tracer configuration: for example, setting
dd.trace.header.baggage=thisisabaggage
leads tobaggageMapping={}
.Workaround without this fix: use
dd.trace.header.baggage=thisisabaggage:thisisabaggage
instead ofdd.trace.header.baggage=thisisabaggage
Motivation
Run into this while working on APMS-13920.
Fix how this is supposed to work according to our specification/documentation.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any useful labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issue