-
Notifications
You must be signed in to change notification settings - Fork 314
add a feature flag to disable extra calls to the DB in JDBC instrumentation #9774
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
base: master
Are you sure you want to change the base?
Conversation
🎯 Code Coverage 🔗 Commit SHA: 9ac990b | Docs | Was this helpful? Give us feedback! |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 61 metrics, 4 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.028 s) : 0, 1028215
Total [baseline] (8.738 s) : 0, 8738321
Agent [candidate] (1.02 s) : 0, 1020269
Total [candidate] (8.671 s) : 0, 8671014
section iast
Agent [baseline] (1.161 s) : 0, 1161237
Total [baseline] (9.347 s) : 0, 9347194
Agent [candidate] (1.155 s) : 0, 1155204
Total [candidate] (9.353 s) : 0, 9352773
gantt
title insecure-bank - break down per module: candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.48 ms) : 0, 1480
crashtracking [candidate] (1.459 ms) : 0, 1459
BytebuddyAgent [baseline] (700.202 ms) : 0, 700202
BytebuddyAgent [candidate] (694.269 ms) : 0, 694269
GlobalTracer [baseline] (244.979 ms) : 0, 244979
GlobalTracer [candidate] (243.619 ms) : 0, 243619
AppSec [baseline] (32.562 ms) : 0, 32562
AppSec [candidate] (32.324 ms) : 0, 32324
Debugger [baseline] (6.37 ms) : 0, 6370
Debugger [candidate] (6.297 ms) : 0, 6297
Remote Config [baseline] (684.576 µs) : 0, 685
Remote Config [candidate] (675.204 µs) : 0, 675
Telemetry [baseline] (9.466 ms) : 0, 9466
Telemetry [candidate] (9.278 ms) : 0, 9278
Flare Poller [baseline] (11.092 ms) : 0, 11092
Flare Poller [candidate] (11.171 ms) : 0, 11171
section iast
crashtracking [baseline] (1.499 ms) : 0, 1499
crashtracking [candidate] (1.489 ms) : 0, 1489
BytebuddyAgent [baseline] (822.17 ms) : 0, 822170
BytebuddyAgent [candidate] (817.503 ms) : 0, 817503
GlobalTracer [baseline] (233.685 ms) : 0, 233685
GlobalTracer [candidate] (232.583 ms) : 0, 232583
AppSec [baseline] (35.632 ms) : 0, 35632
AppSec [candidate] (35.296 ms) : 0, 35296
Debugger [baseline] (6.166 ms) : 0, 6166
Debugger [candidate] (6.192 ms) : 0, 6192
Remote Config [baseline] (607.98 µs) : 0, 608
Remote Config [candidate] (688.023 µs) : 0, 688
Telemetry [baseline] (8.618 ms) : 0, 8618
Telemetry [candidate] (8.775 ms) : 0, 8775
Flare Poller [baseline] (4.307 ms) : 0, 4307
Flare Poller [candidate] (4.296 ms) : 0, 4296
IAST [baseline] (26.966 ms) : 0, 26966
IAST [candidate] (26.813 ms) : 0, 26813
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.021 s) : 0, 1021234
Total [baseline] (10.814 s) : 0, 10813698
Agent [candidate] (1.019 s) : 0, 1019260
Total [candidate] (10.646 s) : 0, 10645909
section appsec
Agent [baseline] (1.205 s) : 0, 1205130
Total [baseline] (10.928 s) : 0, 10927962
Agent [candidate] (1.197 s) : 0, 1197428
Total [candidate] (10.858 s) : 0, 10858059
section iast
Agent [baseline] (1.157 s) : 0, 1157058
Total [baseline] (11.167 s) : 0, 11167231
Agent [candidate] (1.155 s) : 0, 1155390
Total [candidate] (11.097 s) : 0, 11096974
section profiling
Agent [baseline] (1.169 s) : 0, 1168905
Total [baseline] (10.867 s) : 0, 10867028
Agent [candidate] (1.167 s) : 0, 1166545
Total [candidate] (10.899 s) : 0, 10898998
gantt
title petclinic - break down per module: candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.461 ms) : 0, 1461
crashtracking [candidate] (1.452 ms) : 0, 1452
BytebuddyAgent [baseline] (695.429 ms) : 0, 695429
BytebuddyAgent [candidate] (693.253 ms) : 0, 693253
GlobalTracer [baseline] (244.146 ms) : 0, 244146
GlobalTracer [candidate] (243.223 ms) : 0, 243223
AppSec [baseline] (32.214 ms) : 0, 32214
AppSec [candidate] (32.108 ms) : 0, 32108
Debugger [baseline] (6.285 ms) : 0, 6285
Debugger [candidate] (6.322 ms) : 0, 6322
Remote Config [baseline] (684.362 µs) : 0, 684
Remote Config [candidate] (674.284 µs) : 0, 674
Telemetry [baseline] (9.358 ms) : 0, 9358
Telemetry [candidate] (9.355 ms) : 0, 9355
Flare Poller [baseline] (10.315 ms) : 0, 10315
Flare Poller [candidate] (11.694 ms) : 0, 11694
section appsec
crashtracking [baseline] (1.478 ms) : 0, 1478
crashtracking [candidate] (1.45 ms) : 0, 1450
BytebuddyAgent [baseline] (725.282 ms) : 0, 725282
BytebuddyAgent [candidate] (719.432 ms) : 0, 719432
GlobalTracer [baseline] (236.625 ms) : 0, 236625
GlobalTracer [candidate] (235.865 ms) : 0, 235865
AppSec [baseline] (175.889 ms) : 0, 175889
AppSec [candidate] (175.169 ms) : 0, 175169
Debugger [baseline] (6.142 ms) : 0, 6142
Debugger [candidate] (6.106 ms) : 0, 6106
Remote Config [baseline] (637.854 µs) : 0, 638
Remote Config [candidate] (627.675 µs) : 0, 628
Telemetry [baseline] (8.626 ms) : 0, 8626
Telemetry [candidate] (8.602 ms) : 0, 8602
Flare Poller [baseline] (3.88 ms) : 0, 3880
Flare Poller [candidate] (3.933 ms) : 0, 3933
IAST [baseline] (25.272 ms) : 0, 25272
IAST [candidate] (24.979 ms) : 0, 24979
section iast
crashtracking [baseline] (1.485 ms) : 0, 1485
crashtracking [candidate] (1.453 ms) : 0, 1453
BytebuddyAgent [baseline] (819.092 ms) : 0, 819092
BytebuddyAgent [candidate] (817.279 ms) : 0, 817279
GlobalTracer [baseline] (233.012 ms) : 0, 233012
GlobalTracer [candidate] (232.872 ms) : 0, 232872
AppSec [baseline] (35.39 ms) : 0, 35390
AppSec [candidate] (35.371 ms) : 0, 35371
Debugger [baseline] (6.191 ms) : 0, 6191
Debugger [candidate] (6.229 ms) : 0, 6229
Remote Config [baseline] (613.831 µs) : 0, 614
Remote Config [candidate] (603.367 µs) : 0, 603
Telemetry [baseline] (8.712 ms) : 0, 8712
Telemetry [candidate] (8.745 ms) : 0, 8745
Flare Poller [baseline] (4.29 ms) : 0, 4290
Flare Poller [candidate] (4.363 ms) : 0, 4363
IAST [baseline] (26.624 ms) : 0, 26624
IAST [candidate] (26.863 ms) : 0, 26863
section profiling
crashtracking [baseline] (1.481 ms) : 0, 1481
crashtracking [candidate] (1.477 ms) : 0, 1477
BytebuddyAgent [baseline] (722.585 ms) : 0, 722585
BytebuddyAgent [candidate] (721.707 ms) : 0, 721707
GlobalTracer [baseline] (219.91 ms) : 0, 219910
GlobalTracer [candidate] (219.552 ms) : 0, 219552
AppSec [baseline] (32.459 ms) : 0, 32459
AppSec [candidate] (32.284 ms) : 0, 32284
Debugger [baseline] (6.737 ms) : 0, 6737
Debugger [candidate] (6.655 ms) : 0, 6655
Remote Config [baseline] (710.418 µs) : 0, 710
Remote Config [candidate] (686.553 µs) : 0, 687
Telemetry [baseline] (15.993 ms) : 0, 15993
Telemetry [candidate] (16.134 ms) : 0, 16134
Flare Poller [baseline] (4.161 ms) : 0, 4161
Flare Poller [candidate] (4.15 ms) : 0, 4150
ProfilingAgent [baseline] (110.817 ms) : 0, 110817
ProfilingAgent [candidate] (109.868 ms) : 0, 109868
Profiling [baseline] (111.452 ms) : 0, 111452
Profiling [candidate] (110.522 ms) : 0, 110522
LoadParameters
See matching parameters
SummaryFound 5 performance improvements and 1 performance regressions! Performance is the same for 6 metrics, 12 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section baseline
no_agent (4.667 ms) : 4612, 4721
. : milestone, 4667,
iast (9.823 ms) : 9656, 9991
. : milestone, 9823,
iast_FULL (13.842 ms) : 13573, 14112
. : milestone, 13842,
iast_GLOBAL (10.456 ms) : 10266, 10646
. : milestone, 10456,
profiling (9.13 ms) : 8971, 9290
. : milestone, 9130,
tracing (8.613 ms) : 8475, 8750
. : milestone, 8613,
section candidate
no_agent (4.511 ms) : 4460, 4562
. : milestone, 4511,
iast (9.728 ms) : 9558, 9898
. : milestone, 9728,
iast_FULL (14.51 ms) : 14220, 14800
. : milestone, 14510,
iast_GLOBAL (10.209 ms) : 10031, 10388
. : milestone, 10209,
profiling (9.085 ms) : 8931, 9239
. : milestone, 9085,
tracing (7.928 ms) : 7812, 8043
. : milestone, 7928,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section baseline
no_agent (38.018 ms) : 37721, 38315
. : milestone, 38018,
appsec (50.643 ms) : 50201, 51085
. : milestone, 50643,
code_origins (44.335 ms) : 43951, 44719
. : milestone, 44335,
iast (45.413 ms) : 45014, 45813
. : milestone, 45413,
profiling (50.277 ms) : 49825, 50729
. : milestone, 50277,
tracing (44.418 ms) : 44036, 44800
. : milestone, 44418,
section candidate
no_agent (37.636 ms) : 37343, 37928
. : milestone, 37636,
appsec (46.363 ms) : 45954, 46773
. : milestone, 46363,
code_origins (42.697 ms) : 42343, 43050
. : milestone, 42697,
iast (44.605 ms) : 44222, 44989
. : milestone, 44605,
profiling (47.928 ms) : 47487, 48369
. : milestone, 47928,
tracing (43.634 ms) : 43260, 44009
. : milestone, 43634,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section baseline
no_agent (1.49 ms) : 1478, 1502
. : milestone, 1490,
appsec (4.197 ms) : 3945, 4449
. : milestone, 4197,
iast (2.568 ms) : 2468, 2668
. : milestone, 2568,
iast_GLOBAL (2.632 ms) : 2530, 2733
. : milestone, 2632,
profiling (2.424 ms) : 2337, 2511
. : milestone, 2424,
tracing (2.365 ms) : 2283, 2447
. : milestone, 2365,
section candidate
no_agent (1.486 ms) : 1475, 1498
. : milestone, 1486,
appsec (4.185 ms) : 3934, 4436
. : milestone, 4185,
iast (2.57 ms) : 2469, 2670
. : milestone, 2570,
iast_GLOBAL (2.622 ms) : 2521, 2723
. : milestone, 2622,
profiling (2.413 ms) : 2327, 2500
. : milestone, 2413,
tracing (2.35 ms) : 2268, 2432
. : milestone, 2350,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~9ac990be82, baseline=1.55.0-SNAPSHOT~52a8cc719b
dateFormat X
axisFormat %s
section baseline
no_agent (15.245 s) : 15245000, 15245000
. : milestone, 15245000,
appsec (14.582 s) : 14582000, 14582000
. : milestone, 14582000,
iast (18.013 s) : 18013000, 18013000
. : milestone, 18013000,
iast_GLOBAL (17.634 s) : 17634000, 17634000
. : milestone, 17634000,
profiling (14.471 s) : 14471000, 14471000
. : milestone, 14471000,
tracing (14.687 s) : 14687000, 14687000
. : milestone, 14687000,
section candidate
no_agent (14.925 s) : 14925000, 14925000
. : milestone, 14925000,
appsec (14.545 s) : 14545000, 14545000
. : milestone, 14545000,
iast (17.842 s) : 17842000, 17842000
. : milestone, 17842000,
iast_GLOBAL (17.634 s) : 17634000, 17634000
. : milestone, 17634000,
profiling (14.484 s) : 14484000, 14484000
. : milestone, 14484000,
tracing (14.643 s) : 14643000, 14643000
. : milestone, 14643000,
|
internal-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy
Outdated
Show resolved
Hide resolved
try { | ||
clientInfo = connection.getClientInfo(); | ||
} catch (final Throwable ex) { | ||
// getClientInfo is likely not allowed, we can still extract info from the url alone |
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.
Maybe make sense to put some debug/trace log? Just thinking out loud.
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.
you mean for investigation in the current case, or in general ?
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.
I think it could help for investigation in the current case! I have no scale for how often this method is called though -- would adding debug statements here be "okay" in a production environment where we don't want to spam logs?
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.
added a log, we'll need to make sure this is not merged to main if we want to keep the feature flags for further investigations
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.
Cool thanks! I'll add a do not merge
tag for now to remind us
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
the JDBC instrumentation does extra calls to the DB to fetch the metadata and client info. In case this might cause issues, we want to be able to disable this behavior to reduce the instrumentation to simply creating spans.
Motivation
customer investigation
Additional Notes
missing tests for now
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 issueJira ticket: APMS-16143