-
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
Remove activeScope() use in OpenTracing shim #8478
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 4 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.05 s) : 0, 1049744
Total [baseline] (8.667 s) : 0, 8667259
Agent [candidate] (1.053 s) : 0, 1052682
Total [candidate] (8.672 s) : 0, 8671982
section iast
Agent [baseline] (1.168 s) : 0, 1168374
Total [baseline] (9.216 s) : 0, 9216464
Agent [candidate] (1.17 s) : 0, 1169979
Total [candidate] (9.235 s) : 0, 9235208
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.174 s) : 0, 1173523
Total [baseline] (9.207 s) : 0, 9207280
Agent [candidate] (1.173 s) : 0, 1173311
Total [candidate] (9.195 s) : 0, 9194580
section iast_TELEMETRY_OFF
Agent [baseline] (1.163 s) : 0, 1162923
Total [baseline] (9.262 s) : 0, 9262376
Agent [candidate] (1.166 s) : 0, 1165772
Total [candidate] (9.235 s) : 0, 9234507
gantt
title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (725.767 ms) : 0, 725767
BytebuddyAgent [candidate] (726.781 ms) : 0, 726781
GlobalTracer [baseline] (240.485 ms) : 0, 240485
GlobalTracer [candidate] (242.382 ms) : 0, 242382
AppSec [baseline] (55.399 ms) : 0, 55399
AppSec [candidate] (55.95 ms) : 0, 55950
Remote Config [baseline] (703.196 µs) : 0, 703
Remote Config [candidate] (714.048 µs) : 0, 714
Telemetry [baseline] (12.24 ms) : 0, 12240
Telemetry [candidate] (11.665 ms) : 0, 11665
section iast
BytebuddyAgent [baseline] (834.727 ms) : 0, 834727
BytebuddyAgent [candidate] (835.655 ms) : 0, 835655
GlobalTracer [baseline] (229.519 ms) : 0, 229519
GlobalTracer [candidate] (230.479 ms) : 0, 230479
IAST [baseline] (22.775 ms) : 0, 22775
IAST [candidate] (22.727 ms) : 0, 22727
AppSec [baseline] (57.144 ms) : 0, 57144
AppSec [candidate] (56.906 ms) : 0, 56906
Remote Config [baseline] (615.468 µs) : 0, 615
Remote Config [candidate] (616.412 µs) : 0, 616
Telemetry [baseline] (8.646 ms) : 0, 8646
Telemetry [candidate] (8.626 ms) : 0, 8626
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (839.742 ms) : 0, 839742
BytebuddyAgent [candidate] (837.845 ms) : 0, 837845
GlobalTracer [baseline] (229.86 ms) : 0, 229860
GlobalTracer [candidate] (231.047 ms) : 0, 231047
IAST [baseline] (22.874 ms) : 0, 22874
IAST [candidate] (22.992 ms) : 0, 22992
AppSec [baseline] (56.714 ms) : 0, 56714
AppSec [candidate] (57.08 ms) : 0, 57080
Remote Config [baseline] (610.386 µs) : 0, 610
Remote Config [candidate] (614.301 µs) : 0, 614
Telemetry [baseline] (8.663 ms) : 0, 8663
Telemetry [candidate] (8.722 ms) : 0, 8722
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (830.279 ms) : 0, 830279
BytebuddyAgent [candidate] (832.091 ms) : 0, 832091
GlobalTracer [baseline] (229.638 ms) : 0, 229638
GlobalTracer [candidate] (230.318 ms) : 0, 230318
IAST [baseline] (23.048 ms) : 0, 23048
IAST [candidate] (23.051 ms) : 0, 23051
AppSec [baseline] (55.849 ms) : 0, 55849
AppSec [candidate] (56.088 ms) : 0, 56088
Remote Config [baseline] (597.314 µs) : 0, 597
Remote Config [candidate] (607.825 µs) : 0, 608
Telemetry [baseline] (8.557 ms) : 0, 8557
Telemetry [candidate] (8.661 ms) : 0, 8661
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.037 s) : 0, 1037354
Total [baseline] (10.414 s) : 0, 10413955
Agent [candidate] (1.047 s) : 0, 1046571
Total [candidate] (10.554 s) : 0, 10553631
section appsec
Agent [baseline] (1.183 s) : 0, 1182814
Total [baseline] (10.758 s) : 0, 10757532
Agent [candidate] (1.187 s) : 0, 1186833
Total [candidate] (10.747 s) : 0, 10746708
section iast
Agent [baseline] (1.171 s) : 0, 1171152
Total [baseline] (10.991 s) : 0, 10990631
Agent [candidate] (1.169 s) : 0, 1169416
Total [candidate] (10.987 s) : 0, 10987080
section profiling
Agent [baseline] (1.261 s) : 0, 1260971
Total [baseline] (10.854 s) : 0, 10853676
Agent [candidate] (1.266 s) : 0, 1265529
Total [candidate] (10.878 s) : 0, 10878184
gantt
title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (716.185 ms) : 0, 716185
BytebuddyAgent [candidate] (722.083 ms) : 0, 722083
GlobalTracer [baseline] (239.148 ms) : 0, 239148
GlobalTracer [candidate] (241.111 ms) : 0, 241111
AppSec [baseline] (55.015 ms) : 0, 55015
AppSec [candidate] (55.369 ms) : 0, 55369
Remote Config [baseline] (686.729 µs) : 0, 687
Remote Config [candidate] (692.491 µs) : 0, 692
Telemetry [baseline] (11.351 ms) : 0, 11351
Telemetry [candidate] (12.219 ms) : 0, 12219
section appsec
BytebuddyAgent [baseline] (735.002 ms) : 0, 735002
BytebuddyAgent [candidate] (736.802 ms) : 0, 736802
GlobalTracer [baseline] (236.362 ms) : 0, 236362
GlobalTracer [candidate] (237.418 ms) : 0, 237418
IAST [baseline] (21.438 ms) : 0, 21438
IAST [candidate] (21.393 ms) : 0, 21393
AppSec [baseline] (176.904 ms) : 0, 176904
AppSec [candidate] (177.944 ms) : 0, 177944
Remote Config [baseline] (656.971 µs) : 0, 657
Remote Config [candidate] (676.987 µs) : 0, 677
Telemetry [baseline] (8.235 ms) : 0, 8235
Telemetry [candidate] (8.315 ms) : 0, 8315
section iast
BytebuddyAgent [baseline] (836.713 ms) : 0, 836713
BytebuddyAgent [candidate] (835.809 ms) : 0, 835809
GlobalTracer [baseline] (230.057 ms) : 0, 230057
GlobalTracer [candidate] (229.937 ms) : 0, 229937
IAST [baseline] (23.699 ms) : 0, 23699
IAST [candidate] (22.737 ms) : 0, 22737
AppSec [baseline] (56.344 ms) : 0, 56344
AppSec [candidate] (56.759 ms) : 0, 56759
Remote Config [baseline] (625.322 µs) : 0, 625
Remote Config [candidate] (615.056 µs) : 0, 615
Telemetry [baseline] (8.758 ms) : 0, 8758
Telemetry [candidate] (8.582 ms) : 0, 8582
section profiling
BytebuddyAgent [baseline] (709.792 ms) : 0, 709792
BytebuddyAgent [candidate] (712.273 ms) : 0, 712273
GlobalTracer [baseline] (350.082 ms) : 0, 350082
GlobalTracer [candidate] (351.915 ms) : 0, 351915
AppSec [baseline] (54.708 ms) : 0, 54708
AppSec [candidate] (54.315 ms) : 0, 54315
Remote Config [baseline] (674.383 µs) : 0, 674
Remote Config [candidate] (672.74 µs) : 0, 673
Telemetry [baseline] (8.915 ms) : 0, 8915
Telemetry [candidate] (8.959 ms) : 0, 8959
ProfilingAgent [baseline] (96.356 ms) : 0, 96356
ProfilingAgent [candidate] (96.776 ms) : 0, 96776
Profiling [baseline] (96.382 ms) : 0, 96382
Profiling [candidate] (96.8 ms) : 0, 96800
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section baseline
no_agent (382.38 µs) : 362, 403
. : milestone, 382,
iast (518.267 µs) : 496, 541
. : milestone, 518,
iast_FULL (729.674 µs) : 708, 752
. : milestone, 730,
iast_GLOBAL (555.613 µs) : 534, 577
. : milestone, 556,
iast_HARDCODED_SECRET_DISABLED (512.482 µs) : 491, 534
. : milestone, 512,
iast_INACTIVE (469.833 µs) : 448, 491
. : milestone, 470,
iast_TELEMETRY_OFF (503.016 µs) : 481, 525
. : milestone, 503,
tracing (464.816 µs) : 443, 487
. : milestone, 465,
section candidate
no_agent (390.025 µs) : 370, 410
. : milestone, 390,
iast (517.123 µs) : 495, 539
. : milestone, 517,
iast_FULL (732.333 µs) : 710, 754
. : milestone, 732,
iast_GLOBAL (559.983 µs) : 538, 582
. : milestone, 560,
iast_HARDCODED_SECRET_DISABLED (513.508 µs) : 492, 535
. : milestone, 514,
iast_INACTIVE (468.89 µs) : 446, 492
. : milestone, 469,
iast_TELEMETRY_OFF (505.245 µs) : 482, 528
. : milestone, 505,
tracing (454.299 µs) : 434, 475
. : milestone, 454,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section baseline
no_agent (1.357 ms) : 1338, 1376
. : milestone, 1357,
appsec (1.748 ms) : 1724, 1771
. : milestone, 1748,
appsec_no_iast (1.742 ms) : 1717, 1766
. : milestone, 1742,
code_origins (1.675 ms) : 1642, 1708
. : milestone, 1675,
iast (1.518 ms) : 1494, 1542
. : milestone, 1518,
profiling (1.559 ms) : 1533, 1584
. : milestone, 1559,
tracing (1.508 ms) : 1483, 1532
. : milestone, 1508,
section candidate
no_agent (1.343 ms) : 1323, 1362
. : milestone, 1343,
appsec (1.737 ms) : 1713, 1761
. : milestone, 1737,
appsec_no_iast (1.731 ms) : 1706, 1756
. : milestone, 1731,
code_origins (1.688 ms) : 1655, 1721
. : milestone, 1688,
iast (1.51 ms) : 1487, 1534
. : milestone, 1510,
profiling (1.563 ms) : 1538, 1588
. : milestone, 1563,
tracing (1.507 ms) : 1483, 1531
. : milestone, 1507,
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.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section baseline
no_agent (1.463 ms) : 1451, 1474
. : milestone, 1463,
appsec (2.322 ms) : 2279, 2365
. : milestone, 2322,
iast (2.101 ms) : 2047, 2156
. : milestone, 2101,
iast_GLOBAL (2.152 ms) : 2097, 2207
. : milestone, 2152,
profiling (1.979 ms) : 1934, 2023
. : milestone, 1979,
tracing (1.94 ms) : 1898, 1982
. : milestone, 1940,
section candidate
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (2.332 ms) : 2289, 2375
. : milestone, 2332,
iast (2.104 ms) : 2049, 2159
. : milestone, 2104,
iast_GLOBAL (2.154 ms) : 2099, 2210
. : milestone, 2154,
profiling (1.957 ms) : 1914, 2001
. : milestone, 1957,
tracing (1.934 ms) : 1893, 1976
. : milestone, 1934,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~f6e8b5563d, baseline=1.48.0-SNAPSHOT~6055d50b80
dateFormat X
axisFormat %s
section baseline
no_agent (14.735 s) : 14735000, 14735000
. : milestone, 14735000,
appsec (14.991 s) : 14991000, 14991000
. : milestone, 14991000,
iast (18.642 s) : 18642000, 18642000
. : milestone, 18642000,
iast_GLOBAL (17.441 s) : 17441000, 17441000
. : milestone, 17441000,
profiling (14.922 s) : 14922000, 14922000
. : milestone, 14922000,
tracing (14.999 s) : 14999000, 14999000
. : milestone, 14999000,
section candidate
no_agent (15.405 s) : 15405000, 15405000
. : milestone, 15405000,
appsec (15.159 s) : 15159000, 15159000
. : milestone, 15159000,
iast (18.339 s) : 18339000, 18339000
. : milestone, 18339000,
iast_GLOBAL (17.774 s) : 17774000, 17774000
. : milestone, 17774000,
profiling (14.963 s) : 14963000, 14963000
. : milestone, 14963000,
tracing (14.95 s) : 14950000, 14950000
. : milestone, 14950000,
|
9bbbcd9
to
d824901
Compare
f451c53
to
6e3d064
Compare
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 for idm
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.
Few comments to discuss about the API. Nothing blocking.
internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/AgentTracer.java
Outdated
Show resolved
Hide resolved
...acing/api-0.31/src/main/java/datadog/trace/instrumentation/opentracing31/OTScopeManager.java
Show resolved
Hide resolved
...acing/api-0.31/src/main/java/datadog/trace/instrumentation/opentracing31/OTScopeManager.java
Outdated
Show resolved
Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/AgentTracer.java
Outdated
Show resolved
Hide resolved
4f90af6
to
05b7f22
Compare
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.
Thanks a lot for your updates and considering all my nitpicks! 🙇
No problem, thanks for the suggestions! |
This was only used to implement the deprecated 'active()' OpenTracing method. We take a best effort approach of using a 'fake' scope which lets the caller close the active scope if it matches the expected span, and otherwise logs a warning (or throws an exception in strict mode.)
05b7f22
to
f6e8b55
Compare
Motivation
This was only used to implement the deprecated 'active()' OpenTracing method. We take a best effort approach of using a 'fake' scope which lets the caller close the active scope if it matches the expected span, and otherwise logs a warning (or throws an exception in strict mode.)
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-956