Skip to content

Fix OTLP HTTP/protobuf export failures and improve OTLP integration test reliability#8449

Draft
bouwkast wants to merge 5 commits intomasterfrom
steven/attempt-to-fix-otel-tests-failing-constantly
Draft

Fix OTLP HTTP/protobuf export failures and improve OTLP integration test reliability#8449
bouwkast wants to merge 5 commits intomasterfrom
steven/attempt-to-fix-otel-tests-failing-constantly

Conversation

@bouwkast
Copy link
Copy Markdown
Collaborator

@bouwkast bouwkast commented Apr 13, 2026

Summary of changes

This fixes some export failures occurring in OTLP Logs/Metrics exports that were caused by both bugs within the exporter code (forced HTTP/2 and a unclosed _otlpExporter) and also with some test changes.

Reason for change

I've been noticing on many of my CI runs that I kept running into the following error that requires a retry:

[Error] Exception when sending logs OTLP HTTP request. System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.

On looking further I found a few issues of note:

  • The HttpClients for Logs/Metrics for our OTLP implementation forced HTTP/2. However, the test agent that we us only supports an HTTP/1.1 aiohttp server. Note: this is technically a production change for a test issue I'm fine reverting this and just leaving these tests as [Flaky]
  • OtlpSubmissionLogSink.DisposeAsync() never called _otlpExporter.Shutdown() which appears to have left the HttpClient open.
  • Tests used OTEL_LOG_EXPORT_INTERVAL instead of OTEL_BLRP_SCHEDULE_DELAY (former doesn't seem to exist ever or anymore)

Implementation details

It does seem that the test agent is a bit finicky to work with and since we don't use it very much anywhere else I opted to go for some polling strategies instead of single shots for getting request data.

  • Fix OTEL_LOG_EXPORT_INTERVAL to OTEL_BLRP_SCHEDULE_DELAY
  • Replace fire-and-forget /test/session/clear with ClearTestAgentSession retry helper
  • Replace single-GET data fetch with WaitForTestAgentData polling helper (30s timeout, 500ms interval)
  • Set OTEL_METRIC_EXPORT_INTERVAL=60000 so only the shutdown flush fires (one clean batch)
  • Set OTEL_BLRP_SCHEDULE_DELAY=500; The OpenTelemetry SDK has a hard 5s shutdown timeout that we hit so this should be good enough to get our data out and flush it before it is timed out. I'll add this to the Other Details as well. This seems to be the flakiest bit left
  • Remove [Flaky] from SubmitsOtlpMetrics and SubmitsOtlpLogs

Test coverage

I'm going to run the CI a few times against this to see if this helps get the tests running quicker and pass

Other details

Claude response on test agent HTTP/2 support

The test-agent's HTTP server on port 4318 is created in agent.py:

  otlp_http_app = make_otlp_http_app(agent)       # line 2436
  otlp_http_runner = web.AppRunner(otlp_http_app)  # line 2470
  otlp_http_site = web.TCPSite(otlp_http_runner, port=parsed_args.otlp_http_port)  # line 2490

  This is aiohttp.web -- its TCPSite serves HTTP/1.1 only. aiohttp does not support HTTP/2. You can see it declared as a dependency in
   setup.py:

  install_requires=[
      "aiohttp",
      ...
  ]

  There's no h2, hyper, hypercorn, or any other HTTP/2 library in the dependencies.

  For contrast, port 4317 (gRPC) uses grpc_aio.server() (line 2481), which speaks HTTP/2 natively -- that's why gRPC tests were never
  affected.

  Source: https://github.com/DataDog/dd-apm-test-agent -- setup.py for dependencies, ddapm_test_agent/agent.py lines 2436-2490 for
  server setup.

Claude response on OpenTelemetry SDK Log Shutdown Chain

 LoggerProviderSdk.Dispose() calls Processor.Shutdown(5000) -- hardcoded, not
  configurable. BatchExportProcessor.OnShutdown(5000) calls worker.Shutdown(5000)
  which does Thread.Join(5000). The worker thread runs PerformExport() which calls
  Exporter.Export() with no timeout parameter and no cancellation token. The OTLP
  exporter then calls HttpClient.SendAsync() with HttpClient.Timeout set from
  OTEL_EXPORTER_OTLP_TIMEOUT (default 10s). When the 5s Thread.Join expires before the
   10s HTTP timeout, the dispose path proceeds to cancel the in-flight request and
  dispose the worker. The export silently fails, data is lost, and the process exits
  with code 0.

  OTEL_BLRP_EXPORT_TIMEOUT (default 30s) is parsed and stored but never read during
  export or shutdown -- it's a dead field.

@bouwkast bouwkast added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Apr 13, 2026
@bouwkast bouwkast changed the title Steven/attempt to fix otel tests failing constantly Fix OTLP export CI timeout caused by forced HTTP/2 Apr 13, 2026
@bouwkast
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

dd-trace-dotnet-ci-bot bot commented Apr 13, 2026

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration73.32 ± (73.28 - 73.77) ms72.57 ± (72.65 - 73.02) ms-1.0%
.NET Framework 4.8 - Bailout
duration76.64 ± (76.33 - 76.77) ms79.88 ± (79.58 - 80.14) ms+4.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1076.53 ± (1076.44 - 1084.39) ms1079.94 ± (1075.58 - 1081.89) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.70 ± (22.64 - 22.76) ms22.58 ± (22.51 - 22.64) ms-0.5%
process.time_to_main_ms86.06 ± (85.74 - 86.37) ms84.56 ± (84.19 - 84.93) ms-1.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.83 ± (10.83 - 10.83) MB10.92 ± (10.92 - 10.93) MB+0.9%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.30 ± (22.27 - 22.33) ms22.64 ± (22.59 - 22.69) ms+1.5%✅⬆️
process.time_to_main_ms85.26 ± (85.08 - 85.45) ms87.40 ± (87.13 - 87.66) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.92 - 10.93) MB10.94 ± (10.94 - 10.95) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms232.21 ± (231.20 - 233.22) ms230.59 ± (229.50 - 231.68) ms-0.7%
process.time_to_main_ms530.61 ± (529.32 - 531.91) ms529.94 ± (528.52 - 531.35) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.49 ± (48.47 - 48.51) MB48.57 ± (48.55 - 48.59) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms20.97 ± (20.93 - 21.01) ms21.24 ± (21.19 - 21.29) ms+1.3%✅⬆️
process.time_to_main_ms72.75 ± (72.53 - 72.96) ms74.31 ± (73.98 - 74.63) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.62 ± (10.62 - 10.62) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.40 ± (21.34 - 21.45) ms21.51 ± (21.45 - 21.56) ms+0.5%✅⬆️
process.time_to_main_ms76.54 ± (76.25 - 76.83) ms76.61 ± (76.33 - 76.89) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.74 ± (10.74 - 10.74) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms383.36 ± (381.61 - 385.10) ms384.31 ± (382.02 - 386.60) ms+0.2%✅⬆️
process.time_to_main_ms527.80 ± (526.49 - 529.11) ms533.15 ± (531.59 - 534.70) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.97 ± (49.94 - 50.00) MB50.09 ± (50.07 - 50.12) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.65 ± (19.59 - 19.70) ms19.36 ± (19.32 - 19.39) ms-1.5%
process.time_to_main_ms73.64 ± (73.45 - 73.82) ms72.27 ± (72.09 - 72.45) ms-1.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.69 ± (7.68 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.51 ± (19.46 - 19.55) ms19.66 ± (19.60 - 19.71) ms+0.8%✅⬆️
process.time_to_main_ms74.05 ± (73.89 - 74.21) ms75.18 ± (74.91 - 75.46) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.70 - 7.72) MB7.73 ± (7.72 - 7.73) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms300.93 ± (298.62 - 303.25) ms302.74 ± (300.54 - 304.93) ms+0.6%✅⬆️
process.time_to_main_ms491.21 ± (489.99 - 492.44) ms490.36 ± (489.17 - 491.56) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.98 ± (36.96 - 37.00) MB37.08 ± (37.05 - 37.10) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.3%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration203.37 ± (203.65 - 204.51) ms209.56 ± (209.31 - 210.14) ms+3.0%✅⬆️
.NET Framework 4.8 - Bailout
duration206.89 ± (206.79 - 207.50) ms213.97 ± (213.45 - 214.37) ms+3.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1197.94 ± (1196.74 - 1202.50) ms1221.77 ± (1220.10 - 1226.98) ms+2.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms198.70 ± (198.26 - 199.15) ms203.86 ± (203.47 - 204.26) ms+2.6%✅⬆️
process.time_to_main_ms86.66 ± (86.39 - 86.92) ms89.55 ± (89.23 - 89.87) ms+3.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.98 ± (15.96 - 16.00) MB15.94 ± (15.91 - 15.96) MB-0.2%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+1.7%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms198.11 ± (197.82 - 198.41) ms202.20 ± (201.81 - 202.58) ms+2.1%✅⬆️
process.time_to_main_ms88.00 ± (87.75 - 88.25) ms90.46 ± (90.21 - 90.71) ms+2.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.06 - 16.11) MB15.98 ± (15.96 - 16.00) MB-0.7%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms411.25 ± (409.80 - 412.69) ms416.62 ± (415.26 - 417.97) ms+1.3%✅⬆️
process.time_to_main_ms539.65 ± (538.45 - 540.85) ms549.20 ± (547.77 - 550.63) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.28 ± (59.22 - 59.33) MB59.32 ± (59.28 - 59.36) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms203.54 ± (203.14 - 203.95) ms207.34 ± (206.91 - 207.77) ms+1.9%✅⬆️
process.time_to_main_ms75.47 ± (75.21 - 75.73) ms77.06 ± (76.77 - 77.35) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.23 ± (16.21 - 16.25) MB16.23 ± (16.21 - 16.26) MB-0.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 20)+1.0%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms203.68 ± (203.31 - 204.05) ms208.25 ± (207.87 - 208.64) ms+2.2%✅⬆️
process.time_to_main_ms76.44 ± (76.20 - 76.67) ms78.49 ± (78.27 - 78.70) ms+2.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.26 ± (16.23 - 16.28) MB16.27 ± (16.25 - 16.30) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)21 ± (20 - 21)+1.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms602.23 ± (599.78 - 604.68) ms601.64 ± (598.81 - 604.47) ms-0.1%
process.time_to_main_ms535.29 ± (534.15 - 536.44) ms546.11 ± (544.99 - 547.23) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.78 ± (61.69 - 61.87) MB61.65 ± (61.55 - 61.75) MB-0.2%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms201.65 ± (201.19 - 202.11) ms207.41 ± (206.92 - 207.90) ms+2.9%✅⬆️
process.time_to_main_ms74.77 ± (74.52 - 75.03) ms77.12 ± (76.88 - 77.35) ms+3.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.63 ± (11.61 - 11.65) MB11.61 ± (11.59 - 11.63) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms202.07 ± (201.76 - 202.38) ms205.63 ± (205.16 - 206.11) ms+1.8%✅⬆️
process.time_to_main_ms76.02 ± (75.82 - 76.23) ms77.88 ± (77.69 - 78.08) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.66 ± (11.65 - 11.68) MB11.67 ± (11.65 - 11.70) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.2%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms523.07 ± (518.41 - 527.73) ms526.91 ± (522.15 - 531.67) ms+0.7%✅⬆️
process.time_to_main_ms501.27 ± (500.39 - 502.14) ms506.50 ± (505.54 - 507.45) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.69 ± (50.63 - 50.75) MB50.71 ± (50.65 - 50.77) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.4%✅⬆️
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (73ms)  : 70, 75
    master - mean (74ms)  : 70, 77

    section Bailout
    This PR (8449) - mean (80ms)  : 76, 84
    master - mean (77ms)  : 74, 79

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (1,079ms)  : 1034, 1123
    master - mean (1,080ms)  : 1022, 1139

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (114ms)  : 107, 120
    master - mean (116ms)  : 108, 124

    section Bailout
    This PR (8449) - mean (117ms)  : 111, 123
    master - mean (114ms)  : 112, 117

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (797ms)  : 769, 825
    master - mean (800ms)  : 774, 826

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (102ms)  : 96, 108
    master - mean (100ms)  : 95, 105

    section Bailout
    This PR (8449) - mean (105ms)  : 100, 110
    master - mean (105ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (946ms)  : 908, 985
    master - mean (942ms)  : 910, 974

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (99ms)  : 95, 103
    master - mean (101ms)  : 97, 105

    section Bailout
    This PR (8449) - mean (103ms)  : 98, 108
    master - mean (101ms)  : 99, 103

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (826ms)  : 780, 872
    master - mean (825ms)  : 786, 863

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (210ms)  : 205, 214
    master - mean (204ms)  : 199, 209

    section Bailout
    This PR (8449) - mean (214ms)  : 209, 218
    master - mean (207ms)  : 204, 211

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (1,224ms)  : 1175, 1272
    master - mean (1,200ms)  : 1158, 1241

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (303ms)  : 297, 310
    master - mean (294ms)  : 288, 301

    section Bailout
    This PR (8449) - mean (302ms)  : 296, 308
    master - mean (295ms)  : 291, 300

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (1,006ms)  : 977, 1035
    master - mean (991ms)  : 966, 1017

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (293ms)  : 286, 300
    master - mean (288ms)  : 282, 294

    section Bailout
    This PR (8449) - mean (295ms)  : 290, 301
    master - mean (289ms)  : 283, 294

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (1,178ms)  : 1136, 1219
    master - mean (1,167ms)  : 1133, 1202

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8449) - mean (295ms)  : 289, 302
    master - mean (288ms)  : 281, 294

    section Bailout
    This PR (8449) - mean (294ms)  : 288, 300
    master - mean (288ms)  : 283, 293

    section CallTarget+Inlining+NGEN
    This PR (8449) - mean (1,067ms)  : 998, 1136
    master - mean (1,063ms)  : 980, 1145

Loading

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 13, 2026

Benchmarks

Benchmark execution time: 2026-04-17 13:35:19

Comparing candidate commit 7b707ac in PR branch steven/attempt-to-fix-otel-tests-failing-constantly with baseline commit 0435a3a in branch master.

Found 1 performance improvements and 2 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics, 87 known flaky benchmarks.

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.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-27906.330op/s; -25111.667op/s] or [-7.860%; -7.073%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-6760.198op/s; -6469.799op/s] or [-7.717%; -7.386%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟩 throughput [+7669.224op/s; +9024.162op/s] or [+5.210%; +6.130%]

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.Trace.ActivityBenchmark.StartStopWithChild net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.005%]
  • ignore execution_time [-1205.845µs; -246.499µs] or [-0.599%; -0.122%]
  • ignore throughput [-3105.172op/s; -2602.267op/s] or [-3.682%; -3.086%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1829.314µs; +1677.955µs] or [-0.913%; +0.837%]
  • 🟩 throughput [+8312.572op/s; +10667.819op/s] or [+6.987%; +8.967%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [+0.292ms; +2.493ms] or [+0.147%; +1.254%]
  • ignore throughput [-79.213op/s; +1027.927op/s] or [-0.081%; +1.045%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [+23 bytes; +24 bytes] or [+0.722%; +0.735%]
  • 🟥 execution_time [+317.503ms; +321.567ms] or [+157.556%; +159.573%]
  • ignore throughput [+19.597op/s; +23.344op/s] or [+3.526%; +4.200%]

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

  • ignore allocated_mem [+4 bytes; +4 bytes] or [+0.175%; +0.185%]
  • 🟥 execution_time [+384.546ms; +386.389ms] or [+303.815%; +305.271%]
  • ignore throughput [+8.334op/s; +11.997op/s] or [+1.099%; +1.582%]

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

  • ignore allocated_mem [+1 bytes; +2 bytes] or [+0.065%; +0.075%]
  • 🟥 execution_time [+392.501ms; +395.775ms] or [+347.349%; +350.246%]
  • ignore throughput [-2.842op/s; +0.223op/s] or [-0.401%; +0.031%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.005%]
  • ignore execution_time [-98.957µs; +478.321µs] or [-0.049%; +0.239%]
  • ignore throughput [+1417.152op/s; +1854.376op/s] or [+1.103%; +1.443%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.005%]
  • 🟩 execution_time [-15.626ms; -11.464ms] or [-7.298%; -5.354%]
  • 🟩 throughput [+8999.561op/s; +11838.107op/s] or [+6.569%; +8.641%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.002%]
  • ignore execution_time [-13.035ms; -8.902ms] or [-6.207%; -4.239%]
  • 🟩 throughput [+6176.387op/s; +8455.587op/s] or [+5.584%; +7.645%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.002%; +0.008%]
  • ignore execution_time [-978.715µs; -162.819µs] or [-0.487%; -0.081%]
  • ignore throughput [-12797.387op/s; -5741.164op/s] or [-1.307%; -0.586%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.002%; +0.005%]
  • 🟩 execution_time [-26.824ms; -21.959ms] or [-11.962%; -9.793%]
  • 🟩 throughput [+106533.121op/s; +129641.271op/s] or [+11.381%; +13.850%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-3.259ms; +1.076ms] or [-1.627%; +0.537%]
  • 🟩 throughput [+79429.784op/s; +95814.948op/s] or [+11.413%; +13.767%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-1119.880µs; -91.019µs] or [-0.558%; -0.045%]
  • ignore throughput [-239.900op/s; +637.907op/s] or [-0.161%; +0.429%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-0.475ms; +3.066ms] or [-0.240%; +1.547%]
  • 🟩 throughput [+10665.680op/s; +13628.637op/s] or [+6.786%; +8.672%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.733ms; +5.715ms] or [+0.884%; +2.914%]
  • 🟩 throughput [+6720.978op/s; +9348.044op/s] or [+5.354%; +7.447%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-316.874µs; -106.446µs] or [-0.158%; -0.053%]
  • ignore throughput [+47885.488op/s; +57322.551op/s] or [+1.457%; +1.744%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-2.702ms; -0.757ms] or [-1.336%; -0.375%]
  • 🟩 throughput [+451547.546op/s; +481549.070op/s] or [+15.057%; +16.057%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-18.801ms; -14.442ms] or [-8.666%; -6.657%]
  • 🟩 throughput [+192848.776op/s; +246859.473op/s] or [+7.655%; +9.799%]

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

  • ignore allocated_mem [+0 bytes; +2 bytes] or [-0.001%; +0.007%]
  • 🟥 execution_time [+299.983ms; +300.639ms] or [+149.891%; +150.219%]
  • ignore throughput [+140.789op/s; +154.221op/s] or [+1.555%; +1.703%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.449ms; +303.604ms] or [+151.517%; +153.108%]
  • ignore throughput [+303.615op/s; +512.992op/s] or [+2.322%; +3.924%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.619ms; +302.180ms] or [+150.925%; +152.215%]
  • ignore throughput [+73.645op/s; +201.763op/s] or [+0.711%; +1.948%]

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

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.186%; +0.199%]
  • 🟥 execution_time [+297.126ms; +298.045ms] or [+145.936%; +146.388%]
  • ignore throughput [+7.508op/s; +14.424op/s] or [+0.199%; +0.382%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+296.002ms; +299.582ms] or [+144.704%; +146.455%]
  • ignore throughput [+71.057op/s; +123.274op/s] or [+1.032%; +1.791%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+301.083ms; +302.170ms] or [+150.481%; +151.024%]
  • ignore throughput [+48.308op/s; +68.296op/s] or [+0.959%; +1.356%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+4.564µs; +8.222µs] or [+0.937%; +1.688%]
  • ignore throughput [-33.935op/s; -18.815op/s] or [-1.653%; -0.916%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+21.494µs; +49.772µs] or [+4.930%; +11.415%]
  • ignore throughput [-237.438op/s; -112.938op/s] or [-10.323%; -4.910%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+9.270µs; +31.256µs] or [+1.986%; +6.697%]
  • ignore throughput [-153.068op/s; -72.194op/s] or [-7.066%; -3.333%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-2412.991ns; +1658.991ns] or [-0.651%; +0.448%]
  • ignore throughput [-11.341op/s; +17.846op/s] or [-0.420%; +0.661%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+24.240µs; +48.019µs] or [+7.739%; +15.330%]
  • 🟥 throughput [-443.685op/s; -244.075op/s] or [-13.831%; -7.609%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-15.584µs; +6.762µs] or [-4.263%; +1.850%]
  • ignore throughput [-83.973op/s; +49.287op/s] or [-3.013%; +1.769%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.837ms; +300.486ms] or [+149.650%; +149.973%]
  • ignore throughput [+3536924.342op/s; +4100259.417op/s] or [+1.772%; +2.054%]

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

  • ignore allocated_mem [+55 bytes; +57 bytes] or [+0.309%; +0.320%]
  • unstable execution_time [+329.313ms; +375.257ms] or [+357.812%; +407.732%]
  • 🟩 throughput [+1071.248op/s; +1208.450op/s] or [+8.803%; +9.930%]

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

  • ignore allocated_mem [+48 bytes; +50 bytes] or [+0.232%; +0.243%]
  • unstable execution_time [+276.861ms; +321.118ms] or [+210.218%; +243.822%]
  • 🟩 throughput [+674.023op/s; +875.672op/s] or [+6.525%; +8.477%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [+2.769KB; +2.774KB] or [+4.920%; +4.929%]
  • unstable execution_time [+314.859ms; +416.427ms] or [+144.769%; +191.469%]
  • 🟥 throughput [-569.170op/s; -503.130op/s] or [-51.572%; -45.589%]

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

  • ignore allocated_mem [-1.271KB; -1.268KB] or [-2.998%; -2.992%]
  • unstable execution_time [+181.680ms; +316.582ms] or [+77.424%; +134.914%]
  • 🟥 throughput [-743.865op/s; -660.448op/s] or [-49.616%; -44.052%]

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

  • ignore allocated_mem [+646 bytes; +650 bytes] or [+1.528%; +1.535%]
  • 🟥 execution_time [+341.590ms; +351.151ms] or [+204.310%; +210.029%]
  • 🟥 throughput [-421.805op/s; -385.311op/s] or [-29.370%; -26.829%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-91.430µs; -74.960µs] or [-4.601%; -3.772%]
  • ignore throughput [+19.980op/s; +24.474op/s] or [+3.970%; +4.863%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-14.789µs; +7.471µs] or [-1.016%; +0.513%]
  • ignore throughput [-2.487op/s; +7.884op/s] or [-0.362%; +1.148%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-223.927µs; -115.201µs] or [-7.790%; -4.008%]
  • ignore throughput [+16.170op/s; +39.456op/s] or [+4.648%; +11.342%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-11.418µs; -3.970µs] or [-0.986%; -0.343%]
  • ignore throughput [+3.211op/s; +8.715op/s] or [+0.372%; +1.009%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-55.256µs; -44.229µs] or [-5.125%; -4.102%]
  • ignore throughput [+40.430op/s; +50.411op/s] or [+4.359%; +5.435%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+11.181µs; +20.174µs] or [+0.599%; +1.081%]
  • ignore throughput [-5.721op/s; -3.152op/s] or [-1.068%; -0.588%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+11.097µs; +26.105µs] or [+0.433%; +1.020%]
  • ignore throughput [-3.862op/s; -1.612op/s] or [-0.989%; -0.413%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • 🟩 execution_time [-180.566µs; -145.509µs] or [-9.147%; -7.371%]
  • 🟩 throughput [+41.986op/s; +51.594op/s] or [+8.288%; +10.185%]

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

  • ignore allocated_mem [-92 bytes; -26 bytes] or [-0.014%; -0.004%]
  • ignore execution_time [-336.971µs; -144.187µs] or [-8.545%; -3.656%]
  • ignore throughput [+12.337op/s; +37.008op/s] or [+4.865%; +14.594%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+303.092ms; +304.609ms] or [+152.632%; +153.396%]
  • ignore throughput [-3158.346op/s; -1305.134op/s] or [-1.016%; -0.420%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.625ms; +303.214ms] or [+151.145%; +151.941%]
  • ignore throughput [+7866.953op/s; +15372.601op/s] or [+1.240%; +2.424%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.978ms; +305.093ms] or [+151.701%; +153.266%]
  • ignore throughput [+15761.887op/s; +24703.864op/s] or [+3.320%; +5.204%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+298.185ms; +300.381ms] or [+149.738%; +150.841%]
  • ignore throughput [-4662.512op/s; -761.548op/s] or [-1.562%; -0.255%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+297.892ms; +299.792ms] or [+147.294%; +148.234%]
  • ignore throughput [+7239.136op/s; +12224.892op/s] or [+1.166%; +1.970%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+303.109ms; +306.820ms] or [+153.629%; +155.510%]
  • ignore throughput [+12345.176op/s; +20510.684op/s] or [+2.666%; +4.429%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+303.231ms; +304.915ms] or [+152.195%; +153.040%]
  • ignore throughput [-23378.311op/s; -19180.567op/s] or [-6.065%; -4.976%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+298.949ms; +300.805ms] or [+148.999%; +149.924%]
  • 🟩 throughput [+50009.662op/s; +57333.971op/s] or [+9.930%; +11.385%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+301.337ms; +304.151ms] or [+149.912%; +151.312%]
  • ignore throughput [-3284.220op/s; +1571.185op/s] or [-0.777%; +0.372%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-82.774µs; +827.882µs] or [-0.041%; +0.412%]
  • ignore throughput [-11748.605op/s; -9875.695op/s] or [-4.724%; -3.971%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-16.401ms; -12.741ms] or [-7.626%; -5.925%]
  • 🟩 throughput [+24215.743op/s; +30754.455op/s] or [+6.643%; +8.437%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-1.172ms; +9.711ms] or [-0.588%; +4.871%]
  • ignore throughput [+6138.095op/s; +14727.222op/s] or [+2.241%; +5.376%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • unstable execution_time [+8.015µs; +49.134µs] or [+1.980%; +12.136%]
  • ignore throughput [-253.979op/s; -46.663op/s] or [-10.220%; -1.878%]

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

  • 🟩 allocated_mem [-19.275KB; -19.254KB] or [-7.031%; -7.023%]
  • unstable execution_time [-38.520µs; +12.979µs] or [-7.613%; +2.565%]
  • ignore throughput [-45.629op/s; +134.791op/s] or [-2.277%; +6.726%]

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

  • ignore allocated_mem [+1.695KB; +1.712KB] or [+0.618%; +0.624%]
  • ignore execution_time [-54.816µs; +1.688µs] or [-9.499%; +0.293%]
  • ignore throughput [+8.370op/s; +162.329op/s] or [+0.478%; +9.274%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+48.028ns; +1806.639ns] or [+0.083%; +3.130%]
  • ignore throughput [-471.520op/s; -0.363op/s] or [-2.721%; -0.002%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • 🟥 execution_time [+5.428µs; +9.339µs] or [+12.829%; +22.075%]
  • 🟥 throughput [-4344.110op/s; -2601.806op/s] or [-18.287%; -10.953%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-14.953µs; -7.941µs] or [-23.199%; -12.320%]
  • 🟩 throughput [+2074.011op/s; +3555.604op/s] or [+12.725%; +21.815%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+2 bytes; +3 bytes] or [+0.061%; +0.072%]
  • 🟥 execution_time [+301.798ms; +303.196ms] or [+152.546%; +153.252%]
  • ignore throughput [-133.273op/s; -110.880op/s] or [-2.227%; -1.853%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • 🟥 execution_time [+303.733ms; +305.851ms] or [+154.599%; +155.677%]
  • ignore throughput [-59.060op/s; +17.972op/s] or [-0.732%; +0.223%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+301.098ms; +303.379ms] or [+150.737%; +151.879%]
  • ignore throughput [-135.411op/s; -66.697op/s] or [-1.725%; -0.850%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-1.488ms; -0.864ms] or [-0.742%; -0.431%]
  • ignore throughput [-16972.896op/s; -14899.381op/s] or [-4.699%; -4.125%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [-1.546ms; +5.969ms] or [-0.773%; +2.984%]
  • 🟩 throughput [+36193.573op/s; +47764.274op/s] or [+6.851%; +9.041%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+2.019ms; +5.702ms] or [+1.023%; +2.890%]
  • ignore throughput [+4909.792op/s; +13245.333op/s] or [+1.162%; +3.135%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+300.502ms; +302.628ms] or [+149.773%; +150.833%]
  • ignore throughput [-7212.340op/s; -6164.659op/s] or [-4.762%; -4.071%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+303.155ms; +304.476ms] or [+152.230%; +152.893%]
  • ignore throughput [+4547.379op/s; +6185.209op/s] or [+1.978%; +2.690%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+303.073ms; +305.298ms] or [+153.699%; +154.828%]
  • ignore throughput [-617.823op/s; +1507.556op/s] or [-0.348%; +0.849%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+300.183ms; +300.803ms] or [+149.733%; +150.042%]
  • 🟩 throughput [+66045046.732op/s; +66313752.023op/s] or [+48.098%; +48.294%]

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

  • ignore allocated_mem [+48 bytes; +50 bytes] or [+0.284%; +0.294%]
  • unstable execution_time [+348.873ms; +393.952ms] or [+433.886%; +489.950%]
  • 🟩 throughput [+987.355op/s; +1165.179op/s] or [+7.633%; +9.007%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.624ms; +300.576ms] or [+149.446%; +149.920%]
  • 🟩 throughput [+13099507.381op/s; +17326384.952op/s] or [+5.802%; +7.674%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+284.891µs; +738.955µs] or [+0.142%; +0.370%]
  • ignore throughput [-41207.591op/s; -38693.209op/s] or [-4.599%; -4.318%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.176ms; -3.059ms] or [-2.045%; -1.498%]
  • 🟩 throughput [+104470.169op/s; +112878.593op/s] or [+9.754%; +10.539%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+0.932ms; +5.054ms] or [+0.471%; +2.557%]
  • 🟩 throughput [+47805.577op/s; +67205.897op/s] or [+5.533%; +7.779%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [-71.139µs; +278.997µs] or [-0.036%; +0.139%]
  • 🟥 throughput [-63962.310op/s; -61592.085op/s] or [-5.855%; -5.638%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+5.772ms; +9.875ms] or [+3.007%; +5.145%]
  • 🟩 throughput [+98484.123op/s; +128125.743op/s] or [+7.623%; +9.917%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-4.810ms; -3.346ms] or [-2.363%; -1.644%]
  • 🟩 throughput [+93592.620op/s; +101524.695op/s] or [+9.295%; +10.083%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-1120.857µs; +223.354µs] or [-0.558%; +0.111%]
  • ignore throughput [-11596.372op/s; -8728.822op/s] or [-2.584%; -1.945%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-1171.911µs; +252.054µs] or [-0.585%; +0.126%]
  • 🟩 throughput [+59711.591op/s; +63901.022op/s] or [+10.843%; +11.603%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [+0.544ms; +4.641ms] or [+0.273%; +2.332%]
  • 🟩 throughput [+28382.895op/s; +37896.763op/s] or [+6.353%; +8.483%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1381.987µs; -433.146µs] or [-0.689%; -0.216%]
  • 🟥 throughput [-77351.442op/s; -71970.908op/s] or [-11.321%; -10.533%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-1196.113µs; +2290.006µs] or [-0.598%; +1.145%]
  • 🟩 throughput [+51336.003op/s; +69259.664op/s] or [+5.736%; +7.738%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.444ms; +5.331ms] or [+0.733%; +2.708%]
  • ignore throughput [+29399.439op/s; +44058.301op/s] or [+4.105%; +6.152%]

@bouwkast bouwkast changed the title Fix OTLP export CI timeout caused by forced HTTP/2 [OTEL] Fix OTLP export and test reliability Apr 14, 2026
@bouwkast bouwkast changed the title [OTEL] Fix OTLP export and test reliability Fix OTLP HTTP/protobuf export failures and improve OTLP integration test reliability Apr 14, 2026
@bouwkast bouwkast force-pushed the steven/attempt-to-fix-otel-tests-failing-constantly branch from b6d7dd5 to 96ecfea Compare April 14, 2026 21:18
<type fullname="System.Net.DnsEndPoint" />
<type fullname="System.Net.EndPoint" />
<type fullname="System.Net.HttpStatusCode" />
<type fullname="System.Net.HttpVersion" />
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of System.Net.HttpVersion appears to be due to the removal of DefaultRequestVersion = HttpVersion.Version20 and DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher

DefaultRequestVersion = HttpVersion.Version20,
DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher
};
return new HttpClient(handler);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any documentation / reason why it had to be HTTP/2 so I think this is fine, but feel free to request it to be reverted.

@bouwkast bouwkast force-pushed the steven/attempt-to-fix-otel-tests-failing-constantly branch from 96ecfea to f827579 Compare April 15, 2026 12:37
The vendored gRPC client already sets HTTP/2 per-request via
RequireHttp2, so forcing DefaultRequestVersion=HTTP/2 on the shared
HttpClient breaks HTTP/protobuf export against HTTP/1.1-only servers
(e.g., dd-apm-test-agent on port 4318).

Remove System.Net.HttpVersion from trimming XML since it is no longer
referenced.
Shut down the OtlpExporter in OtlpSubmissionLogSink.DisposeAsync()
so the underlying HttpClient is disposed after the final flush.
Replace fire-and-forget session clear with a retry helper that waits
for the test-agent HTTP endpoint to be ready.

Replace single-GET data fetch with a polling helper (WaitForTestAgentData)
that retries for up to 30 seconds, accounting for export flush timing
after process exit.

Fix incorrect env var OTEL_LOG_EXPORT_INTERVAL (does not exist) to
OTEL_BLRP_SCHEDULE_DELAY. Set to 500ms so the OTel SDK gets multiple
periodic exports before LoggerProviderSdk.Dispose() hits its 5s
shutdown timeout. This is especially important for gRPC, where the
first export warms the HTTP/2 connection.

Set OTEL_METRIC_EXPORT_INTERVAL to 60000ms so only the shutdown flush
fires, preventing duplicate metric batches from observable instruments
that broke snapshot comparison.

Remove [Flaky] attributes from SubmitsOtlpMetrics and SubmitsOtlpLogs.
@bouwkast bouwkast force-pushed the steven/attempt-to-fix-otel-tests-failing-constantly branch from b8990e6 to 3a29f10 Compare April 15, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant