-
Notifications
You must be signed in to change notification settings - Fork 312
Do not allocate a tracing context when not fully extracted #9693
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: 1c997f9 | 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~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.018 s) : 0, 1018352
Total [baseline] (8.66 s) : 0, 8659958
Agent [candidate] (1.016 s) : 0, 1016428
Total [candidate] (8.685 s) : 0, 8684767
section iast
Agent [baseline] (1.152 s) : 0, 1152198
Total [baseline] (9.287 s) : 0, 9286997
Agent [candidate] (1.162 s) : 0, 1161772
Total [candidate] (9.328 s) : 0, 9327588
gantt
title insecure-bank - break down per module: candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.471 ms) : 0, 1471
crashtracking [candidate] (1.477 ms) : 0, 1477
BytebuddyAgent [baseline] (694.637 ms) : 0, 694637
BytebuddyAgent [candidate] (692.185 ms) : 0, 692185
GlobalTracer [baseline] (242.167 ms) : 0, 242167
GlobalTracer [candidate] (241.635 ms) : 0, 241635
AppSec [baseline] (33.006 ms) : 0, 33006
AppSec [candidate] (32.645 ms) : 0, 32645
Debugger [baseline] (6.42 ms) : 0, 6420
Debugger [candidate] (6.47 ms) : 0, 6470
Remote Config [baseline] (710.621 µs) : 0, 711
Remote Config [candidate] (698.803 µs) : 0, 699
Telemetry [baseline] (9.198 ms) : 0, 9198
Telemetry [candidate] (9.183 ms) : 0, 9183
Flare Poller [baseline] (9.575 ms) : 0, 9575
Flare Poller [candidate] (10.988 ms) : 0, 10988
section iast
crashtracking [baseline] (1.461 ms) : 0, 1461
crashtracking [candidate] (1.458 ms) : 0, 1458
BytebuddyAgent [baseline] (815.933 ms) : 0, 815933
BytebuddyAgent [candidate] (822.55 ms) : 0, 822550
GlobalTracer [baseline] (231.804 ms) : 0, 231804
GlobalTracer [candidate] (233.433 ms) : 0, 233433
AppSec [baseline] (35.838 ms) : 0, 35838
AppSec [candidate] (36.119 ms) : 0, 36119
Debugger [baseline] (6.088 ms) : 0, 6088
Debugger [candidate] (6.195 ms) : 0, 6195
Remote Config [baseline] (602.792 µs) : 0, 603
Remote Config [candidate] (622.034 µs) : 0, 622
Telemetry [baseline] (8.514 ms) : 0, 8514
Telemetry [candidate] (8.786 ms) : 0, 8786
Flare Poller [baseline] (4.204 ms) : 0, 4204
Flare Poller [candidate] (4.29 ms) : 0, 4290
IAST [baseline] (26.402 ms) : 0, 26402
IAST [candidate] (26.834 ms) : 0, 26834
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.02 s) : 0, 1019859
Total [baseline] (10.792 s) : 0, 10791903
Agent [candidate] (1.028 s) : 0, 1028217
Total [candidate] (10.767 s) : 0, 10767301
section appsec
Agent [baseline] (1.196 s) : 0, 1195794
Total [baseline] (11.108 s) : 0, 11107660
Agent [candidate] (1.203 s) : 0, 1203337
Total [candidate] (11.095 s) : 0, 11095115
section iast
Agent [baseline] (1.153 s) : 0, 1152753
Total [baseline] (11.003 s) : 0, 11002693
Agent [candidate] (1.156 s) : 0, 1156124
Total [candidate] (11.009 s) : 0, 11009439
section profiling
Agent [baseline] (1.166 s) : 0, 1165795
Total [baseline] (11.079 s) : 0, 11078888
Agent [candidate] (1.164 s) : 0, 1163994
Total [candidate] (11.062 s) : 0, 11061700
gantt
title petclinic - break down per module: candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.472 ms) : 0, 1472
crashtracking [candidate] (1.489 ms) : 0, 1489
BytebuddyAgent [baseline] (694.594 ms) : 0, 694594
BytebuddyAgent [candidate] (701.219 ms) : 0, 701219
GlobalTracer [baseline] (242.242 ms) : 0, 242242
GlobalTracer [candidate] (244.188 ms) : 0, 244188
AppSec [baseline] (32.897 ms) : 0, 32897
AppSec [candidate] (33.241 ms) : 0, 33241
Debugger [baseline] (6.413 ms) : 0, 6413
Debugger [candidate] (6.487 ms) : 0, 6487
Remote Config [baseline] (699.96 µs) : 0, 700
Remote Config [candidate] (698.515 µs) : 0, 699
Telemetry [baseline] (9.336 ms) : 0, 9336
Telemetry [candidate] (9.227 ms) : 0, 9227
Flare Poller [baseline] (10.923 ms) : 0, 10923
Flare Poller [candidate] (10.263 ms) : 0, 10263
section appsec
crashtracking [baseline] (1.445 ms) : 0, 1445
crashtracking [candidate] (1.467 ms) : 0, 1467
BytebuddyAgent [baseline] (718.584 ms) : 0, 718584
BytebuddyAgent [candidate] (723.05 ms) : 0, 723050
GlobalTracer [baseline] (234.477 ms) : 0, 234477
GlobalTracer [candidate] (236.113 ms) : 0, 236113
AppSec [baseline] (176.085 ms) : 0, 176085
AppSec [candidate] (177.098 ms) : 0, 177098
Debugger [baseline] (6.2 ms) : 0, 6200
Debugger [candidate] (6.134 ms) : 0, 6134
Remote Config [baseline] (652.132 µs) : 0, 652
Remote Config [candidate] (658.816 µs) : 0, 659
Telemetry [baseline] (8.524 ms) : 0, 8524
Telemetry [candidate] (8.486 ms) : 0, 8486
Flare Poller [baseline] (4.016 ms) : 0, 4016
Flare Poller [candidate] (3.959 ms) : 0, 3959
IAST [baseline] (24.725 ms) : 0, 24725
IAST [candidate] (25.075 ms) : 0, 25075
section iast
crashtracking [baseline] (1.458 ms) : 0, 1458
crashtracking [candidate] (1.466 ms) : 0, 1466
BytebuddyAgent [baseline] (816.696 ms) : 0, 816696
BytebuddyAgent [candidate] (817.614 ms) : 0, 817614
GlobalTracer [baseline] (231.858 ms) : 0, 231858
GlobalTracer [candidate] (233.392 ms) : 0, 233392
AppSec [baseline] (35.477 ms) : 0, 35477
AppSec [candidate] (35.801 ms) : 0, 35801
Debugger [baseline] (6.123 ms) : 0, 6123
Debugger [candidate] (6.158 ms) : 0, 6158
Remote Config [baseline] (601.509 µs) : 0, 602
Remote Config [candidate] (611.796 µs) : 0, 612
Telemetry [baseline] (8.582 ms) : 0, 8582
Telemetry [candidate] (8.612 ms) : 0, 8612
Flare Poller [baseline] (4.26 ms) : 0, 4260
Flare Poller [candidate] (4.187 ms) : 0, 4187
IAST [baseline] (26.286 ms) : 0, 26286
IAST [candidate] (26.847 ms) : 0, 26847
section profiling
crashtracking [baseline] (1.442 ms) : 0, 1442
crashtracking [candidate] (1.431 ms) : 0, 1431
BytebuddyAgent [baseline] (722.954 ms) : 0, 722954
BytebuddyAgent [candidate] (722.7 ms) : 0, 722700
GlobalTracer [baseline] (218.245 ms) : 0, 218245
GlobalTracer [candidate] (217.71 ms) : 0, 217710
AppSec [baseline] (33.258 ms) : 0, 33258
AppSec [candidate] (33.053 ms) : 0, 33053
Debugger [baseline] (7.274 ms) : 0, 7274
Debugger [candidate] (6.466 ms) : 0, 6466
Remote Config [baseline] (710.461 µs) : 0, 710
Remote Config [candidate] (706.752 µs) : 0, 707
Telemetry [baseline] (15.802 ms) : 0, 15802
Telemetry [candidate] (16.516 ms) : 0, 16516
Flare Poller [baseline] (4.334 ms) : 0, 4334
Flare Poller [candidate] (4.239 ms) : 0, 4239
ProfilingAgent [baseline] (108.355 ms) : 0, 108355
ProfilingAgent [candidate] (107.521 ms) : 0, 107521
Profiling [baseline] (109.76 ms) : 0, 109760
Profiling [candidate] (109.326 ms) : 0, 109326
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 12 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section baseline
no_agent (37.577 ms) : 37264, 37890
. : milestone, 37577,
appsec (47.59 ms) : 47166, 48014
. : milestone, 47590,
code_origins (45.006 ms) : 44629, 45384
. : milestone, 45006,
iast (44.464 ms) : 44082, 44845
. : milestone, 44464,
profiling (47.078 ms) : 46645, 47511
. : milestone, 47078,
tracing (44.131 ms) : 43755, 44508
. : milestone, 44131,
section candidate
no_agent (36.505 ms) : 36208, 36802
. : milestone, 36505,
appsec (48.969 ms) : 48541, 49397
. : milestone, 48969,
code_origins (44.148 ms) : 43754, 44542
. : milestone, 44148,
iast (44.039 ms) : 43670, 44407
. : milestone, 44039,
profiling (46.707 ms) : 46292, 47121
. : milestone, 46707,
tracing (45.234 ms) : 44842, 45626
. : milestone, 45234,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section baseline
no_agent (4.511 ms) : 4454, 4569
. : milestone, 4511,
iast (9.507 ms) : 9344, 9671
. : milestone, 9507,
iast_FULL (15.653 ms) : 15338, 15968
. : milestone, 15653,
iast_GLOBAL (10.845 ms) : 10653, 11036
. : milestone, 10845,
profiling (9.005 ms) : 8856, 9155
. : milestone, 9005,
tracing (7.913 ms) : 7798, 8027
. : milestone, 7913,
section candidate
no_agent (4.307 ms) : 4253, 4362
. : milestone, 4307,
iast (9.303 ms) : 9152, 9454
. : milestone, 9303,
iast_FULL (14.362 ms) : 14080, 14645
. : milestone, 14362,
iast_GLOBAL (11.254 ms) : 11051, 11457
. : milestone, 11254,
profiling (9.094 ms) : 8952, 9235
. : milestone, 9094,
tracing (7.689 ms) : 7568, 7810
. : milestone, 7689,
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~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section baseline
no_agent (1.474 ms) : 1462, 1485
. : milestone, 1474,
appsec (3.68 ms) : 3464, 3897
. : milestone, 3680,
iast (2.207 ms) : 2144, 2270
. : milestone, 2207,
iast_GLOBAL (2.25 ms) : 2186, 2314
. : milestone, 2250,
profiling (2.05 ms) : 1998, 2101
. : milestone, 2050,
tracing (2.022 ms) : 1973, 2072
. : milestone, 2022,
section candidate
no_agent (1.473 ms) : 1461, 1484
. : milestone, 1473,
appsec (3.751 ms) : 3534, 3969
. : milestone, 3751,
iast (2.204 ms) : 2140, 2267
. : milestone, 2204,
iast_GLOBAL (2.249 ms) : 2186, 2313
. : milestone, 2249,
profiling (2.044 ms) : 1993, 2095
. : milestone, 2044,
tracing (2.027 ms) : 1977, 2077
. : milestone, 2027,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~1c997f9322, baseline=1.55.0-SNAPSHOT~60a3b9d880
dateFormat X
axisFormat %s
section baseline
no_agent (15.419 s) : 15419000, 15419000
. : milestone, 15419000,
appsec (15.089 s) : 15089000, 15089000
. : milestone, 15089000,
iast (18.537 s) : 18537000, 18537000
. : milestone, 18537000,
iast_GLOBAL (18.053 s) : 18053000, 18053000
. : milestone, 18053000,
profiling (14.885 s) : 14885000, 14885000
. : milestone, 14885000,
tracing (15.062 s) : 15062000, 15062000
. : milestone, 15062000,
section candidate
no_agent (14.975 s) : 14975000, 14975000
. : milestone, 14975000,
appsec (15.059 s) : 15059000, 15059000
. : milestone, 15059000,
iast (18.468 s) : 18468000, 18468000
. : milestone, 18468000,
iast_GLOBAL (17.633 s) : 17633000, 17633000
. : milestone, 17633000,
profiling (15.739 s) : 15739000, 15739000
. : milestone, 15739000,
tracing (14.865 s) : 14865000, 14865000
. : milestone, 14865000,
|
3245121
to
9c634ef
Compare
// fall-through and check for non-datadog span data | ||
} else if (OTEL_CONTEXT_ROOT_SPAN_KEY.equals(key.toString())) { | ||
AgentSpan span = AgentSpan.fromContext(delegate); | ||
if (span != null) { |
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.
Should we add the same span.isValid()
check here for consistency?
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 was unsure about this one but I'm happy that you reacted on this one. Perhaps yes if we want to have the caller method to be consistent about the returned value in all cases
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.
done in 1c997f9
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
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.
Nice!
What Does This Do
Motivation
Additional Notes
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: [PROJ-IDENT]