Skip to content

Debugger: add upload metadata fields to SymDB upload event message#8590

Merged
andreimatei merged 2 commits into
masterfrom
andrei/symdb-upload-fields
May 12, 2026
Merged

Debugger: add upload metadata fields to SymDB upload event message#8590
andreimatei merged 2 commits into
masterfrom
andrei/symdb-upload-fields

Conversation

@andreimatei

@andreimatei andreimatei commented May 8, 2026

Copy link
Copy Markdown
Contributor

Add the following fields to the SymDB upload event message that
accompanies each multipart upload (camelCase, matching the rest of
the EvP event schema):

  • "version" (top-level): the service version
  • "language" (top-level): "dotnet"
  • "uploadId" (top-level): a UUID generated once per SymbolsUploader
    instance, shared by all batches uploaded by the instance
  • "batchNum" (top-level): 1-indexed counter incremented per upload
  • "final" (top-level): always false; the .NET tracer continuously
    uploads new code as assemblies get loaded, so there is no defined
    end-of-upload point
  • "attachmentSize" (top-level): size in bytes of the (compressed)
    attachment payload

Also add the same metadata to the gzipped attachment Root
(snake_case to match the rest of the attachment scope schema):

  • "upload_id"
  • "batch_num"
  • "final"

uploadId/batchNum are computed in SymbolsUploader once per batch
(rebuilding the JSON prefix per batch) and threaded into
SymbolUploadApi.SendBatchAsync so both the attachment and the event
JSON carry the same values. SymbolUploadApi no longer tracks its own
batch counter.

Some of these fields are new, to be used by the backend in the future.
Others duplicate info that was already included in the attachment; by
duplicating some metadata out of the SymDB attachment body into the EvP
event body, the backend can populate per-attachment bookkeeping without
downloading the attachment.

@andreimatei
andreimatei requested a review from a team as a code owner May 8, 2026 17:37
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented May 8, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8590) 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.21 ± (73.32 - 73.81) ms74.34 ± (74.24 - 74.77) ms+1.6%✅⬆️
.NET Framework 4.8 - Bailout
duration79.18 ± (79.33 - 79.89) ms76.86 ± (76.91 - 77.35) ms-2.9%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1089.12 ± (1089.13 - 1096.41) ms1100.32 ± (1099.57 - 1109.02) ms+1.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.88 ± (22.81 - 22.95) ms22.68 ± (22.63 - 22.73) ms-0.9%
process.time_to_main_ms88.10 ± (87.77 - 88.43) ms86.13 ± (85.85 - 86.40) ms-2.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.92) MB10.93 ± (10.92 - 10.93) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.50 ± (22.46 - 22.55) ms22.42 ± (22.38 - 22.47) ms-0.4%
process.time_to_main_ms87.53 ± (87.24 - 87.83) ms86.16 ± (85.97 - 86.35) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.90 - 10.90) MB10.96 ± (10.95 - 10.96) MB+0.5%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms212.81 ± (211.81 - 213.81) ms214.67 ± (213.85 - 215.49) ms+0.9%✅⬆️
process.time_to_main_ms538.64 ± (537.22 - 540.06) ms542.83 ± (541.54 - 544.12) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.08 ± (48.05 - 48.10) MB48.02 ± (47.99 - 48.05) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.14 ± (21.10 - 21.18) ms21.15 ± (21.11 - 21.18) ms+0.0%✅⬆️
process.time_to_main_ms73.69 ± (73.52 - 73.87) ms73.32 ± (73.15 - 73.48) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.63 ± (10.63 - 10.63) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.32 ± (21.26 - 21.38) ms21.30 ± (21.24 - 21.36) ms-0.1%
process.time_to_main_ms76.45 ± (76.16 - 76.74) ms75.79 ± (75.51 - 76.08) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.75 ± (10.74 - 10.75) MB10.74 ± (10.74 - 10.74) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms377.07 ± (375.02 - 379.11) ms377.46 ± (375.49 - 379.43) ms+0.1%✅⬆️
process.time_to_main_ms540.69 ± (539.37 - 542.02) ms538.87 ± (537.54 - 540.20) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.44 ± (49.42 - 49.47) MB49.59 ± (49.57 - 49.62) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.4%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.51 ± (19.47 - 19.56) ms19.58 ± (19.53 - 19.63) ms+0.3%✅⬆️
process.time_to_main_ms73.48 ± (73.25 - 73.72) ms73.66 ± (73.44 - 73.89) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.66 ± (7.65 - 7.66) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.43 ± (19.39 - 19.47) ms19.38 ± (19.34 - 19.41) ms-0.3%
process.time_to_main_ms73.98 ± (73.81 - 74.16) ms73.85 ± (73.65 - 74.04) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.71 - 7.72) MB7.71 ± (7.70 - 7.71) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms295.37 ± (293.01 - 297.72) ms295.87 ± (293.63 - 298.11) ms+0.2%✅⬆️
process.time_to_main_ms496.99 ± (495.68 - 498.30) ms498.90 ± (497.67 - 500.14) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.65 ± (36.62 - 36.67) MB36.60 ± (36.58 - 36.63) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.1%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration189.81 ± (189.68 - 190.23) ms189.27 ± (189.46 - 190.09) ms-0.3%
.NET Framework 4.8 - Bailout
duration193.55 ± (193.45 - 193.81) ms193.74 ± (193.49 - 193.85) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1158.35 ± (1158.32 - 1164.12) ms1157.35 ± (1157.10 - 1163.84) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms184.06 ± (183.78 - 184.35) ms184.41 ± (184.15 - 184.68) ms+0.2%✅⬆️
process.time_to_main_ms79.79 ± (79.61 - 79.96) ms79.74 ± (79.56 - 79.92) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.07 - 16.13) MB16.05 ± (15.98 - 16.12) MB-0.3%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms183.26 ± (183.02 - 183.51) ms183.19 ± (182.96 - 183.42) ms-0.0%
process.time_to_main_ms80.93 ± (80.83 - 81.04) ms80.91 ± (80.81 - 81.01) ms-0.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.00 ± (15.89 - 16.11) MB16.09 ± (16.00 - 16.17) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)21 ± (21 - 21)+2.7%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms373.95 ± (372.81 - 375.10) ms373.87 ± (372.60 - 375.15) ms-0.0%
process.time_to_main_ms513.30 ± (512.25 - 514.35) ms514.61 ± (513.78 - 515.43) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed56.92 ± (56.87 - 56.98) MB56.85 ± (56.80 - 56.90) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms188.36 ± (188.12 - 188.60) ms188.42 ± (188.19 - 188.65) ms+0.0%✅⬆️
process.time_to_main_ms69.65 ± (69.51 - 69.79) ms69.99 ± (69.84 - 70.14) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.94 ± (15.76 - 16.12) MB15.92 ± (15.75 - 16.10) MB-0.1%
runtime.dotnet.threads.count18 ± (17 - 18)18 ± (18 - 18)+1.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms188.02 ± (187.83 - 188.21) ms193.29 ± (192.90 - 193.69) ms+2.8%✅⬆️
process.time_to_main_ms70.46 ± (70.39 - 70.53) ms72.99 ± (72.83 - 73.16) ms+3.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.44 ± (15.26 - 15.61) MB16.15 ± (16.05 - 16.25) MB+4.6%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)20 ± (20 - 20)+7.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms578.39 ± (573.46 - 583.33) ms589.11 ± (585.89 - 592.33) ms+1.9%✅⬆️
process.time_to_main_ms510.18 ± (509.40 - 510.96) ms529.12 ± (527.79 - 530.45) ms+3.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed60.71 ± (60.63 - 60.79) MB60.99 ± (60.90 - 61.08) MB+0.5%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms185.15 ± (184.93 - 185.36) ms193.54 ± (192.57 - 194.52) ms+4.5%✅⬆️
process.time_to_main_ms68.82 ± (68.67 - 68.97) ms72.12 ± (71.75 - 72.49) ms+4.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.43 ± (11.31 - 11.55) MB11.67 ± (11.65 - 11.70) MB+2.1%✅⬆️
runtime.dotnet.threads.count17 ± (17 - 17)18 ± (18 - 19)+7.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms184.74 ± (184.59 - 184.89) ms198.29 ± (197.52 - 199.07) ms+7.3%✅⬆️
process.time_to_main_ms69.73 ± (69.67 - 69.79) ms74.71 ± (74.38 - 75.05) ms+7.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.60 - 11.79) MB11.73 ± (11.71 - 11.74) MB+0.3%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)20 ± (19 - 20)+5.7%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms512.93 ± (510.46 - 515.41) ms509.18 ± (506.55 - 511.82) ms-0.7%
process.time_to_main_ms469.93 ± (469.20 - 470.66) ms488.45 ± (487.32 - 489.58) ms+3.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.41 ± (50.38 - 50.44) MB50.34 ± (50.31 - 50.38) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)30 ± (30 - 30)+1.7%✅⬆️
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 (8590) - mean (75ms)  : 71, 78
    master - mean (74ms)  : 70, 77

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

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (1,104ms)  : 1033, 1176
    master - mean (1,093ms)  : 1040, 1146

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 (8590) - mean (116ms)  : 110, 121
    master - mean (118ms)  : 112, 124

    section Bailout
    This PR (8590) - mean (116ms)  : 113, 118
    master - mean (117ms)  : 112, 123

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (794ms)  : 764, 823
    master - mean (791ms)  : 767, 814

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8590) - mean (101ms)  : 97, 105
    master - mean (101ms)  : 98, 105

    section Bailout
    This PR (8590) - mean (104ms)  : 98, 109
    master - mean (104ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (949ms)  : 912, 986
    master - mean (945ms)  : 905, 985

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

    section Bailout
    This PR (8590) - mean (101ms)  : 99, 103
    master - mean (101ms)  : 99, 104

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (826ms)  : 793, 860
    master - mean (823ms)  : 781, 866

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 (8590) - mean (190ms)  : 187, 193
    master - mean (190ms)  : 187, 193

    section Bailout
    This PR (8590) - mean (194ms)  : 192, 196
    master - mean (194ms)  : 192, 195

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (1,160ms)  : 1111, 1210
    master - mean (1,161ms)  : 1119, 1203

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 (8590) - mean (272ms)  : 268, 276
    master - mean (272ms)  : 268, 276

    section Bailout
    This PR (8590) - mean (272ms)  : 269, 275
    master - mean (272ms)  : 269, 275

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (926ms)  : 906, 946
    master - mean (925ms)  : 909, 942

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8590) - mean (266ms)  : 263, 270
    master - mean (266ms)  : 263, 270

    section Bailout
    This PR (8590) - mean (275ms)  : 266, 283
    master - mean (266ms)  : 263, 269

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (1,151ms)  : 1102, 1200
    master - mean (1,117ms)  : 1047, 1186

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8590) - mean (276ms)  : 257, 294
    master - mean (263ms)  : 260, 267

    section Bailout
    This PR (8590) - mean (283ms)  : crit, 266, 301
    master - mean (264ms)  : 262, 266

    section CallTarget+Inlining+NGEN
    This PR (8590) - mean (1,029ms)  : 990, 1068
    master - mean (1,014ms)  : 976, 1052

Loading

@pr-commenter

pr-commenter Bot commented May 8, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-11 20:41:54

Comparing candidate commit 3487c6f in PR branch andrei/symdb-upload-fields with baseline commit 0f0a34a in branch master.

Some scenarios are present only in baseline or only in candidate runs. If you didn't create or remove some scenarios in your branch, this maybe a sign of crashed benchmarks 💥💥💥
Check Gitlab CI job log to find if any benchmark has crashed.

Scenarios present only in baseline:

  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

Found 4 performance improvements and 3 performance regressions! Performance is the same for 45 metrics, 20 unstable metrics, 88 known flaky benchmarks, 38 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.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.321%; -7.312%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5399.660op/s; -4852.077op/s] or [-6.164%; -5.539%]

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

  • 🟥 throughput [-72440.659op/s; -62422.851op/s] or [-49.210%; -42.405%]

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

  • 🟥 throughput [-38760.759op/s; -34419.078op/s] or [-19.435%; -17.258%]
  • 🟩 execution_time [-82.399ms; -78.256ms] or [-41.672%; -39.576%]

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

  • 🟩 execution_time [-93.055ms; -90.654ms] or [-47.357%; -46.136%]

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 net6.0

  • unstable execution_time [-28.989ms; +8.907ms] or [-17.497%; +5.376%]
  • unstable throughput [-12805.875op/s; +18863.059op/s] or [-8.159%; +12.018%]

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

  • unstable execution_time [-34.337ms; -10.142ms] or [-30.296%; -8.948%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-36.951ms; -0.227ms] or [-22.353%; -0.137%]
  • unstable throughput [+11118.999op/s; +32927.489op/s] or [+8.168%; +24.188%]

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

  • unstable execution_time [-33.697ms; -9.099ms] or [-30.622%; -8.268%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [-43.793ms; -24.184ms] or [-27.455%; -15.162%]
  • unstable throughput [+13061.678op/s; +36812.667op/s] or [+7.158%; +20.175%]

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

  • unstable execution_time [+11.963ms; +36.347ms] or [+13.464%; +40.908%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [-12.222ms; +6.550ms] or [-8.108%; +4.345%]
  • unstable throughput [-3953.407op/s; +9429.913op/s] or [-3.054%; +7.284%]

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

  • unstable execution_time [+8.454ms; +33.815ms] or [+9.111%; +36.443%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-3.340ms; +44.921ms] or [-2.252%; +30.289%]
  • unstable throughput [-39978.888op/s; -4663.490op/s] or [-22.238%; -2.594%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-43.989ms; -21.391ms] or [-28.661%; -13.938%]
  • unstable throughput [+17790.613op/s; +40305.845op/s] or [+10.719%; +24.284%]

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

  • unstable execution_time [-58.511ms; -28.148ms] or [-44.031%; -21.182%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • unstable execution_time [-32.608ms; -11.213ms] or [-21.810%; -7.500%]
  • unstable throughput [+10633.421op/s; +30679.681op/s] or [+6.786%; +19.579%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [+11.060ms; +35.019ms] or [+12.020%; +38.057%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-26.615ms; +22.402ms] or [-17.786%; +14.971%]
  • unstable throughput [-12771.710op/s; +15174.078op/s] or [-8.981%; +10.671%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [-32.805ms; -7.188ms] or [-29.863%; -6.543%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [-26.391ms; +9.411ms] or [-17.379%; +6.197%]
  • unstable throughput [-14800.605op/s; +10174.949op/s] or [-9.607%; +6.604%]

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

  • unstable execution_time [-59.000ms; -28.499ms] or [-44.954%; -21.714%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-5.210%; -5.202%]
  • unstable execution_time [-59.608ms; -27.461ms] or [-37.843%; -17.434%]
  • unstable throughput [+27360.992op/s; +51362.122op/s] or [+28.865%; +54.186%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1

  • unstable execution_time [-34.163ms; -8.912ms] or [-31.085%; -8.109%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [+22.434ms; +49.983ms] or [+14.644%; +32.627%]
  • unstable throughput [-28815.153op/s; -14077.256op/s] or [-24.018%; -11.734%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [-33.025ms; -8.412ms] or [-29.293%; -7.461%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-26.701ms; -0.310ms] or [-17.301%; -0.201%]
  • unstable throughput [-11301.469op/s; +7523.624op/s] or [-7.641%; +5.087%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [-31.823ms; -5.677ms] or [-29.485%; -5.260%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [+13.475ms; +51.246ms] or [+8.879%; +33.770%]
  • unstable throughput [-43469.834op/s; -488.530op/s] or [-25.016%; -0.281%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [+8.708ms; +33.659ms] or [+9.610%; +37.146%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9928.195op/s; -9019.985op/s] or [-11.772%; -10.695%]

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

  • unstable execution_time [-35.727ms; -5.497ms] or [-17.824%; -2.742%]
  • unstable throughput [-59580.477op/s; -47501.138op/s] or [-50.080%; -39.927%]

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

  • unstable execution_time [-73.253ms; -44.506ms] or [-36.844%; -22.385%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+306.077ms; +320.926ms] or [+151.886%; +159.255%]
  • 🟥 throughput [-57.804op/s; -45.318op/s] or [-10.400%; -8.154%]

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

  • 🟥 execution_time [+97.313ms; +98.619ms] or [+76.883%; +77.915%]
  • 🟩 throughput [+94.263op/s; +99.173op/s] or [+12.428%; +13.076%]

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

  • 🟥 execution_time [+83.759ms; +84.895ms] or [+74.123%; +75.129%]

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 [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • 🟩 execution_time [-85.171ms; -80.984ms] or [-39.778%; -37.822%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • unstable execution_time [-63.605ms; -42.454ms] or [-30.288%; -20.216%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-259308.103op/s; -254873.671op/s] or [-26.477%; -26.024%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-82.803ms; -51.196ms] or [-36.927%; -22.831%]
  • unstable throughput [-276961.700op/s; -156028.793op/s] or [-29.588%; -16.669%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • unstable execution_time [-60.345ms; -37.635ms] or [-30.121%; -18.786%]
  • 🟥 throughput [-143327.208op/s; -125255.124op/s] or [-20.593%; -17.997%]

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

  • 🟩 execution_time [-43.398ms; -26.923ms] or [-21.897%; -13.584%]

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

  • 🟩 execution_time [-34.447ms; -15.140ms] or [-17.562%; -7.719%]
  • 🟩 throughput [+9464.270op/s; +12381.256op/s] or [+7.540%; +9.863%]

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

  • 🟩 execution_time [-69.264ms; -52.619ms] or [-34.246%; -26.016%]

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

  • unstable execution_time [-63.763ms; -37.813ms] or [-29.392%; -17.431%]
  • 🟩 throughput [+168486.495op/s; +222696.279op/s] or [+6.688%; +8.839%]

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

  • 🟥 execution_time [+301.431ms; +315.810ms] or [+150.615%; +157.800%]

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

  • 🟥 execution_time [+127.856ms; +134.769ms] or [+64.478%; +67.964%]

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

  • unstable execution_time [+254.020ms; +289.498ms] or [+127.955%; +145.827%]

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

  • 🟥 execution_time [+297.651ms; +311.365ms] or [+146.194%; +152.930%]

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

  • 🟥 execution_time [+234.638ms; +242.214ms] or [+114.706%; +118.410%]

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

  • 🟥 execution_time [+269.828ms; +284.187ms] or [+134.860%; +142.037%]

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

  • 🟥 execution_time [+19.645µs; +43.288µs] or [+6.272%; +13.820%]
  • 🟥 throughput [-405.870op/s; -206.897op/s] or [-12.652%; -6.450%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.340ms; +301.197ms] or [+149.901%; +150.328%]

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

  • unstable execution_time [+359.384ms; +373.146ms] or [+390.486%; +405.438%]
  • 🟥 throughput [-6889.799op/s; -6724.255op/s] or [-56.614%; -55.254%]

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

  • unstable execution_time [+247.320ms; +300.728ms] or [+187.788%; +228.340%]
  • 🟥 throughput [-1260.124op/s; -1005.154op/s] or [-12.199%; -9.731%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+300.182ms; +316.517ms] or [+138.021%; +145.532%]
  • 🟥 throughput [-685.230op/s; -667.768op/s] or [-62.089%; -60.506%]

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

  • unstable execution_time [-51.208ms; +82.695ms] or [-21.823%; +35.241%]
  • 🟥 throughput [-707.827op/s; -615.481op/s] or [-47.212%; -41.053%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+343.521ms; +352.556ms] or [+205.465%; +210.870%]
  • 🟥 throughput [-726.343op/s; -692.040op/s] or [-50.574%; -48.186%]

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

  • 🟩 execution_time [-207.429µs; -193.644µs] or [-10.508%; -9.809%]
  • 🟩 throughput [+55.217op/s; +59.545op/s] or [+10.900%; +11.755%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.418ms; +315.066ms] or [+152.796%; +158.661%]

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

  • 🟥 execution_time [+230.724ms; +241.525ms] or [+115.616%; +121.028%]

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

  • 🟥 execution_time [+304.960ms; +312.150ms] or [+153.199%; +156.811%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+305.255ms; +319.286ms] or [+153.289%; +160.335%]

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

  • 🟥 execution_time [+195.925ms; +206.444ms] or [+96.876%; +102.077%]

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

  • 🟥 execution_time [+304.123ms; +311.628ms] or [+154.143%; +157.947%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+305.199ms; +317.808ms] or [+153.182%; +159.511%]

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

  • 🟥 execution_time [+304.777ms; +311.954ms] or [+151.903%; +155.480%]
  • 🟩 throughput [+28345.379op/s; +41644.243op/s] or [+5.628%; +8.269%]

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

  • 🟥 execution_time [+301.910ms; +308.274ms] or [+150.198%; +153.364%]

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

  • unstable execution_time [-50.508ms; -26.488ms] or [-23.486%; -12.317%]
  • unstable throughput [-163857.332op/s; -122065.456op/s] or [-44.951%; -33.486%]

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

  • unstable execution_time [-52.441ms; -24.642ms] or [-26.305%; -12.361%]

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

  • 🟩 allocated_mem [-24.535KB; -24.512KB] or [-8.950%; -8.941%]
  • unstable execution_time [-56.317µs; +1.220µs] or [-11.131%; +0.241%]
  • unstable throughput [+10.410op/s; +219.551op/s] or [+0.519%; +10.956%]

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

  • 🟩 allocated_mem [-16.161KB; -16.142KB] or [-5.891%; -5.884%]
  • 🟩 execution_time [-93.058µs; -38.151µs] or [-16.126%; -6.611%]
  • 🟩 throughput [+137.039op/s; +287.338op/s] or [+7.829%; +16.416%]

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

  • unstable execution_time [+4.806µs; +10.069µs] or [+11.360%; +23.799%]
  • 🟥 throughput [-4356.099op/s; -2320.463op/s] or [-18.338%; -9.768%]

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

  • unstable execution_time [-12.198µs; -2.236µs] or [-18.925%; -3.469%]
  • unstable throughput [+811.939op/s; +2810.435op/s] or [+4.982%; +17.243%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+305.264ms; +319.501ms] or [+154.297%; +161.494%]

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

  • 🟥 execution_time [+297.518ms; +304.827ms] or [+151.436%; +155.156%]

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

  • 🟥 execution_time [+301.382ms; +306.178ms] or [+150.879%; +153.280%]

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

  • unstable execution_time [-72.899ms; -41.679ms] or [-36.438%; -20.833%]
  • unstable throughput [-185212.354op/s; -115444.807op/s] or [-35.057%; -21.851%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.689ms; +313.787ms] or [+149.368%; +156.394%]

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

  • unstable execution_time [+223.431ms; +282.130ms] or [+112.196%; +141.672%]

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

  • 🟥 execution_time [+305.600ms; +312.828ms] or [+154.981%; +158.646%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.865ms; +300.729ms] or [+149.574%; +150.005%]
  • 🟩 throughput [+60067952.878op/s; +60347560.485op/s] or [+43.745%; +43.949%]

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

  • unstable execution_time [+374.305ms; +394.381ms] or [+465.515%; +490.483%]
  • 🟥 throughput [-7425.621op/s; -7171.039op/s] or [-57.404%; -55.436%]

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

  • 🟥 execution_time [+301.639ms; +304.310ms] or [+150.450%; +151.783%]
  • 🟥 throughput [-30002013.551op/s; -28718042.661op/s] or [-13.289%; -12.720%]

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

  • 🟩 execution_time [-94.400ms; -74.039ms] or [-46.236%; -36.263%]
  • unstable throughput [-98708.894op/s; +30523.779op/s] or [-9.216%; +2.850%]

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

  • 🟩 execution_time [-97.973ms; -93.577ms] or [-49.575%; -47.351%]

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

  • unstable execution_time [-77.685ms; -56.230ms] or [-40.474%; -29.296%]
  • unstable throughput [-131324.850op/s; +22736.439op/s] or [-10.165%; +1.760%]

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

  • 🟩 execution_time [-102.727ms; -100.781ms] or [-50.471%; -49.515%]
  • 🟩 throughput [+89995.862op/s; +100339.774op/s] or [+8.938%; +9.965%]

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

  • unstable execution_time [-56.054ms; -31.154ms] or [-27.993%; -15.558%]
  • unstable throughput [-172478.018op/s; -94091.110op/s] or [-31.319%; -17.085%]

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

  • unstable execution_time [-29.021ms; -6.648ms] or [-14.581%; -3.340%]

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

  • unstable execution_time [-95.902ms; -71.378ms] or [-47.968%; -35.701%]
  • unstable throughput [-100310.762op/s; +17100.766op/s] or [-11.207%; +1.911%]

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

  • unstable execution_time [-52.381ms; -24.023ms] or [-26.603%; -12.201%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • 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.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • 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.OptimizedCharSlice netcoreapp3.1
  • 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.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • 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

@andreimatei
andreimatei force-pushed the andrei/symdb-upload-fields branch from 433f256 to 2aa8f23 Compare May 8, 2026 23:01

@dudikeleti dudikeleti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I left a few comments / questions.

Comment thread tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs
Comment thread tracer/src/Datadog.Trace/Debugger/Symbols/SymbolsUploader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Symbols/SymbolsUploader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Symbols/SymbolsUploader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs Outdated
For symdb uploads we were sending the event
{
  ...
  "debugger.type": "symdb"
}
I think this was useless; that's not where the EvP pipeline looks for
the type for routing (things were still working because of a fallback
looking for attachments). The other tracers (Java, Python, Ruby) all
put "type" at the root of the SymDB upload event message, not behind
a "debugger.<key>" prefix. Align with them by moving "type" to the
root.
…d attachment

Add the following fields to the SymDB upload event message that
accompanies each multipart upload (camelCase, matching the rest of
the EvP event schema):

- "version" (top-level): the service version
- "language" (top-level): "dotnet"
- "uploadId" (top-level): a UUID generated once per SymbolsUploader
  instance, shared by all batches uploaded by the instance
- "batchNum" (top-level): 1-indexed counter incremented per upload
- "final" (top-level): always false; the .NET tracer continuously
  uploads new code as assemblies get loaded, so there is no defined
  end-of-upload point
- "attachmentSize" (top-level): size in bytes of the (compressed)
  attachment payload

Also add the same metadata to the gzipped attachment Root
(snake_case to match the rest of the attachment scope schema):

- "upload_id"
- "batch_num"
- "final"

uploadId/batchNum are computed in SymbolsUploader once per batch
(rebuilding the JSON prefix per batch) and threaded into
SymbolUploadApi.SendBatchAsync so both the attachment and the event
JSON carry the same values. SymbolUploadApi no longer tracks its own
batch counter.

Some of these fields are new, to be used by the backend in the future.
Others duplicate info that was already included in the attachment; by
duplicating some metadata out of the SymDB attachment body into the EvP
event body, the backend can populate per-attachment bookkeeping without
downloading the attachment.
@andreimatei
andreimatei force-pushed the andrei/symdb-upload-fields branch from 2aa8f23 to 3487c6f Compare May 11, 2026 19:38

@dudikeleti dudikeleti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!
Just to confirm, are there already system tests for this, or do we need to add them?

@andreimatei
andreimatei merged commit eb41423 into master May 12, 2026
141 checks passed
@andreimatei
andreimatei deleted the andrei/symdb-upload-fields branch May 12, 2026 19:32
@github-actions github-actions Bot added this to the vNext-v3 milestone May 12, 2026
@andreimatei

Copy link
Copy Markdown
Contributor Author

I'm adding system tests in DataDog/system-tests#6887
Give it a look please.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants