Skip to content

[Tracer] Fix Azure Service Bus producer/consumer trace disconnect for ServiceBusProcessor#8867

Draft
NachoEchevarria wants to merge 4 commits into
masterfrom
nacho/AzureServiceBusIssue
Draft

[Tracer] Fix Azure Service Bus producer/consumer trace disconnect for ServiceBusProcessor#8867
NachoEchevarria wants to merge 4 commits into
masterfrom
nacho/AzureServiceBusIssue

Conversation

@NachoEchevarria

@NachoEchevarria NachoEchevarria commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

Only re-inject the receive-span context into Service Bus messages when running in Azure Functions.

Reason for change

With a ServiceBusProcessor consumer and the Azure activity source enabled
(AZURE_EXPERIMENTAL_ENABLE_ACTIVITY_SOURCE=true + DD_TRACE_OTEL_ENABLED=true), producer and
consumer showed up as two disconnected traces (APMS-19950).

ServiceBusReceiverReceiveMessagesAsyncIntegration unconditionally re-injected the new
azure_servicebus.receive span's context back into each received message. That re-injection exists
only for Azure Functions (where the host reads the message to parent the invocation and there is no
ServiceBusProcessor.ProcessMessage activity). Outside Functions it overwrote the producer's
traceparent, so the SDK-created ServiceBusProcessor.ProcessMessage activity parented to our receive
span instead of the producer — splitting the trace in two.

Implementation details

Gated ReinjectContextIntoMessages behind tracer.Settings.IsRunningInAzureFunctions. In Azure Functions
the behaviour is unchanged (re-injection still runs); everywhere else the message keeps the producer's
context and ProcessMessage reconnects to the producer trace.

Test coverage

  • Added a Processor mode to Samples.AzureServiceBus.APM (enables the activity source, sends and
    processes one message via ServiceBusProcessor).
  • Added AzureServiceBusAPMTests.TestProcessorConnectsToProducerTrace, which asserts the
    servicebus.process span shares the producer's trace. It fails without the fix and passes with it;
    verified locally against the Service Bus emulator on package versions 7.18.4 and 7.20.1 (full
    AzureServiceBusAPMTests class green — no regression in send/receive/batch/schedule).
  • Azure Functions behaviour is covered by the existing AzureFunctionsMessagingTriggerTests snapshots
    (unchanged) — verified in CI, since those tests require the Functions Core Tools + emulators.

Other details

Temporary customer workaround until this ships: set DD_TRACE_AZURESERVICEBUS_ENABLED=false (keep
DD_TRACE_OTEL_ENABLED=true) — trades off DSM and the custom azure_servicebus.* spans for a reconnected
trace. DD_TRACE_AZURE_SERVICEBUS_BATCH_LINKS_ENABLED=false does not work (it doesn't gate the
re-injection).

@NachoEchevarria NachoEchevarria changed the title Nacho/azure service bus issue [Tracer] Fix Azure Service Bus producer/consumer trace disconnect for ServiceBusProcessor Jul 3, 2026
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8867) 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
duration71.86 ± (71.80 - 72.26) ms69.28 ± (69.32 - 69.59) ms-3.6%
.NET Framework 4.8 - Bailout
duration74.17 ± (74.13 - 74.53) ms72.82 ± (72.69 - 73.07) ms-1.8%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.53 ± (1078.82 - 1084.59) ms1079.98 ± (1080.39 - 1087.31) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.45 ± (22.40 - 22.50) ms22.04 ± (22.01 - 22.07) ms-1.8%
process.time_to_main_ms82.87 ± (82.59 - 83.15) ms80.50 ± (80.32 - 80.68) ms-2.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.92 ± (10.91 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.09 ± (22.06 - 22.13) ms21.97 ± (21.95 - 21.99) ms-0.6%
process.time_to_main_ms81.71 ± (81.58 - 81.84) ms81.33 ± (81.19 - 81.47) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.96) MB10.95 ± (10.95 - 10.96) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms212.06 ± (211.17 - 212.96) ms209.56 ± (208.54 - 210.58) ms-1.2%
process.time_to_main_ms531.66 ± (530.49 - 532.83) ms530.52 ± (529.36 - 531.68) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.18 ± (49.15 - 49.21) MB49.15 ± (49.11 - 49.20) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.81 ± (20.78 - 20.84) ms21.16 ± (21.11 - 21.21) ms+1.7%✅⬆️
process.time_to_main_ms69.69 ± (69.57 - 69.81) ms71.73 ± (71.49 - 71.98) ms+2.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) 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_ms20.76 ± (20.72 - 20.80) ms20.90 ± (20.86 - 20.93) ms+0.7%✅⬆️
process.time_to_main_ms70.64 ± (70.52 - 70.77) ms70.92 ± (70.82 - 71.02) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.75 ± (10.74 - 10.75) MB10.73 ± (10.73 - 10.74) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms370.61 ± (368.17 - 373.06) ms372.52 ± (370.28 - 374.77) ms+0.5%✅⬆️
process.time_to_main_ms536.79 ± (535.64 - 537.93) ms537.04 ± (535.77 - 538.30) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.33 ± (50.31 - 50.36) MB50.22 ± (50.20 - 50.25) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.48 ± (19.43 - 19.54) ms19.06 ± (19.03 - 19.09) ms-2.2%
process.time_to_main_ms71.71 ± (71.46 - 71.96) ms69.06 ± (68.94 - 69.18) ms-3.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.68) MB7.70 ± (7.69 - 7.71) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.14 ± (19.11 - 19.17) ms19.32 ± (19.28 - 19.36) ms+0.9%✅⬆️
process.time_to_main_ms70.53 ± (70.37 - 70.69) ms72.89 ± (72.66 - 73.11) ms+3.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.73 ± (7.73 - 7.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.62 ± (297.52 - 301.73) ms297.40 ± (295.04 - 299.76) ms-0.7%
process.time_to_main_ms485.90 ± (484.92 - 486.88) ms484.62 ± (483.62 - 485.61) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.70 ± (37.67 - 37.73) MB37.63 ± (37.60 - 37.65) MB-0.2%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.0%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration202.80 ± (202.62 - 203.49) ms202.74 ± (202.47 - 203.39) ms-0.0%
.NET Framework 4.8 - Bailout
duration205.86 ± (205.56 - 206.43) ms205.51 ± (205.21 - 206.16) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1208.34 ± (1207.02 - 1212.60) ms1202.14 ± (1202.10 - 1207.55) ms-0.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms195.99 ± (195.48 - 196.50) ms194.87 ± (194.43 - 195.31) ms-0.6%
process.time_to_main_ms84.97 ± (84.72 - 85.22) ms84.64 ± (84.33 - 84.96) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.09) MB16.02 ± (16.00 - 16.04) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.6%
.NET Core 3.1 - Bailout
process.internal_duration_ms196.79 ± (196.43 - 197.16) ms196.61 ± (196.15 - 197.06) ms-0.1%
process.time_to_main_ms87.08 ± (86.87 - 87.30) ms87.00 ± (86.75 - 87.25) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.08 - 16.12) MB16.05 ± (16.03 - 16.08) MB-0.3%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)-0.2%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms388.94 ± (387.48 - 390.41) ms384.66 ± (383.47 - 385.86) ms-1.1%
process.time_to_main_ms545.82 ± (544.71 - 546.93) ms541.09 ± (540.05 - 542.13) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.46 ± (58.24 - 58.68) MB57.72 ± (57.57 - 57.88) MB-1.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms201.76 ± (201.32 - 202.21) ms202.21 ± (201.65 - 202.77) ms+0.2%✅⬆️
process.time_to_main_ms74.79 ± (74.50 - 75.07) ms74.53 ± (74.29 - 74.78) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.32 - 16.39) MB16.36 ± (16.34 - 16.38) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.6%
.NET 6 - Bailout
process.internal_duration_ms201.17 ± (200.84 - 201.51) ms201.01 ± (200.41 - 201.62) ms-0.1%
process.time_to_main_ms75.51 ± (75.35 - 75.68) ms75.12 ± (74.88 - 75.36) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.44 ± (16.41 - 16.47) MB16.48 ± (16.45 - 16.50) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.8%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms583.54 ± (580.96 - 586.13) ms583.21 ± (580.75 - 585.66) ms-0.1%
process.time_to_main_ms553.95 ± (552.99 - 554.90) ms552.18 ± (551.21 - 553.16) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.42 ± (61.34 - 61.50) MB61.36 ± (61.27 - 61.44) MB-0.1%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms200.04 ± (199.64 - 200.44) ms196.90 ± (196.45 - 197.35) ms-1.6%
process.time_to_main_ms74.02 ± (73.75 - 74.29) ms72.75 ± (72.48 - 73.02) ms-1.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.70 - 11.74) MB11.76 ± (11.74 - 11.78) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (18 - 19)-0.2%
.NET 8 - Bailout
process.internal_duration_ms198.91 ± (198.48 - 199.35) ms197.60 ± (197.08 - 198.11) ms-0.7%
process.time_to_main_ms74.95 ± (74.76 - 75.15) ms74.57 ± (74.35 - 74.79) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.80) MB11.74 ± (11.71 - 11.76) MB-0.3%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-1.8%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms512.08 ± (509.20 - 514.96) ms511.52 ± (508.68 - 514.37) ms-0.1%
process.time_to_main_ms506.86 ± (506.09 - 507.62) ms502.52 ± (501.79 - 503.26) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.17 ± (51.13 - 51.21) MB51.11 ± (51.08 - 51.15) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.6%
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 (8867) - mean (69ms)  : 68, 71
    master - mean (72ms)  : 69, 75

    section Bailout
    This PR (8867) - mean (73ms)  : 71, 75
    master - mean (74ms)  : 72, 77

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (1,084ms)  : 1034, 1134
    master - mean (1,082ms)  : 1039, 1124

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 (8867) - mean (108ms)  : 105, 111
    master - mean (113ms)  : 107, 119

    section Bailout
    This PR (8867) - mean (109ms)  : 107, 111
    master - mean (110ms)  : 108, 113

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (776ms)  : 761, 792
    master - mean (781ms)  : 757, 805

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8867) - mean (99ms)  : 94, 104
    master - mean (96ms)  : 93, 99

    section Bailout
    This PR (8867) - mean (97ms)  : 95, 99
    master - mean (98ms)  : 95, 100

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (942ms)  : 904, 980
    master - mean (940ms)  : 898, 983

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

    section Bailout
    This PR (8867) - mean (100ms)  : 95, 105
    master - mean (96ms)  : 93, 100

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (812ms)  : 774, 851
    master - mean (814ms)  : 781, 847

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 (8867) - mean (203ms)  : 198, 208
    master - mean (203ms)  : 198, 208

    section Bailout
    This PR (8867) - mean (206ms)  : 201, 210
    master - mean (206ms)  : 202, 210

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (1,205ms)  : 1166, 1244
    master - mean (1,210ms)  : 1173, 1246

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 (8867) - mean (290ms)  : 283, 296
    master - mean (291ms)  : 283, 298

    section Bailout
    This PR (8867) - mean (293ms)  : 286, 300
    master - mean (294ms)  : 289, 298

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (967ms)  : 949, 984
    master - mean (975ms)  : 952, 998

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8867) - mean (287ms)  : 276, 297
    master - mean (286ms)  : 278, 294

    section Bailout
    This PR (8867) - mean (286ms)  : 279, 293
    master - mean (286ms)  : 282, 290

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (1,167ms)  : 1133, 1201
    master - mean (1,171ms)  : 1132, 1210

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8867) - mean (280ms)  : 272, 288
    master - mean (284ms)  : 277, 291

    section Bailout
    This PR (8867) - mean (282ms)  : 275, 289
    master - mean (284ms)  : 278, 290

    section CallTarget+Inlining+NGEN
    This PR (8867) - mean (1,047ms)  : 1004, 1091
    master - mean (1,051ms)  : 1005, 1097

Loading

@pr-commenter

pr-commenter Bot commented Jul 3, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-03 13:59:05

Comparing candidate commit 1b289fd in PR branch nacho/AzureServiceBusIssue with baseline commit bb5a507 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 61 known flaky benchmarks, 65 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 [-5330.227op/s; -4899.093op/s] or [-6.085%; -5.593%]

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

  • 🟥 throughput [-7509.634op/s; -6890.711op/s] or [-8.904%; -8.170%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+311.428ms; +318.618ms] or [+154.541%; +158.109%]
  • 🟥 throughput [-43.613op/s; -39.737op/s] or [-7.847%; -7.149%]

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

  • 🟥 execution_time [+378.372ms; +380.679ms] or [+298.937%; +300.759%]
  • 🟩 throughput [+85.985op/s; +91.613op/s] or [+11.337%; +12.079%]

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

  • 🟥 execution_time [+391.745ms; +394.338ms] or [+346.679%; +348.974%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-15.592ms; -11.419ms] or [-7.282%; -5.333%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-250192.107op/s; -247000.665op/s] or [-25.546%; -25.220%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-25.058ms; -20.189ms] or [-11.175%; -9.003%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-156419.738op/s; -140461.252op/s] or [-22.475%; -20.182%]

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

  • 🟩 throughput [+9244.993op/s; +12245.817op/s] or [+5.882%; +7.792%]

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

  • 🟩 throughput [+11216.301op/s; +13836.804op/s] or [+8.935%; +11.023%]

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

  • 🟩 throughput [+491466.732op/s; +507122.001op/s] or [+16.388%; +16.910%]

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

  • 🟩 execution_time [-19.344ms; -15.001ms] or [-8.917%; -6.915%]
  • 🟩 throughput [+143780.242op/s; +197189.422op/s] or [+5.707%; +7.827%]

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

  • 🟥 execution_time [+299.360ms; +300.138ms] or [+149.580%; +149.969%]

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

  • 🟥 execution_time [+299.330ms; +303.845ms] or [+150.953%; +153.230%]

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

  • 🟥 execution_time [+299.537ms; +302.494ms] or [+150.884%; +152.373%]

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

  • 🟥 execution_time [+298.429ms; +299.206ms] or [+146.576%; +146.958%]

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

  • 🟥 execution_time [+295.786ms; +297.802ms] or [+144.599%; +145.584%]

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

  • 🟥 execution_time [+298.099ms; +299.703ms] or [+148.989%; +149.791%]

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

  • 🟥 execution_time [+23.108µs; +46.769µs] or [+7.377%; +14.931%]
  • 🟥 throughput [-434.796op/s; -235.739op/s] or [-13.554%; -7.349%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.389ms; +300.090ms] or [+149.426%; +149.776%]

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

  • 🟥 execution_time [+415.789ms; +422.074ms] or [+451.771%; +458.601%]
  • 🟩 throughput [+701.132op/s; +897.956op/s] or [+5.761%; +7.379%]

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

  • 🟥 execution_time [+372.658ms; +377.061ms] or [+282.955%; +286.299%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+249.548ms; +291.046ms] or [+114.740%; +133.820%]
  • 🟥 throughput [-585.112op/s; -527.420op/s] or [-53.017%; -47.789%]

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

  • unstable execution_time [+206.582ms; +339.813ms] or [+88.037%; +144.814%]
  • 🟥 throughput [-665.145op/s; -581.693op/s] or [-44.365%; -38.799%]

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

  • 🟥 execution_time [+359.978ms; +368.399ms] or [+215.308%; +220.345%]
  • 🟥 throughput [-441.960op/s; -405.915op/s] or [-30.773%; -28.263%]

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

  • unstable throughput [+11.635op/s; +49.980op/s] or [+3.344%; +14.367%]

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

  • 🟩 execution_time [-158.171µs; -102.150µs] or [-8.012%; -5.175%]
  • 🟩 throughput [+29.574op/s; +44.898op/s] or [+5.838%; +8.863%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+299.935ms; +301.451ms] or [+151.042%; +151.805%]

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

  • 🟥 execution_time [+300.855ms; +303.682ms] or [+150.759%; +152.175%]

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

  • 🟥 execution_time [+302.209ms; +305.675ms] or [+151.817%; +153.558%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.435ms; +305.551ms] or [+152.375%; +153.437%]

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

  • 🟥 execution_time [+298.844ms; +301.102ms] or [+147.765%; +148.881%]

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

  • 🟥 execution_time [+300.965ms; +305.340ms] or [+152.542%; +154.760%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+303.392ms; +307.027ms] or [+152.276%; +154.100%]

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

  • 🟥 execution_time [+301.087ms; +303.798ms] or [+150.064%; +151.416%]
  • 🟩 throughput [+43383.657op/s; +49775.732op/s] or [+8.615%; +9.884%]

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

  • 🟥 execution_time [+300.793ms; +304.118ms] or [+149.642%; +151.296%]

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

  • 🟩 execution_time [-16.309ms; -12.641ms] or [-7.584%; -5.878%]

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

  • unstable execution_time [+14.239µs; +58.164µs] or [+3.517%; +14.367%]

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

  • 🟩 allocated_mem [-18.425KB; -18.402KB] or [-6.721%; -6.713%]
  • unstable execution_time [-6.172µs; +53.715µs] or [-1.220%; +10.616%]
  • unstable throughput [-190.709op/s; +11.746op/s] or [-9.516%; +0.586%]

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

  • unstable execution_time [-45.412µs; +18.311µs] or [-7.870%; +3.173%]
  • unstable throughput [-40.313op/s; +135.475op/s] or [-2.303%; +7.740%]

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

  • unstable execution_time [+9.204µs; +14.695µs] or [+21.755%; +34.734%]
  • 🟥 throughput [-6032.763op/s; -4058.413op/s] or [-25.396%; -17.085%]

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

  • unstable execution_time [-14.812µs; -7.366µs] or [-22.980%; -11.428%]
  • 🟩 throughput [+1848.402op/s; +3467.923op/s] or [+11.341%; +21.277%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.856ms; +304.415ms] or [+153.080%; +153.868%]

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

  • 🟥 execution_time [+302.414ms; +304.575ms] or [+153.928%; +155.027%]

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

  • 🟥 execution_time [+298.990ms; +301.634ms] or [+149.682%; +151.005%]

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

  • 🟩 throughput [+31827.840op/s; +38171.091op/s] or [+6.024%; +7.225%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.394ms; +303.552ms] or [+150.218%; +151.293%]

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

  • 🟥 execution_time [+298.053ms; +311.777ms] or [+149.668%; +156.560%]

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

  • 🟥 execution_time [+302.329ms; +304.637ms] or [+153.322%; +154.492%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.010ms; +300.942ms] or [+149.647%; +150.111%]
  • 🟩 throughput [+61280360.872op/s; +61597300.097op/s] or [+44.628%; +44.859%]

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

  • 🟥 execution_time [+418.020ms; +421.506ms] or [+519.882%; +524.217%]

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

  • 🟥 execution_time [+299.837ms; +300.874ms] or [+149.552%; +150.069%]

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

  • 🟩 throughput [+92091.305op/s; +99535.055op/s] or [+8.598%; +9.293%]

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

  • 🟩 throughput [+53359.762op/s; +73482.982op/s] or [+6.176%; +8.506%]

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

  • 🟩 throughput [+74996.574op/s; +105097.988op/s] or [+5.805%; +8.135%]

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

  • 🟩 throughput [+87946.712op/s; +96959.194op/s] or [+8.735%; +9.630%]

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

  • 🟩 throughput [+42538.614op/s; +47857.270op/s] or [+7.724%; +8.690%]

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

  • 🟩 throughput [+24435.949op/s; +34050.737op/s] or [+5.470%; +7.622%]

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

  • 🟩 throughput [+63229.869op/s; +98551.407op/s] or [+7.064%; +11.011%]

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_GetContext_Sampled netcoreapp3.1
  • 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.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • 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.OptimizedCharSliceWithPool netcoreapp3.1
  • 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 netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant