Skip to content

Consolidate and fix bugs in GitLab "download from Azure" scripts - #9103

Open
andrewlock wants to merge 6 commits into
masterfrom
andrew/fix-scripts
Open

Consolidate and fix bugs in GitLab "download from Azure" scripts#9103
andrewlock wants to merge 6 commits into
masterfrom
andrew/fix-scripts

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

  • Consolidates the 3 "wait for build and download artifacts from Azure" scripts into one helper
  • Fixes several minor bugs in the download logic

Reason for change

As part of #9083, @NachoEchevarria flagged some potential improvements to the scripts, for example a cancelled build today would cause flakiness for the download scripts. We now also have 3 copies of essentially the same code, and AI spotted several other bugs, all fixed here

Implementation details

  • Extracted shared logic into a helper bash script
    • Arguably we could/should make this a Nuke target given the bash complexity, but given this all goes away completely when we move to GitLab fully, I think the current approach is fine. It's largely copy+paste with some generalisation.
  • Fixed missing diagnostics when the loop timed out.
  • Fixed an unnecessary 100s wait on each successful run
  • Fixed a cancelled build causing the jobs to sit waiting for artifacts that will never run, before eventually timing out.
  • Added retries for cancelled/failed builds, looking for "better" candidate builds
    • Can happen if there are multiple builds running against the same commit (e.g. manual builds)
    • Only checks a given build once, so bounded

Test coverage

This is the test

Other details

Note that the .gitlab/download-serverless-artifacts.sh and .gitlab/download-single-step-artifacts.sh have different paths they take when running against tags (during release). .gitlab/download-nuget-packages-to-sign.sh does not have this path, as it does not need to run on tags (there may be an edge case there where we are running - need to check)

… scripts

download-serverless-artifacts.sh, download-single-step-artifacts.sh and
download-nuget-packages-to-sign.sh each duplicated the same ~90 lines to
resolve an Azure DevOps build for the current commit and poll for a named
artifact. Every fix to this logic so far (#8782, #7870) had to be applied
to multiple copies, and the copies had already drifted cosmetically.

Move the shared logic into a new sourced helper. The three
scripts keep only what's specific to them: their own tag/release fallback
paths and post-download layout.
… sleep

Fixes wwo bugs in the Azure artifact poll loop, present since it was first written:

1. `(( STARTED < ARTIFACT_TIMEOUT ))` ran as a bare statement under
   `set -e`. When the loop genuinely timed out, this evaluated false and
   aborted the script right there, so the "ERROR: No downloadUrl found"
   block below it - added in #7870 specifically to diagnose timeouts -
   could never run. Removed; the existing `if [ -z "$downloadUrl" ]`
   check already covers the timeout case.

2. `sleep "$ARTIFACT_POLL_INTERVAL"` ran unconditionally at the end of
   the loop body, after the artifact had already been found, adding a
   pointless 100s wait to every successful run (300s for the three
   sequential artifacts in download-nuget-packages-to-sign.sh). Moved
   the sleep and counter increment inside the "not found yet" branch.
…fact

download_azure_artifact polled the artifact endpoint for up to 40 minutes without ever checking whether the selected Azure DevOps build was still capable of producing the artifact, so a failed/skipped publishing stage (or a canceled build) meant waiting out the full timeout for nothing - delaying sign-nuget-packages, package-oci and aws-lambda-layer.

Build `result` alone is not a safe signal (failed builds routinely still
publish every artifact), so this checks the specific pipeline stage that
publishes each artifact (via the build timeline) and falls back to the
whole-build status only when that stage can't be resolved, so an unmapped
artifact or a future pipeline rename degrades gracefully instead of
breaking releases. Before failing, it also looks for a different build of
the exact same commit that can still supply the artifact, to recover from
a newer build of the same commit failing while an earlier one succeeded.
…iven retry

Replace the previous commit's stage-timeline doom detection and silent
build-switching with a simpler rule: poll until the build finishes; if the
artifact still isn't there, that build is done for.

download_azure_artifact now returns a documented AZDO_ARTIFACT_UNAVAILABLE code instead of exiting, and the new download_azure_artifacts_from_one_build wrapper owns recovery. This ensures jobs waiting for multiple artifacts can discard all artifacts downloaded so far and retry against a different build so artifacts are never mixed across builds, and fails fast when resolve_azure_build_id has no better alternative left to offer.
@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Aug 24, 2026
@andrewlock
andrewlock requested review from a team as code owners August 24, 2026 10:45
@pr-commenter

pr-commenter Bot commented Aug 24, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-24 11:34:42

Comparing candidate commit 8603680 in PR branch andrew/fix-scripts with baseline commit e476ea7 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 66 known flaky benchmarks, 60 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-6317.813op/s; -5909.658op/s] or [-7.212%; -6.746%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [-33.091ms; -11.334ms] or [-16.417%; -5.623%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9087.480op/s; -8577.220op/s] or [-10.775%; -10.170%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟥 throughput [-8480.869op/s; -7165.398op/s] or [-8.623%; -7.286%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.605KB; +1.605KB] or [+48.760%; +48.776%]
  • 🟥 execution_time [+311.563ms; +315.040ms] or [+154.609%; +156.334%]
  • 🟥 throughput [-60.813op/s; -56.145op/s] or [-10.941%; -10.102%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 allocated_mem [+1.014KB; +1.014KB] or [+37.603%; +37.615%]
  • 🟥 execution_time [+377.103ms; +381.369ms] or [+297.934%; +301.305%]
  • 🟩 throughput [+67.810op/s; +72.914op/s] or [+8.940%; +9.613%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 allocated_mem [+1.090KB; +1.090KB] or [+40.417%; +40.429%]
  • 🟥 execution_time [+397.528ms; +402.012ms] or [+351.797%; +355.765%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+4.725KB; +4.726KB] or [+99.482%; +99.497%]
  • 🟥 throughput [-61653.775op/s; -60952.371op/s] or [-47.970%; -47.424%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+3.848KB; +3.848KB] or [+81.379%; +81.391%]
  • 🟩 execution_time [-15.205ms; -11.021ms] or [-7.101%; -5.147%]
  • 🟥 throughput [-60187.255op/s; -57423.180op/s] or [-43.933%; -41.916%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+4.576KB; +4.576KB] or [+98.954%; +98.966%]
  • 🟥 throughput [-48980.737op/s; -46714.553op/s] or [-44.284%; -42.235%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.348KB; +1.348KB] or [+109.063%; +109.078%]
  • 🟥 throughput [-284986.789op/s; -280431.332op/s] or [-29.099%; -28.633%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+511 bytes; +512 bytes] or [+41.822%; +41.834%]
  • 🟩 execution_time [-26.452ms; -21.565ms] or [-11.796%; -9.617%]
  • 🟥 throughput [-92836.481op/s; -68128.585op/s] or [-9.918%; -7.278%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.312KB; +1.312KB] or [+108.600%; +108.616%]
  • 🟥 throughput [-169249.847op/s; -153334.533op/s] or [-24.318%; -22.031%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72267.528op/s; -71499.192op/s] or [-48.635%; -48.118%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-74092.686op/s; -71186.188op/s] or [-47.144%; -45.295%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56841.652op/s; -54221.442op/s] or [-45.282%; -43.194%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+323801.715op/s; +353034.744op/s] or [+10.797%; +11.772%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-18.361ms; -13.675ms] or [-8.464%; -6.303%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟩 allocated_mem [-13.759KB; -13.756KB] or [-42.324%; -42.316%]
  • 🟥 execution_time [+300.096ms; +300.835ms] or [+149.948%; +150.317%]
  • 🟩 throughput [+984.860op/s; +1004.724op/s] or [+10.878%; +11.097%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.736ms; +303.835ms] or [+151.662%; +153.225%]
  • 🟩 throughput [+2359.401op/s; +2585.096op/s] or [+18.046%; +19.772%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.332ms; +302.942ms] or [+151.284%; +152.598%]
  • 🟩 throughput [+1900.946op/s; +2028.686op/s] or [+18.353%; +19.586%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+295.882ms; +297.228ms] or [+145.325%; +145.987%]
  • 🟩 throughput [+479.755op/s; +524.244op/s] or [+12.718%; +13.898%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+300.102ms; +302.221ms] or [+146.709%; +147.745%]
  • 🟩 throughput [+2696.980op/s; +2761.504op/s] or [+39.182%; +40.120%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+300.710ms; +302.258ms] or [+150.295%; +151.068%]
  • 🟩 throughput [+1413.718op/s; +1436.495op/s] or [+28.061%; +28.513%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • 🟩 execution_time [-144.111µs; -139.353µs] or [-29.588%; -28.611%]
  • 🟩 throughput [+826.954op/s; +860.463op/s] or [+40.276%; +41.908%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0

  • 🟩 execution_time [-124.719µs; -97.748µs] or [-28.604%; -22.419%]
  • 🟩 throughput [+717.013op/s; +845.192op/s] or [+31.173%; +36.746%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • 🟩 execution_time [-130.470µs; -108.094µs] or [-27.953%; -23.160%]
  • 🟩 throughput [+668.830op/s; +758.078op/s] or [+30.875%; +34.994%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • 🟩 execution_time [-124.986µs; -119.918µs] or [-33.745%; -32.377%]
  • 🟩 throughput [+1303.610op/s; +1369.004op/s] or [+48.280%; +50.702%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟩 execution_time [-95.095µs; -71.256µs] or [-30.359%; -22.748%]
  • 🟩 throughput [+1037.158op/s; +1248.457op/s] or [+32.331%; +38.918%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • 🟩 execution_time [-130.985µs; -108.255µs] or [-35.832%; -29.614%]
  • 🟩 throughput [+1208.283op/s; +1358.950op/s] or [+43.360%; +48.767%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.871ms; +300.636ms] or [+149.667%; +150.048%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟥 execution_time [+409.372ms; +418.499ms] or [+444.800%; +454.717%]
  • 🟩 throughput [+765.382op/s; +985.195op/s] or [+6.289%; +8.095%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+298.035ms; +349.688ms] or [+226.295%; +265.515%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+329.689ms; +386.112ms] or [+151.588%; +177.531%]
  • 🟥 throughput [-548.990op/s; -501.393op/s] or [-49.744%; -45.431%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+205.581ms; +338.863ms] or [+87.610%; +144.409%]
  • 🟥 throughput [-682.634op/s; -598.793op/s] or [-45.532%; -39.940%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+357.265ms; +368.427ms] or [+213.686%; +220.362%]
  • 🟥 throughput [-427.640op/s; -391.114op/s] or [-29.776%; -27.233%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • 🟩 execution_time [-405.312µs; -169.644µs] or [-14.100%; -5.902%]
  • unstable throughput [+27.771op/s; +79.601op/s] or [+7.983%; +22.881%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1

  • unstable throughput [-21.083op/s; +51.926op/s] or [-3.935%; +9.692%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟩 execution_time [-171.760µs; -125.349µs] or [-8.701%; -6.350%]
  • 🟩 throughput [+35.728op/s; +48.830op/s] or [+7.053%; +9.639%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.947ms; +303.818ms] or [+152.055%; +152.997%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+299.846ms; +301.189ms] or [+150.253%; +150.927%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+303.234ms; +307.325ms] or [+152.332%; +154.387%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.019ms; +301.412ms] or [+150.659%; +151.359%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+296.949ms; +299.058ms] or [+146.828%; +147.871%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+301.573ms; +305.673ms] or [+152.851%; +154.928%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.825ms; +303.157ms] or [+150.987%; +152.157%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+298.495ms; +301.922ms] or [+148.772%; +150.481%]
  • 🟩 throughput [+36567.839op/s; +43657.187op/s] or [+7.261%; +8.669%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+300.904ms; +303.679ms] or [+149.697%; +151.077%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-17.134ms; -13.498ms] or [-7.967%; -6.277%]
  • 🟩 throughput [+19779.156op/s; +26696.251op/s] or [+5.426%; +7.324%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+6.813µs; +50.042µs] or [+1.683%; +12.361%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-19.299KB; -19.276KB] or [-7.040%; -7.031%]
  • unstable execution_time [-27.289µs; +31.444µs] or [-5.394%; +6.215%]
  • unstable throughput [-110.383op/s; +90.251op/s] or [-5.508%; +4.504%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • 🟩 allocated_mem [-18.661KB; -18.642KB] or [-6.803%; -6.796%]
  • unstable execution_time [-76.642µs; -16.319µs] or [-13.282%; -2.828%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+9.957µs; +16.069µs] or [+23.536%; +37.983%]
  • 🟥 throughput [-6347.361op/s; -4255.672op/s] or [-26.720%; -17.915%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-13.901µs; -5.941µs] or [-21.567%; -9.218%]
  • unstable throughput [+1491.274op/s; +3184.679op/s] or [+9.149%; +19.539%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.431ms; +302.965ms] or [+152.360%; +153.135%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+303.027ms; +305.530ms] or [+154.240%; +155.514%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+299.119ms; +301.267ms] or [+149.746%; +150.822%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+297.633ms; +299.646ms] or [+148.343%; +149.347%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+303.482ms; +304.685ms] or [+152.394%; +152.998%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+302.149ms; +304.378ms] or [+153.231%; +154.361%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.573ms; +300.681ms] or [+149.428%; +149.981%]
  • 🟩 throughput [+60974218.681op/s; +61316877.185op/s] or [+44.405%; +44.655%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • unstable execution_time [+336.412ms; +396.138ms] or [+418.388%; +492.668%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.742ms; +300.726ms] or [+149.505%; +149.995%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+64143.750op/s; +80029.256op/s] or [+5.989%; +7.472%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+83319.316op/s; +90642.719op/s] or [+8.275%; +9.002%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+43464.098op/s; +48940.882op/s] or [+7.892%; +8.887%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 throughput [-39212.272op/s; -34801.038op/s] or [-5.739%; -5.093%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (9103) and master.

✅ No regressions detected

📄 View the full report (charts + all metrics) →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant