-
Notifications
You must be signed in to change notification settings - Fork 293
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
Add new parser for DD_TAGS
and prioritizing DD_SERVICE
#8296
Open
mhlidd
wants to merge
12
commits into
master
Choose a base branch
from
mhlidd/dd_tags
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+127
−6
Conversation
This file contains 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
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 53 metrics, 10 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.048 s) : 0, 1048363
Total [baseline] (10.434 s) : 0, 10434237
Agent [candidate] (1.042 s) : 0, 1041925
Total [candidate] (10.538 s) : 0, 10538479
section appsec
Agent [baseline] (1.181 s) : 0, 1180815
Total [baseline] (10.783 s) : 0, 10782710
Agent [candidate] (1.183 s) : 0, 1182869
Total [candidate] (10.82 s) : 0, 10820370
section iast
Agent [baseline] (1.166 s) : 0, 1166215
Total [baseline] (10.977 s) : 0, 10977399
Agent [candidate] (1.166 s) : 0, 1166496
Total [candidate] (10.945 s) : 0, 10944880
section profiling
Agent [baseline] (1.258 s) : 0, 1258199
Total [baseline] (10.929 s) : 0, 10929110
Agent [candidate] (1.259 s) : 0, 1258636
Total [candidate] (10.852 s) : 0, 10851522
gantt
title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (720.061 ms) : 0, 720061
BytebuddyAgent [candidate] (716.329 ms) : 0, 716329
GlobalTracer [baseline] (242.381 ms) : 0, 242381
GlobalTracer [candidate] (240.462 ms) : 0, 240462
AppSec [baseline] (55.993 ms) : 0, 55993
AppSec [candidate] (55.526 ms) : 0, 55526
Remote Config [baseline] (719.024 µs) : 0, 719
Remote Config [candidate] (714.05 µs) : 0, 714
Telemetry [baseline] (13.742 ms) : 0, 13742
Telemetry [candidate] (13.633 ms) : 0, 13633
section appsec
BytebuddyAgent [baseline] (732.978 ms) : 0, 732978
BytebuddyAgent [candidate] (733.659 ms) : 0, 733659
GlobalTracer [baseline] (237.524 ms) : 0, 237524
GlobalTracer [candidate] (237.974 ms) : 0, 237974
IAST [baseline] (21.562 ms) : 0, 21562
IAST [candidate] (21.607 ms) : 0, 21607
AppSec [baseline] (175.233 ms) : 0, 175233
AppSec [candidate] (176.292 ms) : 0, 176292
Remote Config [baseline] (663.051 µs) : 0, 663
Remote Config [candidate] (654.411 µs) : 0, 654
Telemetry [baseline] (8.35 ms) : 0, 8350
Telemetry [candidate] (8.292 ms) : 0, 8292
section iast
BytebuddyAgent [baseline] (831.533 ms) : 0, 831533
BytebuddyAgent [candidate] (832.502 ms) : 0, 832502
GlobalTracer [baseline] (230.519 ms) : 0, 230519
GlobalTracer [candidate] (230.411 ms) : 0, 230411
IAST [baseline] (23.881 ms) : 0, 23881
IAST [candidate] (26.128 ms) : 0, 26128
AppSec [baseline] (55.596 ms) : 0, 55596
AppSec [candidate] (52.842 ms) : 0, 52842
Remote Config [baseline] (612.745 µs) : 0, 613
Remote Config [candidate] (613.746 µs) : 0, 614
Telemetry [baseline] (8.783 ms) : 0, 8783
Telemetry [candidate] (8.713 ms) : 0, 8713
section profiling
BytebuddyAgent [baseline] (704.012 ms) : 0, 704012
BytebuddyAgent [candidate] (706.331 ms) : 0, 706331
GlobalTracer [baseline] (351.08 ms) : 0, 351080
GlobalTracer [candidate] (351.172 ms) : 0, 351172
AppSec [baseline] (55.194 ms) : 0, 55194
AppSec [candidate] (54.032 ms) : 0, 54032
Remote Config [baseline] (702.52 µs) : 0, 703
Remote Config [candidate] (696.43 µs) : 0, 696
Telemetry [baseline] (8.95 ms) : 0, 8950
Telemetry [candidate] (8.851 ms) : 0, 8851
ProfilingAgent [baseline] (96.122 ms) : 0, 96122
ProfilingAgent [candidate] (95.222 ms) : 0, 95222
Profiling [baseline] (96.146 ms) : 0, 96146
Profiling [candidate] (95.246 ms) : 0, 95246
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.04 s) : 0, 1039543
Total [baseline] (8.66 s) : 0, 8659959
Agent [candidate] (1.036 s) : 0, 1036253
Total [candidate] (8.607 s) : 0, 8607001
section iast
Agent [baseline] (1.176 s) : 0, 1175913
Total [baseline] (9.246 s) : 0, 9245598
Agent [candidate] (1.165 s) : 0, 1165069
Total [candidate] (9.197 s) : 0, 9197057
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.167 s) : 0, 1167144
Total [baseline] (9.218 s) : 0, 9218056
Agent [candidate] (1.178 s) : 0, 1177903
Total [candidate] (9.196 s) : 0, 9196278
section iast_TELEMETRY_OFF
Agent [baseline] (1.163 s) : 0, 1162683
Total [baseline] (9.236 s) : 0, 9235699
Agent [candidate] (1.162 s) : 0, 1162220
Total [candidate] (9.227 s) : 0, 9227493
gantt
title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (717.106 ms) : 0, 717106
BytebuddyAgent [candidate] (712.205 ms) : 0, 712205
GlobalTracer [baseline] (240.59 ms) : 0, 240590
GlobalTracer [candidate] (239.329 ms) : 0, 239329
AppSec [baseline] (55.626 ms) : 0, 55626
AppSec [candidate] (55.941 ms) : 0, 55941
Remote Config [baseline] (711.46 µs) : 0, 711
Remote Config [candidate] (708.334 µs) : 0, 708
Telemetry [baseline] (10.11 ms) : 0, 10110
Telemetry [candidate] (12.873 ms) : 0, 12873
section iast
BytebuddyAgent [baseline] (838.812 ms) : 0, 838812
BytebuddyAgent [candidate] (830.851 ms) : 0, 830851
GlobalTracer [baseline] (232.225 ms) : 0, 232225
GlobalTracer [candidate] (229.912 ms) : 0, 229912
IAST [baseline] (26.577 ms) : 0, 26577
IAST [candidate] (24.069 ms) : 0, 24069
AppSec [baseline] (53.467 ms) : 0, 53467
AppSec [candidate] (55.588 ms) : 0, 55588
Remote Config [baseline] (618.323 µs) : 0, 618
Remote Config [candidate] (621.937 µs) : 0, 622
Telemetry [baseline] (8.81 ms) : 0, 8810
Telemetry [candidate] (8.762 ms) : 0, 8762
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (832.151 ms) : 0, 832151
BytebuddyAgent [candidate] (840.594 ms) : 0, 840594
GlobalTracer [baseline] (230.294 ms) : 0, 230294
GlobalTracer [candidate] (232.038 ms) : 0, 232038
IAST [baseline] (26.472 ms) : 0, 26472
IAST [candidate] (25.297 ms) : 0, 25297
AppSec [baseline] (53.457 ms) : 0, 53457
AppSec [candidate] (55.176 ms) : 0, 55176
Remote Config [baseline] (629.029 µs) : 0, 629
Remote Config [candidate] (623.911 µs) : 0, 624
Telemetry [baseline] (8.845 ms) : 0, 8845
Telemetry [candidate] (8.797 ms) : 0, 8797
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (828.55 ms) : 0, 828550
BytebuddyAgent [candidate] (828.999 ms) : 0, 828999
GlobalTracer [baseline] (230.682 ms) : 0, 230682
GlobalTracer [candidate] (229.462 ms) : 0, 229462
IAST [baseline] (24.407 ms) : 0, 24407
IAST [candidate] (24.28 ms) : 0, 24280
AppSec [baseline] (54.558 ms) : 0, 54558
AppSec [candidate] (55.044 ms) : 0, 55044
Remote Config [baseline] (613.002 µs) : 0, 613
Remote Config [candidate] (616.696 µs) : 0, 617
Telemetry [baseline] (8.578 ms) : 0, 8578
Telemetry [candidate] (8.599 ms) : 0, 8599
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section baseline
no_agent (1.369 ms) : 1350, 1389
. : milestone, 1369,
appsec (1.755 ms) : 1732, 1778
. : milestone, 1755,
appsec_no_iast (1.798 ms) : 1775, 1821
. : milestone, 1798,
iast (1.535 ms) : 1509, 1561
. : milestone, 1535,
profiling (1.518 ms) : 1494, 1542
. : milestone, 1518,
tracing (1.501 ms) : 1477, 1526
. : milestone, 1501,
section candidate
no_agent (1.36 ms) : 1341, 1380
. : milestone, 1360,
appsec (1.777 ms) : 1752, 1802
. : milestone, 1777,
appsec_no_iast (1.768 ms) : 1745, 1791
. : milestone, 1768,
iast (1.519 ms) : 1495, 1543
. : milestone, 1519,
profiling (1.57 ms) : 1546, 1594
. : milestone, 1570,
tracing (1.49 ms) : 1465, 1515
. : milestone, 1490,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section baseline
no_agent (379.394 µs) : 360, 399
. : milestone, 379,
iast (513.741 µs) : 491, 537
. : milestone, 514,
iast_FULL (751.767 µs) : 730, 774
. : milestone, 752,
iast_GLOBAL (555.065 µs) : 534, 577
. : milestone, 555,
iast_HARDCODED_SECRET_DISABLED (515.058 µs) : 492, 538
. : milestone, 515,
iast_INACTIVE (467.86 µs) : 446, 490
. : milestone, 468,
iast_TELEMETRY_OFF (507.872 µs) : 485, 531
. : milestone, 508,
tracing (462.273 µs) : 441, 483
. : milestone, 462,
section candidate
no_agent (381.206 µs) : 360, 402
. : milestone, 381,
iast (520.681 µs) : 497, 544
. : milestone, 521,
iast_FULL (750.495 µs) : 728, 773
. : milestone, 750,
iast_GLOBAL (565.618 µs) : 544, 588
. : milestone, 566,
iast_HARDCODED_SECRET_DISABLED (521.297 µs) : 498, 544
. : milestone, 521,
iast_INACTIVE (473.355 µs) : 452, 495
. : milestone, 473,
iast_TELEMETRY_OFF (503.263 µs) : 480, 527
. : milestone, 503,
tracing (454.503 µs) : 434, 475
. : milestone, 455,
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.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section baseline
no_agent (15.438 s) : 15438000, 15438000
. : milestone, 15438000,
appsec (15.036 s) : 15036000, 15036000
. : milestone, 15036000,
iast (18.473 s) : 18473000, 18473000
. : milestone, 18473000,
iast_GLOBAL (18.068 s) : 18068000, 18068000
. : milestone, 18068000,
profiling (15.747 s) : 15747000, 15747000
. : milestone, 15747000,
tracing (14.827 s) : 14827000, 14827000
. : milestone, 14827000,
section candidate
no_agent (14.918 s) : 14918000, 14918000
. : milestone, 14918000,
appsec (15.027 s) : 15027000, 15027000
. : milestone, 15027000,
iast (19.004 s) : 19004000, 19004000
. : milestone, 19004000,
iast_GLOBAL (18.201 s) : 18201000, 18201000
. : milestone, 18201000,
profiling (15.187 s) : 15187000, 15187000
. : milestone, 15187000,
tracing (14.716 s) : 14716000, 14716000
. : milestone, 14716000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~798b8d8c16, baseline=1.46.0-SNAPSHOT~2b2be1ef8d
dateFormat X
axisFormat %s
section baseline
no_agent (1.471 ms) : 1460, 1483
. : milestone, 1471,
appsec (2.349 ms) : 2305, 2392
. : milestone, 2349,
iast (2.109 ms) : 2054, 2164
. : milestone, 2109,
iast_GLOBAL (2.143 ms) : 2088, 2198
. : milestone, 2143,
profiling (1.958 ms) : 1915, 2002
. : milestone, 1958,
tracing (1.942 ms) : 1900, 1985
. : milestone, 1942,
section candidate
no_agent (1.468 ms) : 1456, 1479
. : milestone, 1468,
appsec (2.349 ms) : 2306, 2392
. : milestone, 2349,
iast (2.096 ms) : 2042, 2151
. : milestone, 2096,
iast_GLOBAL (2.14 ms) : 2085, 2195
. : milestone, 2140,
profiling (1.943 ms) : 1900, 1985
. : milestone, 1943,
tracing (1.946 ms) : 1904, 1988
. : milestone, 1946,
|
mhlidd
changed the title
Mhlidd/dd tags
Add new parser for Jan 28, 2025
DD_TAGS
and prioritizing DD_SERVICE
mhlidd
force-pushed
the
mhlidd/dd_tags
branch
from
January 29, 2025 21:25
50cad0a
to
5dbe976
Compare
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
Creates a new parser to parse
DD_TAGS
by prioritizing comma separated K/V pairs, and falling back to space separated K/V pairs. See this reference doc for how it is already implemented in dd-trace-go.Additionally, if both
DD_SERVICE
and theservice
key inDD_TAGS
are set, this PR prioritizesDD_SERVICE
as the service name. This effectively is the same as not settingservice
inDD_TAGS
. However, if a customer still wanted to manually override the service name withsetTag
, the service name would still be updated by theTagInterceptor
.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.
Additional Notes
Tested with additional and existing unit tests, as well as parametric and weblog tests.
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-1039