-
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
Add Jakarta WebService Instrumentation #7854
Conversation
public static final CharSequence JAKARTA_WS_ENDPOINT = | ||
UTF8BytesString.create("jakarta-ws-endpoint"); | ||
|
||
private WebServiceDecorator() {} |
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.
...tations/src/main/java/datadog/trace/instrumentation/jakartaws/WebServiceInstrumentation.java
Outdated
Show resolved
Hide resolved
...tations/src/main/java/datadog/trace/instrumentation/jakartaws/WebServiceInstrumentation.java
Outdated
Show resolved
Hide resolved
...s-annotations/src/main/java/datadog/trace/instrumentation/jakartaws/WebServiceDecorator.java
Outdated
Show resolved
Hide resolved
dd-java-agent/instrumentation/jakarta-ws-annotations/src/test/groovy/WebServiceTest.groovy
Outdated
Show resolved
Hide resolved
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.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.088 s) : 0, 1087543
Total [baseline] (8.584 s) : 0, 8584301
Agent [candidate] (1.086 s) : 0, 1086409
Total [candidate] (8.589 s) : 0, 8588984
section iast
Agent [baseline] (1.206 s) : 0, 1206394
Total [baseline] (9.144 s) : 0, 9143711
Agent [candidate] (1.212 s) : 0, 1212054
Total [candidate] (9.193 s) : 0, 9192865
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.205 s) : 0, 1205313
Total [baseline] (9.102 s) : 0, 9102007
Agent [candidate] (1.21 s) : 0, 1209868
Total [candidate] (9.143 s) : 0, 9142945
section iast_TELEMETRY_OFF
Agent [baseline] (1.214 s) : 0, 1214133
Total [baseline] (9.113 s) : 0, 9112584
Agent [candidate] (1.206 s) : 0, 1205560
Total [candidate] (9.13 s) : 0, 9129740
gantt
title insecure-bank - break down per module: candidate=1.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (691.861 ms) : 0, 691861
BytebuddyAgent [candidate] (689.448 ms) : 0, 689448
GlobalTracer [baseline] (317.603 ms) : 0, 317603
GlobalTracer [candidate] (317.369 ms) : 0, 317369
AppSec [baseline] (54.389 ms) : 0, 54389
AppSec [candidate] (54.075 ms) : 0, 54075
Remote Config [baseline] (671.192 µs) : 0, 671
Remote Config [candidate] (660.815 µs) : 0, 661
Telemetry [baseline] (9.198 ms) : 0, 9198
Telemetry [candidate] (11.095 ms) : 0, 11095
section iast
BytebuddyAgent [baseline] (802.893 ms) : 0, 802893
BytebuddyAgent [candidate] (806.466 ms) : 0, 806466
GlobalTracer [baseline] (304.23 ms) : 0, 304230
GlobalTracer [candidate] (305.946 ms) : 0, 305946
AppSec [baseline] (57.649 ms) : 0, 57649
AppSec [candidate] (56.21 ms) : 0, 56210
IAST [baseline] (19.829 ms) : 0, 19829
IAST [candidate] (20.701 ms) : 0, 20701
Remote Config [baseline] (605.083 µs) : 0, 605
Remote Config [candidate] (619.66 µs) : 0, 620
Telemetry [baseline] (7.418 ms) : 0, 7418
Telemetry [candidate] (8.245 ms) : 0, 8245
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (801.26 ms) : 0, 801260
BytebuddyAgent [candidate] (803.927 ms) : 0, 803927
GlobalTracer [baseline] (304.232 ms) : 0, 304232
GlobalTracer [candidate] (306.314 ms) : 0, 306314
AppSec [baseline] (57.319 ms) : 0, 57319
AppSec [candidate] (57.758 ms) : 0, 57758
IAST [baseline] (20.655 ms) : 0, 20655
IAST [candidate] (19.918 ms) : 0, 19918
Remote Config [baseline] (608.049 µs) : 0, 608
Remote Config [candidate] (632.311 µs) : 0, 632
Telemetry [baseline] (7.514 ms) : 0, 7514
Telemetry [candidate] (7.514 ms) : 0, 7514
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (807.177 ms) : 0, 807177
BytebuddyAgent [candidate] (800.758 ms) : 0, 800758
GlobalTracer [baseline] (306.902 ms) : 0, 306902
GlobalTracer [candidate] (305.249 ms) : 0, 305249
AppSec [baseline] (56.53 ms) : 0, 56530
AppSec [candidate] (56.491 ms) : 0, 56491
IAST [baseline] (21.612 ms) : 0, 21612
IAST [candidate] (21.319 ms) : 0, 21319
Remote Config [baseline] (601.838 µs) : 0, 602
Remote Config [candidate] (599.336 µs) : 0, 599
Telemetry [baseline] (7.423 ms) : 0, 7423
Telemetry [candidate] (7.353 ms) : 0, 7353
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.098 s) : 0, 1097749
Total [baseline] (10.644 s) : 0, 10643645
Agent [candidate] (1.092 s) : 0, 1091766
Total [candidate] (10.462 s) : 0, 10461921
section appsec
Agent [baseline] (1.217 s) : 0, 1217047
Total [baseline] (10.697 s) : 0, 10696875
Agent [candidate] (1.218 s) : 0, 1217771
Total [candidate] (10.66 s) : 0, 10660277
section iast
Agent [baseline] (1.215 s) : 0, 1214522
Total [baseline] (10.954 s) : 0, 10954395
Agent [candidate] (1.211 s) : 0, 1210702
Total [candidate] (10.957 s) : 0, 10956754
section profiling
Agent [baseline] (1.283 s) : 0, 1282626
Total [baseline] (10.818 s) : 0, 10818342
Agent [candidate] (1.285 s) : 0, 1284705
Total [candidate] (10.788 s) : 0, 10787620
gantt
title petclinic - break down per module: candidate=1.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (697.371 ms) : 0, 697371
BytebuddyAgent [candidate] (693.374 ms) : 0, 693374
GlobalTracer [baseline] (320.024 ms) : 0, 320024
GlobalTracer [candidate] (319.201 ms) : 0, 319201
AppSec [baseline] (54.867 ms) : 0, 54867
AppSec [candidate] (54.813 ms) : 0, 54813
Remote Config [baseline] (682.056 µs) : 0, 682
Remote Config [candidate] (669.227 µs) : 0, 669
Telemetry [baseline] (10.871 ms) : 0, 10871
Telemetry [candidate] (9.858 ms) : 0, 9858
section appsec
BytebuddyAgent [baseline] (705.19 ms) : 0, 705190
BytebuddyAgent [candidate] (705.457 ms) : 0, 705457
GlobalTracer [baseline] (313.312 ms) : 0, 313312
GlobalTracer [candidate] (314.079 ms) : 0, 314079
AppSec [baseline] (165.5 ms) : 0, 165500
AppSec [candidate] (166.405 ms) : 0, 166405
Remote Config [baseline] (644.401 µs) : 0, 644
Remote Config [candidate] (639.42 µs) : 0, 639
Telemetry [baseline] (8.152 ms) : 0, 8152
Telemetry [candidate] (8.112 ms) : 0, 8112
IAST [baseline] (20.981 ms) : 0, 20981
IAST [candidate] (18.623 ms) : 0, 18623
section iast
BytebuddyAgent [baseline] (808.702 ms) : 0, 808702
BytebuddyAgent [candidate] (805.104 ms) : 0, 805104
GlobalTracer [baseline] (306.582 ms) : 0, 306582
GlobalTracer [candidate] (306.491 ms) : 0, 306491
AppSec [baseline] (56.923 ms) : 0, 56923
AppSec [candidate] (56.662 ms) : 0, 56662
Remote Config [baseline] (605.893 µs) : 0, 606
Remote Config [candidate] (607.964 µs) : 0, 608
Telemetry [baseline] (7.382 ms) : 0, 7382
Telemetry [candidate] (7.368 ms) : 0, 7368
IAST [baseline] (20.49 ms) : 0, 20490
IAST [candidate] (20.637 ms) : 0, 20637
section profiling
ProfilingAgent [baseline] (92.37 ms) : 0, 92370
ProfilingAgent [candidate] (92.848 ms) : 0, 92848
BytebuddyAgent [baseline] (682.884 ms) : 0, 682884
BytebuddyAgent [candidate] (683.784 ms) : 0, 683784
GlobalTracer [baseline] (400.9 ms) : 0, 400900
GlobalTracer [candidate] (401.25 ms) : 0, 401250
AppSec [baseline] (54.633 ms) : 0, 54633
AppSec [candidate] (54.995 ms) : 0, 54995
Remote Config [baseline] (670.932 µs) : 0, 671
Remote Config [candidate] (1.409 ms) : 0, 1409
Telemetry [baseline] (12.059 ms) : 0, 12059
Telemetry [candidate] (11.417 ms) : 0, 11417
Profiling [baseline] (92.393 ms) : 0, 92393
Profiling [candidate] (92.873 ms) : 0, 92873
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.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section baseline
no_agent (1.343 ms) : 1325, 1362
. : milestone, 1343,
appsec (1.729 ms) : 1704, 1753
. : milestone, 1729,
appsec_no_iast (1.737 ms) : 1713, 1761
. : milestone, 1737,
iast (1.494 ms) : 1472, 1517
. : milestone, 1494,
profiling (1.501 ms) : 1478, 1525
. : milestone, 1501,
tracing (1.473 ms) : 1448, 1498
. : milestone, 1473,
section candidate
no_agent (1.337 ms) : 1318, 1356
. : milestone, 1337,
appsec (1.733 ms) : 1709, 1758
. : milestone, 1733,
appsec_no_iast (1.763 ms) : 1739, 1787
. : milestone, 1763,
iast (1.51 ms) : 1488, 1532
. : milestone, 1510,
profiling (1.482 ms) : 1459, 1505
. : milestone, 1482,
tracing (1.477 ms) : 1452, 1502
. : milestone, 1477,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section baseline
no_agent (374.5 µs) : 355, 394
. : milestone, 375,
iast (485.81 µs) : 464, 507
. : milestone, 486,
iast_FULL (652.078 µs) : 631, 674
. : milestone, 652,
iast_GLOBAL (533.985 µs) : 511, 557
. : milestone, 534,
iast_HARDCODED_SECRET_DISABLED (499.184 µs) : 478, 521
. : milestone, 499,
iast_INACTIVE (452.742 µs) : 431, 474
. : milestone, 453,
iast_TELEMETRY_OFF (475.716 µs) : 455, 497
. : milestone, 476,
tracing (444.158 µs) : 424, 464
. : milestone, 444,
section candidate
no_agent (379.293 µs) : 360, 399
. : milestone, 379,
iast (492.726 µs) : 471, 515
. : milestone, 493,
iast_FULL (650.788 µs) : 629, 673
. : milestone, 651,
iast_GLOBAL (521.078 µs) : 499, 543
. : milestone, 521,
iast_HARDCODED_SECRET_DISABLED (490.577 µs) : 469, 512
. : milestone, 491,
iast_INACTIVE (469.393 µs) : 448, 491
. : milestone, 469,
iast_TELEMETRY_OFF (481.58 µs) : 460, 503
. : milestone, 482,
tracing (444.654 µs) : 424, 465
. : milestone, 445,
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.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section baseline
no_agent (15.322 s) : 15322000, 15322000
. : milestone, 15322000,
appsec (15.229 s) : 15229000, 15229000
. : milestone, 15229000,
iast (18.668 s) : 18668000, 18668000
. : milestone, 18668000,
iast_GLOBAL (17.982 s) : 17982000, 17982000
. : milestone, 17982000,
profiling (15.252 s) : 15252000, 15252000
. : milestone, 15252000,
tracing (15.156 s) : 15156000, 15156000
. : milestone, 15156000,
section candidate
no_agent (14.959 s) : 14959000, 14959000
. : milestone, 14959000,
appsec (15.16 s) : 15160000, 15160000
. : milestone, 15160000,
iast (18.828 s) : 18828000, 18828000
. : milestone, 18828000,
iast_GLOBAL (18.049 s) : 18049000, 18049000
. : milestone, 18049000,
profiling (15.134 s) : 15134000, 15134000
. : milestone, 15134000,
tracing (15.19 s) : 15190000, 15190000
. : milestone, 15190000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.42.0-SNAPSHOT~09ae5cc1bc, baseline=1.42.0-SNAPSHOT~104a441d0a
dateFormat X
axisFormat %s
section baseline
no_agent (1.459 ms) : 1447, 1470
. : milestone, 1459,
appsec (2.323 ms) : 2282, 2364
. : milestone, 2323,
iast (2.057 ms) : 2006, 2109
. : milestone, 2057,
iast_GLOBAL (2.115 ms) : 2063, 2168
. : milestone, 2115,
profiling (1.938 ms) : 1896, 1981
. : milestone, 1938,
tracing (1.899 ms) : 1860, 1939
. : milestone, 1899,
section candidate
no_agent (1.457 ms) : 1446, 1469
. : milestone, 1457,
appsec (2.307 ms) : 2267, 2348
. : milestone, 2307,
iast (2.056 ms) : 2005, 2107
. : milestone, 2056,
iast_GLOBAL (2.11 ms) : 2058, 2163
. : milestone, 2110,
profiling (1.915 ms) : 1874, 1955
. : milestone, 1915,
tracing (1.914 ms) : 1873, 1954
. : milestone, 1914,
|
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 👍
// todo correct version non rs | ||
compileOnly group: 'jakarta.jws', name: 'jakarta.jws-api', version: '3.0.0' | ||
|
||
//todo also make jakarta |
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.
need to remove comment
What Does This Do
Adds instrumentation for Jakarta WebServices annotation. Instrumentation is identical to Javax WebServices since the library is the same, but in a different namespace.
Motivation
Some customers use Jakarta WebServices annotation
jakarta.jws.WebService
. Currently we only support the Javax version WebServices annotationjavax.jws.WebService
. We want to add support for both annotations.Additional Notes
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: [PROJ-IDENT]