-
Notifications
You must be signed in to change notification settings - Fork 298
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
Ensure Propagators are still run when DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT=ignore
#8604
Conversation
BenchmarksStartupLoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 14 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~a4fa02b05b, baseline=1.48.0-SNAPSHOT~32ca4c67e9
dateFormat X
axisFormat %s
section baseline
no_agent (1.369 ms) : 1349, 1389
. : milestone, 1369,
appsec (1.727 ms) : 1704, 1751
. : milestone, 1727,
appsec_no_iast (1.732 ms) : 1708, 1755
. : milestone, 1732,
code_origins (1.67 ms) : 1642, 1698
. : milestone, 1670,
iast (1.516 ms) : 1490, 1542
. : milestone, 1516,
profiling (1.572 ms) : 1548, 1597
. : milestone, 1572,
tracing (1.509 ms) : 1484, 1534
. : milestone, 1509,
section candidate
no_agent (1.371 ms) : 1352, 1390
. : milestone, 1371,
appsec (1.748 ms) : 1724, 1771
. : milestone, 1748,
appsec_no_iast (1.744 ms) : 1720, 1767
. : milestone, 1744,
code_origins (1.69 ms) : 1662, 1717
. : milestone, 1690,
iast (1.503 ms) : 1478, 1527
. : milestone, 1503,
profiling (1.532 ms) : 1507, 1556
. : milestone, 1532,
tracing (1.522 ms) : 1497, 1546
. : milestone, 1522,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~a4fa02b05b, baseline=1.48.0-SNAPSHOT~32ca4c67e9
dateFormat X
axisFormat %s
section baseline
no_agent (391.305 µs) : 371, 411
. : milestone, 391,
iast (514.077 µs) : 492, 536
. : milestone, 514,
iast_FULL (734.8 µs) : 713, 757
. : milestone, 735,
iast_GLOBAL (566.328 µs) : 544, 589
. : milestone, 566,
iast_HARDCODED_SECRET_DISABLED (523.417 µs) : 501, 546
. : milestone, 523,
iast_INACTIVE (458.866 µs) : 438, 480
. : milestone, 459,
iast_TELEMETRY_OFF (501.913 µs) : 480, 523
. : milestone, 502,
tracing (461.144 µs) : 440, 482
. : milestone, 461,
section candidate
no_agent (379.738 µs) : 360, 400
. : milestone, 380,
iast (516.444 µs) : 494, 538
. : milestone, 516,
iast_FULL (732.837 µs) : 711, 755
. : milestone, 733,
iast_GLOBAL (572.564 µs) : 549, 596
. : milestone, 573,
iast_HARDCODED_SECRET_DISABLED (519.496 µs) : 498, 541
. : milestone, 519,
iast_INACTIVE (471.121 µs) : 449, 493
. : milestone, 471,
iast_TELEMETRY_OFF (502.673 µs) : 481, 524
. : milestone, 503,
tracing (476.238 µs) : 455, 497
. : milestone, 476,
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~a4fa02b05b, baseline=1.48.0-SNAPSHOT~32ca4c67e9
dateFormat X
axisFormat %s
section baseline
no_agent (1.473 ms) : 1461, 1485
. : milestone, 1473,
appsec (2.331 ms) : 2288, 2375
. : milestone, 2331,
iast (2.112 ms) : 2056, 2167
. : milestone, 2112,
iast_GLOBAL (2.151 ms) : 2096, 2207
. : milestone, 2151,
profiling (1.966 ms) : 1922, 2010
. : milestone, 1966,
tracing (1.951 ms) : 1909, 1993
. : milestone, 1951,
section candidate
no_agent (1.47 ms) : 1458, 1481
. : milestone, 1470,
appsec (2.331 ms) : 2288, 2375
. : milestone, 2331,
iast (2.115 ms) : 2059, 2170
. : milestone, 2115,
iast_GLOBAL (2.163 ms) : 2107, 2219
. : milestone, 2163,
profiling (1.962 ms) : 1919, 2006
. : milestone, 1962,
tracing (1.929 ms) : 1887, 1971
. : milestone, 1929,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~a4fa02b05b, baseline=1.48.0-SNAPSHOT~32ca4c67e9
dateFormat X
axisFormat %s
section baseline
no_agent (14.675 s) : 14675000, 14675000
. : milestone, 14675000,
appsec (15.048 s) : 15048000, 15048000
. : milestone, 15048000,
iast (18.147 s) : 18147000, 18147000
. : milestone, 18147000,
iast_GLOBAL (17.996 s) : 17996000, 17996000
. : milestone, 17996000,
profiling (14.963 s) : 14963000, 14963000
. : milestone, 14963000,
tracing (15.007 s) : 15007000, 15007000
. : milestone, 15007000,
section candidate
no_agent (15.342 s) : 15342000, 15342000
. : milestone, 15342000,
appsec (15.243 s) : 15243000, 15243000
. : milestone, 15243000,
iast (18.596 s) : 18596000, 18596000
. : milestone, 18596000,
iast_GLOBAL (18.124 s) : 18124000, 18124000
. : milestone, 18124000,
profiling (15.158 s) : 15158000, 15158000
. : milestone, 15158000,
tracing (14.878 s) : 14878000, 14878000
. : milestone, 14878000,
|
@@ -1511,23 +1511,27 @@ private DDSpanContext buildSpanContext() { | |||
if (parentContext != null | |||
&& parentContext.isRemote() | |||
&& Config.get().getTracePropagationBehaviorExtract() |
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.
can we fetch this value once since it's called several time and it's used in several places? It will save few calls
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.
my understanding from @dougqh is that this chain of calls gets constant folded, so storing the value locally doesn't actually save much - that said it can make the code more readable
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 for having addressed the comments
What Does This Do
Ensures that extraction still occurs for all incoming headers, and if
DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT=ignore
, then start a new tracecontext when it is being built from remote context inCoreTracer
.Motivation
This PR is made to fix the following failures from system-tests CI where other headers are not being seen as part of the span.
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: APMAPI-1251