Flush on tracer close if CI Visibility enabled#6985
Merged
nikita-tkachenko-datadog merged 1 commit intomasterfrom May 6, 2024
Merged
Flush on tracer close if CI Visibility enabled#6985nikita-tkachenko-datadog merged 1 commit intomasterfrom
nikita-tkachenko-datadog merged 1 commit intomasterfrom
Conversation
mcculls
approved these changes
May 6, 2024
BenchmarksStartupLoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.34.0-SNAPSHOT~ec93bc5cb9, baseline=1.34.0-SNAPSHOT~dd4d2fee53
dateFormat X
axisFormat %s
section baseline
no_agent (1.325 ms) : 1306, 1344
. : milestone, 1325,
appsec (1.736 ms) : 1712, 1759
. : milestone, 1736,
appsec_no_iast (1.726 ms) : 1701, 1751
. : milestone, 1726,
iast (1.475 ms) : 1452, 1497
. : milestone, 1475,
profiling (1.514 ms) : 1490, 1537
. : milestone, 1514,
tracing (1.455 ms) : 1430, 1481
. : milestone, 1455,
section candidate
no_agent (1.345 ms) : 1325, 1365
. : milestone, 1345,
appsec (1.718 ms) : 1693, 1743
. : milestone, 1718,
appsec_no_iast (1.724 ms) : 1700, 1748
. : milestone, 1724,
iast (1.486 ms) : 1464, 1509
. : milestone, 1486,
profiling (1.499 ms) : 1474, 1523
. : milestone, 1499,
tracing (1.48 ms) : 1455, 1505
. : milestone, 1480,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.34.0-SNAPSHOT~ec93bc5cb9, baseline=1.34.0-SNAPSHOT~dd4d2fee53
dateFormat X
axisFormat %s
section baseline
no_agent (375.608 µs) : 356, 396
. : milestone, 376,
iast (481.161 µs) : 461, 502
. : milestone, 481,
iast_FULL (546.749 µs) : 526, 568
. : milestone, 547,
iast_GLOBAL (501.923 µs) : 481, 523
. : milestone, 502,
iast_HARDCODED_SECRET_DISABLED (472.58 µs) : 452, 493
. : milestone, 473,
iast_INACTIVE (458.942 µs) : 438, 480
. : milestone, 459,
iast_TELEMETRY_OFF (474.535 µs) : 454, 495
. : milestone, 475,
tracing (453.648 µs) : 432, 475
. : milestone, 454,
section candidate
no_agent (368.998 µs) : 349, 389
. : milestone, 369,
iast (478.898 µs) : 458, 500
. : milestone, 479,
iast_FULL (549.321 µs) : 529, 570
. : milestone, 549,
iast_GLOBAL (500.911 µs) : 481, 521
. : milestone, 501,
iast_HARDCODED_SECRET_DISABLED (479.005 µs) : 458, 500
. : milestone, 479,
iast_INACTIVE (459.269 µs) : 438, 480
. : milestone, 459,
iast_TELEMETRY_OFF (472.553 µs) : 451, 494
. : milestone, 473,
tracing (448.488 µs) : 428, 469
. : milestone, 448,
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.34.0-SNAPSHOT~ec93bc5cb9, baseline=1.34.0-SNAPSHOT~dd4d2fee53
dateFormat X
axisFormat %s
section baseline
no_agent (1.47 ms) : 1458, 1482
. : milestone, 1470,
appsec (2.204 ms) : 2170, 2237
. : milestone, 2204,
iast (1.875 ms) : 1840, 1910
. : milestone, 1875,
iast_GLOBAL (1.907 ms) : 1872, 1941
. : milestone, 1907,
profiling (1.835 ms) : 1802, 1868
. : milestone, 1835,
tracing (1.835 ms) : 1803, 1867
. : milestone, 1835,
section candidate
no_agent (1.471 ms) : 1459, 1482
. : milestone, 1471,
appsec (2.222 ms) : 2187, 2256
. : milestone, 2222,
iast (1.881 ms) : 1846, 1916
. : milestone, 1881,
iast_GLOBAL (1.925 ms) : 1889, 1960
. : milestone, 1925,
profiling (1.834 ms) : 1801, 1868
. : milestone, 1834,
tracing (1.833 ms) : 1801, 1865
. : milestone, 1833,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.34.0-SNAPSHOT~ec93bc5cb9, baseline=1.34.0-SNAPSHOT~dd4d2fee53
dateFormat X
axisFormat %s
section baseline
no_agent (15.37 s) : 15370000, 15370000
. : milestone, 15370000,
appsec (15.031 s) : 15031000, 15031000
. : milestone, 15031000,
iast (18.666 s) : 18666000, 18666000
. : milestone, 18666000,
iast_GLOBAL (17.794 s) : 17794000, 17794000
. : milestone, 17794000,
profiling (15.41 s) : 15410000, 15410000
. : milestone, 15410000,
tracing (14.978 s) : 14978000, 14978000
. : milestone, 14978000,
section candidate
no_agent (15.364 s) : 15364000, 15364000
. : milestone, 15364000,
appsec (15.171 s) : 15171000, 15171000
. : milestone, 15171000,
iast (18.491 s) : 18491000, 18491000
. : milestone, 18491000,
iast_GLOBAL (17.89 s) : 17890000, 17890000
. : milestone, 17890000,
profiling (14.885 s) : 14885000, 14885000
. : milestone, 14885000,
tracing (15.298 s) : 15298000, 15298000
. : milestone, 15298000,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Calls tracer flush when the tracer is closed if CI Visibility is enabled.
Motivation
Handling the following case:
If this is the last test in the suite, after it finishes the JVM shutdown is initiated. A shutdown hook is run that closes the tracer. Following that the test's async cleanup may either fail to complete before JVM terminates or may complete after the tracer has been closed, which will result in discarding it.
Dropping a trace may be fine for APM products, but for CI Visibility it is a requirement that every test span is reported.
Doing a synchronous flush before tracer close will write all the pending traces. This includes traces with
ROOT_BUFFEREDstatus, i.e. the ones whose root has finished but whose children are pending (the test trace described above fits this case).Jira ticket: CIVIS-9930