-
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
Remove version
metadata for non DD_SERVICE
spans
#7661
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 petclinicgantt
title petclinic - global startup overhead: candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.069 s) : 0, 1068617
Total [baseline] (10.384 s) : 0, 10384041
Agent [candidate] (1.069 s) : 0, 1069340
Total [candidate] (10.381 s) : 0, 10380895
section appsec
Agent [baseline] (1.201 s) : 0, 1201269
Total [baseline] (10.557 s) : 0, 10556983
Agent [candidate] (1.213 s) : 0, 1212989
Total [candidate] (10.621 s) : 0, 10621093
section iast
Agent [baseline] (1.204 s) : 0, 1204337
Total [baseline] (10.859 s) : 0, 10859407
Agent [candidate] (1.197 s) : 0, 1197254
Total [candidate] (10.849 s) : 0, 10848787
section profiling
Agent [baseline] (1.269 s) : 0, 1268508
Total [baseline] (10.584 s) : 0, 10583524
Agent [candidate] (1.279 s) : 0, 1279094
Total [candidate] (10.669 s) : 0, 10669150
gantt
title petclinic - break down per module: candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (681.912 ms) : 0, 681912
BytebuddyAgent [candidate] (682.344 ms) : 0, 682344
GlobalTracer [baseline] (310.982 ms) : 0, 310982
GlobalTracer [candidate] (311.299 ms) : 0, 311299
AppSec [baseline] (53.845 ms) : 0, 53845
AppSec [candidate] (53.664 ms) : 0, 53664
Remote Config [baseline] (706.998 µs) : 0, 707
Remote Config [candidate] (663.829 µs) : 0, 664
Telemetry [baseline] (7.519 ms) : 0, 7519
Telemetry [candidate] (7.63 ms) : 0, 7630
section appsec
BytebuddyAgent [baseline] (697.922 ms) : 0, 697922
BytebuddyAgent [candidate] (704.365 ms) : 0, 704365
GlobalTracer [baseline] (307.605 ms) : 0, 307605
GlobalTracer [candidate] (310.46 ms) : 0, 310460
AppSec [baseline] (163.323 ms) : 0, 163323
AppSec [candidate] (164.802 ms) : 0, 164802
IAST [baseline] (20.067 ms) : 0, 20067
IAST [candidate] (21.459 ms) : 0, 21459
Remote Config [baseline] (630.672 µs) : 0, 631
Remote Config [candidate] (640.057 µs) : 0, 640
Telemetry [baseline] (8.102 ms) : 0, 8102
Telemetry [candidate] (8.161 ms) : 0, 8161
section iast
BytebuddyAgent [baseline] (802.78 ms) : 0, 802780
BytebuddyAgent [candidate] (797.451 ms) : 0, 797451
GlobalTracer [baseline] (301.399 ms) : 0, 301399
GlobalTracer [candidate] (299.77 ms) : 0, 299770
AppSec [baseline] (54.856 ms) : 0, 54856
AppSec [candidate] (54.08 ms) : 0, 54080
IAST [baseline] (22.991 ms) : 0, 22991
IAST [candidate] (24.61 ms) : 0, 24610
Remote Config [baseline] (606.255 µs) : 0, 606
Remote Config [candidate] (595.36 µs) : 0, 595
Telemetry [baseline] (7.931 ms) : 0, 7931
Telemetry [candidate] (7.06 ms) : 0, 7060
section profiling
BytebuddyAgent [baseline] (676.669 ms) : 0, 676669
BytebuddyAgent [candidate] (683.857 ms) : 0, 683857
GlobalTracer [baseline] (393.485 ms) : 0, 393485
GlobalTracer [candidate] (395.641 ms) : 0, 395641
AppSec [baseline] (54.676 ms) : 0, 54676
AppSec [candidate] (55.108 ms) : 0, 55108
Remote Config [baseline] (660.378 µs) : 0, 660
Remote Config [candidate] (656.377 µs) : 0, 656
Telemetry [baseline] (7.467 ms) : 0, 7467
Telemetry [candidate] (7.491 ms) : 0, 7491
ProfilingAgent [baseline] (96.878 ms) : 0, 96878
ProfilingAgent [candidate] (97.316 ms) : 0, 97316
Profiling [baseline] (96.902 ms) : 0, 96902
Profiling [candidate] (97.34 ms) : 0, 97340
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.081 s) : 0, 1080689
Total [baseline] (8.545 s) : 0, 8545301
Agent [candidate] (1.07 s) : 0, 1070350
Total [candidate] (8.564 s) : 0, 8564456
section iast
Agent [baseline] (1.197 s) : 0, 1196918
Total [baseline] (9.12 s) : 0, 9119788
Agent [candidate] (1.197 s) : 0, 1197103
Total [candidate] (9.084 s) : 0, 9084444
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.196 s) : 0, 1196279
Total [baseline] (9.089 s) : 0, 9088617
Agent [candidate] (1.204 s) : 0, 1203775
Total [candidate] (9.069 s) : 0, 9069096
section iast_TELEMETRY_OFF
Agent [baseline] (1.191 s) : 0, 1191197
Total [baseline] (9.083 s) : 0, 9082760
Agent [candidate] (1.198 s) : 0, 1197877
Total [candidate] (9.056 s) : 0, 9055974
gantt
title insecure-bank - break down per module: candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (690.328 ms) : 0, 690328
BytebuddyAgent [candidate] (683.223 ms) : 0, 683223
GlobalTracer [baseline] (313.716 ms) : 0, 313716
GlobalTracer [candidate] (311.345 ms) : 0, 311345
AppSec [baseline] (54.365 ms) : 0, 54365
AppSec [candidate] (53.82 ms) : 0, 53820
Remote Config [baseline] (670.232 µs) : 0, 670
Remote Config [candidate] (649.964 µs) : 0, 650
Telemetry [baseline] (7.757 ms) : 0, 7757
Telemetry [candidate] (7.601 ms) : 0, 7601
section iast
BytebuddyAgent [baseline] (795.479 ms) : 0, 795479
BytebuddyAgent [candidate] (797.65 ms) : 0, 797650
GlobalTracer [baseline] (301.257 ms) : 0, 301257
GlobalTracer [candidate] (299.893 ms) : 0, 299893
AppSec [baseline] (55.633 ms) : 0, 55633
AppSec [candidate] (55.492 ms) : 0, 55492
IAST [baseline] (23.185 ms) : 0, 23185
IAST [candidate] (22.678 ms) : 0, 22678
Remote Config [baseline] (601.517 µs) : 0, 602
Remote Config [candidate] (602.124 µs) : 0, 602
Telemetry [baseline] (7.077 ms) : 0, 7077
Telemetry [candidate] (7.041 ms) : 0, 7041
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (797.103 ms) : 0, 797103
BytebuddyAgent [candidate] (802.927 ms) : 0, 802927
GlobalTracer [baseline] (299.355 ms) : 0, 299355
GlobalTracer [candidate] (301.491 ms) : 0, 301491
AppSec [baseline] (56.248 ms) : 0, 56248
AppSec [candidate] (56.005 ms) : 0, 56005
IAST [baseline] (22.091 ms) : 0, 22091
IAST [candidate] (21.857 ms) : 0, 21857
Remote Config [baseline] (606.172 µs) : 0, 606
Remote Config [candidate] (608.336 µs) : 0, 608
Telemetry [baseline] (7.149 ms) : 0, 7149
Telemetry [candidate] (7.073 ms) : 0, 7073
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (793.446 ms) : 0, 793446
BytebuddyAgent [candidate] (797.956 ms) : 0, 797956
GlobalTracer [baseline] (299.168 ms) : 0, 299168
GlobalTracer [candidate] (300.587 ms) : 0, 300587
AppSec [baseline] (55.188 ms) : 0, 55188
AppSec [candidate] (55.619 ms) : 0, 55619
IAST [baseline] (22.179 ms) : 0, 22179
IAST [candidate] (22.394 ms) : 0, 22394
Remote Config [baseline] (598.68 µs) : 0, 599
Remote Config [candidate] (602.178 µs) : 0, 602
Telemetry [baseline] (6.895 ms) : 0, 6895
Telemetry [candidate] (6.932 ms) : 0, 6932
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section baseline
no_agent (1.35 ms) : 1329, 1370
. : milestone, 1350,
appsec (1.728 ms) : 1703, 1754
. : milestone, 1728,
appsec_no_iast (1.736 ms) : 1712, 1760
. : milestone, 1736,
iast (1.497 ms) : 1474, 1520
. : milestone, 1497,
profiling (1.491 ms) : 1468, 1514
. : milestone, 1491,
tracing (1.492 ms) : 1465, 1520
. : milestone, 1492,
section candidate
no_agent (1.346 ms) : 1328, 1365
. : milestone, 1346,
appsec (1.725 ms) : 1700, 1750
. : milestone, 1725,
appsec_no_iast (1.735 ms) : 1711, 1759
. : milestone, 1735,
iast (1.492 ms) : 1469, 1514
. : milestone, 1492,
profiling (1.486 ms) : 1461, 1510
. : milestone, 1486,
tracing (1.481 ms) : 1457, 1505
. : milestone, 1481,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section baseline
no_agent (372.847 µs) : 354, 392
. : milestone, 373,
iast (491.122 µs) : 470, 512
. : milestone, 491,
iast_FULL (561.308 µs) : 540, 583
. : milestone, 561,
iast_GLOBAL (514.941 µs) : 494, 536
. : milestone, 515,
iast_HARDCODED_SECRET_DISABLED (490.548 µs) : 469, 512
. : milestone, 491,
iast_INACTIVE (460.646 µs) : 439, 482
. : milestone, 461,
iast_TELEMETRY_OFF (478.939 µs) : 458, 500
. : milestone, 479,
tracing (455.547 µs) : 435, 477
. : milestone, 456,
section candidate
no_agent (373.333 µs) : 353, 393
. : milestone, 373,
iast (489.298 µs) : 468, 511
. : milestone, 489,
iast_FULL (560.914 µs) : 540, 582
. : milestone, 561,
iast_GLOBAL (513.448 µs) : 492, 535
. : milestone, 513,
iast_HARDCODED_SECRET_DISABLED (491.163 µs) : 470, 513
. : milestone, 491,
iast_INACTIVE (454.507 µs) : 433, 476
. : milestone, 455,
iast_TELEMETRY_OFF (474.06 µs) : 453, 495
. : milestone, 474,
tracing (454.268 µs) : 433, 476
. : milestone, 454,
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 tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section baseline
no_agent (1.463 ms) : 1452, 1475
. : milestone, 1463,
appsec (2.302 ms) : 2262, 2342
. : milestone, 2302,
iast (2.059 ms) : 2008, 2110
. : milestone, 2059,
iast_GLOBAL (2.099 ms) : 2047, 2150
. : milestone, 2099,
profiling (1.926 ms) : 1886, 1967
. : milestone, 1926,
tracing (1.903 ms) : 1864, 1942
. : milestone, 1903,
section candidate
no_agent (1.458 ms) : 1446, 1469
. : milestone, 1458,
appsec (2.304 ms) : 2263, 2344
. : milestone, 2304,
iast (2.062 ms) : 2011, 2114
. : milestone, 2062,
iast_GLOBAL (2.1 ms) : 2049, 2152
. : milestone, 2100,
profiling (1.919 ms) : 1878, 1960
. : milestone, 1919,
tracing (1.901 ms) : 1862, 1940
. : milestone, 1901,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.41.0-SNAPSHOT~cc28d89c23, baseline=1.41.0-SNAPSHOT~14a45ea1c3
dateFormat X
axisFormat %s
section baseline
no_agent (15.452 s) : 15452000, 15452000
. : milestone, 15452000,
appsec (15.208 s) : 15208000, 15208000
. : milestone, 15208000,
iast (18.878 s) : 18878000, 18878000
. : milestone, 18878000,
iast_GLOBAL (18.084 s) : 18084000, 18084000
. : milestone, 18084000,
profiling (15.418 s) : 15418000, 15418000
. : milestone, 15418000,
tracing (15.005 s) : 15005000, 15005000
. : milestone, 15005000,
section candidate
no_agent (15.141 s) : 15141000, 15141000
. : milestone, 15141000,
appsec (15.034 s) : 15034000, 15034000
. : milestone, 15034000,
iast (18.896 s) : 18896000, 18896000
. : milestone, 18896000,
iast_GLOBAL (17.961 s) : 17961000, 17961000
. : milestone, 17961000,
profiling (15.246 s) : 15246000, 15246000
. : milestone, 15246000,
tracing (15.34 s) : 15340000, 15340000
. : milestone, 15340000,
|
Can you include a unit test for this (or amend an existing one)? It will prove that the version tag is behaving as we expect, plus it will demonstrate the behavior to any other readers in the future. |
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.
Minor typo otherwise LGTM
@@ -544,6 +545,32 @@ class CoreTracerTest extends DDCoreSpecification { | |||
"some" | "some" | |||
} | |||
|
|||
def "test dd_version exists iff service == dd_service"() { |
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.
def "test dd_version exists iff service == dd_service"() { | |
def "test dd_version exists only if service == dd_service"() { |
What Does This Do
Remove the
version
tag from span metadata when the span'sservice
tag is not the same as theDD_SERVICE
set from the configuration.Motivation
Our goal is to make the implementation of configuration variables consistent for all languages as part of the config consistency effort listed in the following RFC. The expected behavior for the
DD_VERSION
config is to apply the value to all spans iff theservice
value of the span isDD_SERVICE
.Additional Notes
Testing for the functionality of this feature is done in the system-tests repository.
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: APMAPI-475