Skip to content

fix(otel): Submit OTLP traces to correct endpoint when APM UDS socket is set#8668

Merged
zacharycmontoya merged 15 commits into
masterfrom
zach.montoya/otlp-when-uds-enabled-feedback
Jun 2, 2026
Merged

fix(otel): Submit OTLP traces to correct endpoint when APM UDS socket is set#8668
zacharycmontoya merged 15 commits into
masterfrom
zach.montoya/otlp-when-uds-enabled-feedback

Conversation

@zacharycmontoya

Copy link
Copy Markdown
Contributor

Summary of changes

Fixes a bug where setting the APM UDS socket would inadvertently set the HttpClient used by OTLP traces export, which led to trace submission issues. This is accomplished by having the OTLP traces exporter use a new code path to configure the underlying HTTP client.

Reason for change

The primary motivation was to resolve the following OTLP traces export issue: When OTLP traces export is enabled through the configuration OTEL_TRACES_EXPORTER=otlp, the endpoint defaults to TCP/IP communication with endpoint http://localhost:4317 or http://localhost:4318. However, when DD_APM_RECEIVER_SOCKET is configured and its socket file is present, the underlying HTTP client for the OTLP traces exporter is erroneously being configured for UDS communication rather than TCP/IP.

Implementation details

  • Adds a new OtlpTransportStrategy that is a factory for OTLP traces HTTP clients. This supports TCP/IP endpoints and UDS endpoints (though UDS is not currently tested)
  • ManagedApiOtlp gets an HTTP client from OtlpTransportStrategy.GetTraces rather than TracesTransportStrategy.Get
  • Creates and uses a new OtlpHeaderHelper instance to set default headers for all OTLP traces HTTP requests

Test coverage

Adds unit tests in ManagedApiOtlpTests. Note: UDS is supported but currently untested.

Other details

Replaces #8614 and #8460

- Rename enum TracesTransportType to AgentTransportType (still used by ExporterSettings.TracesTransport)
- Add new AgentTransport property (type=AgentTransportType) to the ExporterSettings to separate logical traces endpoint vs agent endpoint
- Change some usage of ExporterSettings.TracesTransport to ExporterSettings.AgentTransport
- Do not set OTLP trace headers twice.
- Reset the traces transport back to the Datadog Agent transport if the OTLP protocol is unsupported
…lpTraces as a regression test"

This reverts commit 4243173.
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented May 20, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 2 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-dotnet | check-big-regressions   View in Datadog   GitLab

🔧 Fix in code (Fix with Cursor). Execution of Regression Check failed with exit code 5.

DataDog/apm-reliability/dd-trace-dotnet | benchmark-serverless   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6419f4e | Docs | Datadog PR Page | Give us feedback!

@dd-trace-dotnet-ci-bot

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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8668) 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
duration74.24 ± (74.14 - 74.68) ms74.80 ± (74.77 - 75.41) ms+0.8%✅⬆️
.NET Framework 4.8 - Bailout
duration77.11 ± (77.05 - 77.47) ms77.53 ± (77.34 - 77.72) ms+0.5%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1112.73 ± (1110.37 - 1119.31) ms1107.97 ± (1105.99 - 1113.57) ms-0.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.47 ± (22.42 - 22.52) ms22.56 ± (22.52 - 22.60) ms+0.4%✅⬆️
process.time_to_main_ms84.97 ± (84.68 - 85.27) ms84.22 ± (83.99 - 84.45) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.89 - 10.90) MB10.93 ± (10.92 - 10.93) MB+0.3%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.22 ± (22.17 - 22.26) ms22.46 ± (22.42 - 22.51) ms+1.1%✅⬆️
process.time_to_main_ms84.67 ± (84.46 - 84.88) ms85.40 ± (85.18 - 85.62) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.94) MB10.95 ± (10.95 - 10.96) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.86 ± (213.95 - 215.76) ms215.28 ± (214.43 - 216.12) ms+0.2%✅⬆️
process.time_to_main_ms543.69 ± (542.22 - 545.16) ms543.12 ± (541.76 - 544.47) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.24 ± (48.20 - 48.28) MB48.35 ± (48.32 - 48.39) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.14 ± (21.10 - 21.17) ms21.20 ± (21.15 - 21.24) ms+0.3%✅⬆️
process.time_to_main_ms73.63 ± (73.45 - 73.80) ms73.64 ± (73.46 - 73.82) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.61 - 10.61) MB10.64 ± (10.64 - 10.64) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.55 ± (21.49 - 21.61) ms21.63 ± (21.56 - 21.69) ms+0.4%✅⬆️
process.time_to_main_ms77.23 ± (76.95 - 77.51) ms77.72 ± (77.44 - 78.00) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.76 ± (10.76 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms372.16 ± (370.17 - 374.14) ms369.26 ± (366.88 - 371.63) ms-0.8%
process.time_to_main_ms549.35 ± (548.07 - 550.63) ms550.61 ± (549.23 - 551.99) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.79 ± (49.77 - 49.82) MB49.72 ± (49.70 - 49.75) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.31 ± (19.28 - 19.34) ms19.39 ± (19.34 - 19.43) ms+0.4%✅⬆️
process.time_to_main_ms72.29 ± (72.14 - 72.44) ms72.85 ± (72.65 - 73.04) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.67 ± (7.67 - 7.68) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.29 ± (19.25 - 19.33) ms19.40 ± (19.37 - 19.43) ms+0.6%✅⬆️
process.time_to_main_ms73.75 ± (73.59 - 73.91) ms74.07 ± (73.91 - 74.23) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.72 ± (7.71 - 7.72) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms294.97 ± (292.86 - 297.07) ms300.32 ± (297.97 - 302.67) ms+1.8%✅⬆️
process.time_to_main_ms499.89 ± (498.58 - 501.20) ms499.91 ± (498.67 - 501.16) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.76 ± (36.73 - 36.79) MB36.85 ± (36.82 - 36.89) MB+0.3%✅⬆️
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
duration198.17 ± (197.81 - 198.84) ms197.26 ± (196.77 - 197.75) ms-0.5%
.NET Framework 4.8 - Bailout
duration203.26 ± (202.69 - 203.64) ms201.67 ± (200.90 - 201.81) ms-0.8%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1195.98 ± (1195.46 - 1201.59) ms1187.94 ± (1188.32 - 1194.07) ms-0.7%
.NET Core 3.1 - Baseline
process.internal_duration_ms193.02 ± (192.55 - 193.49) ms192.41 ± (192.00 - 192.82) ms-0.3%
process.time_to_main_ms83.73 ± (83.46 - 84.01) ms83.89 ± (83.51 - 84.26) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.01 - 16.07) MB16.05 ± (16.03 - 16.08) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)+0.4%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms193.13 ± (192.61 - 193.65) ms193.09 ± (192.68 - 193.51) ms-0.0%
process.time_to_main_ms85.13 ± (84.86 - 85.40) ms84.91 ± (84.63 - 85.19) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.12 ± (16.09 - 16.15) MB16.16 ± (16.13 - 16.19) MB+0.2%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms386.11 ± (384.84 - 387.37) ms386.24 ± (384.81 - 387.67) ms+0.0%✅⬆️
process.time_to_main_ms534.00 ± (532.88 - 535.13) ms536.12 ± (535.04 - 537.21) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.44 ± (57.24 - 57.63) MB57.44 ± (57.25 - 57.63) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms197.00 ± (196.50 - 197.50) ms197.22 ± (196.88 - 197.56) ms+0.1%✅⬆️
process.time_to_main_ms72.08 ± (71.85 - 72.30) ms72.38 ± (72.11 - 72.64) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.34 ± (16.31 - 16.36) MB16.36 ± (16.33 - 16.39) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.7%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms196.77 ± (196.34 - 197.19) ms196.55 ± (196.13 - 196.97) ms-0.1%
process.time_to_main_ms73.23 ± (73.01 - 73.45) ms73.38 ± (73.17 - 73.59) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.43) MB16.42 ± (16.39 - 16.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms587.44 ± (585.18 - 589.71) ms587.31 ± (584.46 - 590.17) ms-0.0%
process.time_to_main_ms545.86 ± (544.82 - 546.90) ms540.92 ± (539.85 - 541.99) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.06 ± (60.98 - 61.15) MB61.06 ± (60.96 - 61.15) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.2%
.NET 8 - Baseline
process.internal_duration_ms195.61 ± (195.23 - 195.99) ms195.15 ± (194.64 - 195.65) ms-0.2%
process.time_to_main_ms71.90 ± (71.62 - 72.19) ms71.84 ± (71.59 - 72.09) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.69 - 11.74) MB11.73 ± (11.71 - 11.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms194.02 ± (193.62 - 194.43) ms194.37 ± (193.93 - 194.82) ms+0.2%✅⬆️
process.time_to_main_ms72.33 ± (72.15 - 72.51) ms72.96 ± (72.78 - 73.13) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.72 - 11.76) MB11.71 ± (11.69 - 11.73) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.7%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.33 ± (514.82 - 519.85) ms514.45 ± (512.09 - 516.80) ms-0.6%
process.time_to_main_ms492.68 ± (491.76 - 493.61) ms492.67 ± (492.02 - 493.32) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.52 ± (50.49 - 50.55) MB50.53 ± (50.50 - 50.56) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)29 ± (29 - 30)-0.2%
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 (8668) - mean (75ms)  : 70, 80
    master - mean (74ms)  : 70, 79

    section Bailout
    This PR (8668) - mean (78ms)  : 75, 80
    master - mean (77ms)  : 75, 79

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (1,110ms)  : 1055, 1165
    master - mean (1,115ms)  : 1048, 1181

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 (8668) - mean (113ms)  : 109, 118
    master - mean (114ms)  : 109, 120

    section Bailout
    This PR (8668) - mean (115ms)  : 112, 117
    master - mean (113ms)  : 111, 116

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (794ms)  : 770, 817
    master - mean (794ms)  : 769, 820

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

    section Bailout
    This PR (8668) - mean (106ms)  : 100, 112
    master - mean (106ms)  : 100, 111

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (950ms)  : 910, 991
    master - mean (952ms)  : 912, 991

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

    section Bailout
    This PR (8668) - mean (101ms)  : 98, 105
    master - mean (101ms)  : 98, 103

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (830ms)  : 782, 878
    master - mean (826ms)  : 791, 862

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 (8668) - mean (197ms)  : 191, 204
    master - mean (198ms)  : 191, 206

    section Bailout
    This PR (8668) - mean (201ms)  : 197, 206
    master - mean (203ms)  : 199, 208

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (1,191ms)  : 1150, 1232
    master - mean (1,199ms)  : 1156, 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 (8668) - mean (285ms)  : 279, 291
    master - mean (286ms)  : 279, 293

    section Bailout
    This PR (8668) - mean (287ms)  : 281, 293
    master - mean (287ms)  : 280, 294

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (961ms)  : 944, 978
    master - mean (961ms)  : 934, 987

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8668) - mean (278ms)  : 271, 285
    master - mean (278ms)  : 269, 286

    section Bailout
    This PR (8668) - mean (278ms)  : 273, 283
    master - mean (278ms)  : 272, 285

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (1,157ms)  : 1124, 1191
    master - mean (1,165ms)  : 1121, 1209

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8668) - mean (277ms)  : 270, 284
    master - mean (278ms)  : 272, 283

    section Bailout
    This PR (8668) - mean (277ms)  : 271, 283
    master - mean (276ms)  : 271, 282

    section CallTarget+Inlining+NGEN
    This PR (8668) - mean (1,038ms)  : 1000, 1076
    master - mean (1,043ms)  : 1005, 1080

Loading

@zacharycmontoya
zacharycmontoya marked this pull request as ready for review May 22, 2026 15:00
@zacharycmontoya
zacharycmontoya requested a review from a team as a code owner May 22, 2026 15:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2494b6e346

ℹ️ 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".

Comment thread tracer/src/Datadog.Trace/Agent/OtlpTransportStrategy.cs

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@pr-commenter

pr-commenter Bot commented May 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-02 22:09:25

Comparing candidate commit 6419f4e in PR branch zach.montoya/otlp-when-uds-enabled-feedback with baseline commit 6280b56 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.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

Found 8 performance improvements and 13 performance regressions! Performance is the same for 43 metrics, 8 unstable metrics, 89 known flaky benchmarks, 37 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 [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟥 throughput [-121182.799op/s; -105049.862op/s] or [-43.391%; -37.615%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan netcoreapp3.1

  • 🟩 execution_time [-112.686ms; -111.084ms] or [-56.033%; -55.236%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan net472

  • 🟥 throughput [-15717.560op/s; -13922.200op/s] or [-8.203%; -7.266%]

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

  • 🟥 throughput [-109390.110op/s; -92680.062op/s] or [-40.129%; -33.999%]
  • 🟩 execution_time [-74.982ms; -57.441ms] or [-37.374%; -28.631%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟥 throughput [-105580.354op/s; -100261.830op/s] or [-37.746%; -35.845%]
  • 🟩 execution_time [-67.301ms; -49.915ms] or [-33.665%; -24.969%]

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

  • 🟩 execution_time [-110.562ms; -108.964ms] or [-55.231%; -54.433%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟥 throughput [-100049.878op/s; -93949.859op/s] or [-36.431%; -34.210%]
  • 🟩 execution_time [-80.710ms; -78.159ms] or [-40.413%; -39.135%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan netcoreapp3.1

  • 🟩 execution_time [-109.328ms; -107.628ms] or [-54.433%; -53.586%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+7.889%; +7.898%]
  • 🟥 throughput [-113681.606op/s; -95010.995op/s] or [-45.437%; -37.975%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive netcoreapp3.1

  • 🟩 execution_time [-110.345ms; -108.941ms] or [-55.178%; -54.476%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net6.0

  • 🟥 throughput [-309476.013op/s; -262337.598op/s] or [-58.720%; -49.776%]

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

  • 🟥 throughput [-71843.945op/s; -63938.100op/s] or [-48.805%; -43.434%]
  • 🟩 execution_time [-33.935ms; -16.672ms] or [-16.840%; -8.273%]

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

  • 🟥 throughput [-75691.025op/s; -55921.645op/s] or [-37.952%; -28.039%]

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

  • 🟩 execution_time [-75.280ms; -55.418ms] or [-37.550%; -27.643%]
  • 🟥 throughput [-81137.123op/s; -78609.842op/s] or [-28.909%; -28.008%]

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

  • 🟩 execution_time [-110.297ms; -109.069ms] or [-55.074%; -54.461%]

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

  • 🟩 execution_time [-77.232ms; -75.032ms] or [-38.594%; -37.495%]
  • 🟥 throughput [-102152.407op/s; -99561.717op/s] or [-39.101%; -38.109%]

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

  • 🟩 execution_time [-110.445ms; -109.003ms] or [-55.216%; -54.496%]

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

  • 🟩 execution_time [-77.269ms; -64.336ms] or [-38.557%; -32.103%]
  • 🟥 throughput [-109055.185op/s; -90761.039op/s] or [-39.249%; -32.665%]

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

  • 🟩 execution_time [-112.379ms; -110.804ms] or [-55.986%; -55.202%]

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

  • 🟩 execution_time [-61.370ms; -45.427ms] or [-30.592%; -22.645%]
  • 🟥 throughput [-93637.586op/s; -90093.927op/s] or [-39.760%; -38.255%]

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

  • 🟩 execution_time [-110.178ms; -108.719ms] or [-54.928%; -54.201%]

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

  • 🟩 execution_time [-64.395ms; -45.969ms] or [-32.009%; -22.850%]
  • 🟥 throughput [-141964.041op/s; -122076.936op/s] or [-48.289%; -41.525%]

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

  • unstable execution_time [-103.799ms; -78.768ms] or [-51.416%; -39.018%]

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

  • 🟩 execution_time [-81.270ms; -78.483ms] or [-40.579%; -39.188%]
  • 🟥 throughput [-98009.664op/s; -94533.073op/s] or [-34.150%; -32.938%]

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

  • 🟩 execution_time [-110.924ms; -109.708ms] or [-55.245%; -54.639%]

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

  • unstable execution_time [-34.713ms; -2.323ms] or [-17.342%; -1.161%]
  • 🟥 throughput [-151368.391op/s; -126979.942op/s] or [-54.835%; -46.000%]

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

  • unstable execution_time [-79.708ms; -50.655ms] or [-39.872%; -25.339%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+8.332%; +8.340%]
  • unstable execution_time [-42.112ms; -18.738ms] or [-21.078%; -9.379%]
  • 🟥 throughput [-126651.947op/s; -108431.926op/s] or [-50.705%; -43.411%]

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

  • 🟩 execution_time [-112.655ms; -111.326ms] or [-56.196%; -55.533%]

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

  • unstable execution_time [-49.098ms; -15.535ms] or [-24.445%; -7.735%]
  • 🟥 throughput [-141567.243op/s; -119686.883op/s] or [-52.436%; -44.332%]

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

  • 🟩 execution_time [-115.203ms; -113.623ms] or [-57.474%; -56.686%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+5.487%; +5.496%]
  • unstable execution_time [-76.508ms; -55.804ms] or [-38.123%; -27.806%]
  • 🟥 throughput [-72547.735op/s; -57665.809op/s] or [-40.907%; -32.516%]

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

  • 🟩 execution_time [-114.243ms; -112.578ms] or [-57.228%; -56.394%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+7.434%; +7.442%]
  • unstable execution_time [-13.307ms; +18.165ms] or [-6.654%; +9.083%]
  • 🟥 throughput [-137471.719op/s; -122421.288op/s] or [-60.898%; -54.231%]

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

  • unstable execution_time [-101.767ms; -76.884ms] or [-50.558%; -38.196%]

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

  • unstable execution_time [-57.783ms; -35.754ms] or [-28.837%; -17.843%]
  • 🟥 throughput [-137254.321op/s; -119652.423op/s] or [-51.167%; -44.605%]

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

  • 🟩 execution_time [-112.958ms; -111.774ms] or [-56.399%; -55.808%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [-44.489ms; -8.986ms] or [-22.197%; -4.484%]
  • 🟥 throughput [-135544.080op/s; -111714.875op/s] or [-48.140%; -39.677%]

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

  • 🟩 execution_time [-112.438ms; -111.109ms] or [-56.182%; -55.518%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9530.934op/s; -8717.783op/s] or [-11.301%; -10.337%]

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

  • unstable execution_time [-64.107ms; -39.176ms] or [-31.983%; -19.545%]
  • unstable throughput [-47137.134op/s; -33996.418op/s] or [-39.621%; -28.575%]

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

  • unstable execution_time [-70.350ms; -42.685ms] or [-35.384%; -21.469%]
  • 🟥 throughput [-7283.929op/s; -5926.926op/s] or [-7.406%; -6.026%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+315.230ms; +331.302ms] or [+156.428%; +164.404%]
  • 🟥 throughput [-55.064op/s; -42.320op/s] or [-9.907%; -7.614%]

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

  • 🟥 execution_time [+98.592ms; +100.169ms] or [+77.894%; +79.140%]
  • 🟩 throughput [+88.487op/s; +94.320op/s] or [+11.667%; +12.436%]

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

  • 🟥 execution_time [+83.531ms; +84.795ms] or [+73.921%; +75.040%]

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 [-34.883ms; -15.193ms] or [-16.292%; -7.096%]
  • 🟥 throughput [-41572.403op/s; -28566.914op/s] or [-30.346%; -20.852%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-33.917ms; -15.746ms] or [-16.151%; -7.498%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-264734.085op/s; -259358.258op/s] or [-27.031%; -26.482%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-104.170ms; -71.687ms] or [-46.455%; -31.969%]
  • unstable throughput [-187600.352op/s; -67575.560op/s] or [-20.042%; -7.219%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-86.006ms; -81.621ms] or [-42.931%; -40.742%]
  • 🟥 throughput [-143689.048op/s; -127042.808op/s] or [-20.645%; -18.254%]

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

  • 🟩 execution_time [-35.044ms; -18.036ms] or [-17.682%; -9.100%]
  • 🟥 throughput [-30574.511op/s; -16191.843op/s] or [-19.454%; -10.303%]

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

  • 🟩 execution_time [-61.587ms; -45.162ms] or [-31.399%; -23.025%]
  • 🟩 throughput [+8877.607op/s; +11692.095op/s] or [+7.072%; +9.314%]

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

  • unstable execution_time [-44.684ms; -23.753ms] or [-22.093%; -11.744%]
  • unstable throughput [-633767.769op/s; -251655.662op/s] or [-21.133%; -8.391%]

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

  • 🟩 execution_time [-44.240ms; -22.962ms] or [-20.393%; -10.584%]
  • 🟩 throughput [+153428.846op/s; +207300.063op/s] or [+6.090%; +8.228%]

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

  • 🟥 execution_time [+302.132ms; +316.022ms] or [+150.965%; +157.906%]

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

  • unstable execution_time [+210.929ms; +257.062ms] or [+106.372%; +129.637%]

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

  • unstable execution_time [+253.825ms; +290.547ms] or [+127.858%; +146.355%]

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

  • 🟥 execution_time [+297.732ms; +311.453ms] or [+146.234%; +152.974%]

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

  • 🟥 execution_time [+269.314ms; +289.355ms] or [+131.658%; +141.455%]

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

  • 🟥 execution_time [+302.949ms; +308.699ms] or [+151.413%; +154.287%]

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

  • 🟥 execution_time [+22.041µs; +45.733µs] or [+7.036%; +14.600%]
  • 🟥 throughput [-426.107op/s; -226.790op/s] or [-13.283%; -7.070%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.446ms; +301.946ms] or [+149.954%; +150.702%]

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

  • unstable execution_time [+349.697ms; +368.822ms] or [+379.961%; +400.741%]
  • 🟥 throughput [-6886.210op/s; -6725.070op/s] or [-56.585%; -55.261%]

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

  • unstable execution_time [+213.726ms; +273.069ms] or [+162.281%; +207.339%]
  • 🟥 throughput [-1320.742op/s; -1072.362op/s] or [-12.786%; -10.381%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+302.635ms; +317.565ms] or [+139.148%; +146.013%]
  • 🟥 throughput [-686.535op/s; -669.656op/s] or [-62.207%; -60.677%]

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

  • unstable execution_time [-45.191ms; +89.115ms] or [-19.259%; +37.977%]
  • 🟥 throughput [-726.582op/s; -630.080op/s] or [-48.463%; -42.027%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+334.362ms; +343.801ms] or [+199.987%; +205.633%]
  • 🟥 throughput [-732.345op/s; -698.083op/s] or [-50.992%; -48.607%]

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

  • 🟩 execution_time [-164.918µs; -119.983µs] or [-8.354%; -6.078%]
  • 🟩 throughput [+33.933op/s; +46.877op/s] or [+6.699%; +9.254%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+306.210ms; +320.542ms] or [+154.202%; +161.419%]

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

  • 🟥 execution_time [+243.095ms; +262.298ms] or [+121.816%; +131.438%]

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

  • 🟥 execution_time [+303.437ms; +310.425ms] or [+152.434%; +155.944%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.635ms; +314.120ms] or [+151.471%; +157.740%]

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

  • unstable execution_time [+157.461ms; +192.218ms] or [+77.857%; +95.043%]

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

  • 🟥 execution_time [+305.238ms; +312.453ms] or [+154.708%; +158.365%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.152ms; +313.999ms] or [+151.151%; +157.599%]

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

  • 🟥 execution_time [+305.245ms; +311.511ms] or [+152.137%; +155.260%]
  • 🟩 throughput [+32938.659op/s; +42415.454op/s] or [+6.541%; +8.422%]

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

  • 🟥 execution_time [+304.376ms; +311.417ms] or [+151.424%; +154.927%]

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

  • unstable execution_time [-77.364ms; -51.295ms] or [-35.975%; -23.852%]
  • unstable throughput [-94942.439op/s; -45398.211op/s] or [-26.045%; -12.454%]

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

  • 🟩 execution_time [-98.571ms; -94.387ms] or [-49.445%; -47.346%]

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

  • 🟩 allocated_mem [-26.985KB; -26.962KB] or [-9.843%; -9.835%]
  • unstable execution_time [-77.284µs; -22.989µs] or [-15.275%; -4.544%]
  • 🟩 throughput [+111.972op/s; +309.732op/s] or [+5.587%; +15.456%]

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

  • 🟩 execution_time [-88.314µs; -32.735µs] or [-15.304%; -5.673%]
  • 🟩 throughput [+117.853op/s; +271.161op/s] or [+6.733%; +15.492%]

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

  • unstable execution_time [+4.661µs; +10.009µs] or [+11.018%; +23.659%]
  • 🟥 throughput [-4306.634op/s; -2256.404op/s] or [-18.130%; -9.499%]

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

  • unstable execution_time [-12.227µs; -1.679µs] or [-18.970%; -2.605%]
  • unstable throughput [+796.920op/s; +2844.248op/s] or [+4.889%; +17.450%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.412ms; +313.627ms] or [+152.856%; +158.524%]

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

  • 🟥 execution_time [+303.989ms; +309.918ms] or [+154.730%; +157.748%]

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

  • 🟥 execution_time [+303.277ms; +309.049ms] or [+151.828%; +154.717%]

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

  • unstable execution_time [-85.630ms; -64.087ms] or [-42.802%; -32.034%]
  • 🟥 throughput [-142299.872op/s; -92226.834op/s] or [-26.934%; -17.457%]

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

  • unstable execution_time [-56.330ms; -26.324ms] or [-28.554%; -13.344%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.165ms; +316.556ms] or [+150.602%; +157.774%]

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

  • 🟥 execution_time [+306.533ms; +313.558ms] or [+153.926%; +157.454%]

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

  • 🟥 execution_time [+302.776ms; +309.706ms] or [+153.549%; +157.063%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.959ms; +300.891ms] or [+149.621%; +150.086%]
  • 🟩 throughput [+64485903.849op/s; +64837533.766op/s] or [+46.963%; +47.219%]

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

  • unstable execution_time [+373.742ms; +392.936ms] or [+464.814%; +488.686%]
  • 🟥 throughput [-7449.891op/s; -7208.204op/s] or [-57.591%; -55.723%]

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

  • 🟥 execution_time [+298.353ms; +301.197ms] or [+148.811%; +150.230%]
  • 🟥 throughput [-18722711.157op/s; -17330043.979op/s] or [-8.293%; -7.676%]

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

  • unstable execution_time [-92.019ms; -69.977ms] or [-45.070%; -34.274%]
  • unstable throughput [-128665.059op/s; -12279.233op/s] or [-12.013%; -1.146%]

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

  • 🟩 execution_time [-99.253ms; -94.938ms] or [-50.223%; -48.039%]

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

  • unstable execution_time [-81.724ms; -60.952ms] or [-42.579%; -31.756%]
  • unstable throughput [-108453.893op/s; +36708.345op/s] or [-8.395%; +2.841%]

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

  • unstable execution_time [-90.764ms; -68.533ms] or [-44.594%; -33.671%]
  • 🟩 throughput [+80166.184op/s; +93328.299op/s] or [+7.962%; +9.269%]

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

  • unstable execution_time [-46.755ms; -14.396ms] or [-23.349%; -7.189%]
  • unstable throughput [-190488.739op/s; -107971.298op/s] or [-34.589%; -19.606%]

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

  • unstable execution_time [-71.890ms; -44.637ms] or [-36.121%; -22.427%]

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

  • unstable execution_time [-97.070ms; -70.942ms] or [-48.552%; -35.483%]
  • unstable throughput [-120626.882op/s; -5967.698op/s] or [-13.477%; -0.667%]

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_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.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

@link04 link04 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.

Just a couple of nits but looks good TY! I'll try looking into adding UDS support to the test Agent so we can rely on it.

Comment thread tracer/src/Datadog.Trace/Agent/OtlpTransportStrategy.cs Outdated
Comment thread tracer/src/Datadog.Trace/Agent/OtlpTransportStrategy.cs Outdated
Comment thread tracer/src/Datadog.Trace/Agent/OtlpTransportStrategy.cs Outdated
- Reuse ExporterSettings.UnixDomainSocketPrefix
- Remove timeout from log message because it is unused
@zacharycmontoya
zacharycmontoya enabled auto-merge (squash) June 2, 2026 21:10
@zacharycmontoya
zacharycmontoya merged commit 25d5e3e into master Jun 2, 2026
134 of 136 checks passed
@zacharycmontoya
zacharycmontoya deleted the zach.montoya/otlp-when-uds-enabled-feedback branch June 2, 2026 22:29
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:opentelemetry OpenTelemetry support type:bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants