Skip to content

feat(telemetry): forward session ids through data-pipeline FFI#8500

Draft
khanayan123 wants to merge 4 commits into
masterfrom
ayan.khan/data-pipeline-session-id-headers
Draft

feat(telemetry): forward session ids through data-pipeline FFI#8500
khanayan123 wants to merge 4 commits into
masterfrom
ayan.khan/data-pipeline-session-id-headers

Conversation

@khanayan123
Copy link
Copy Markdown
Contributor

@khanayan123 khanayan123 commented Apr 22, 2026

Summary

Closes the session-id parity gap between PR #8352 (managed telemetry transport) and the libdatadog-backed telemetry transport that engages when DD_TRACE_DATA_PIPELINE_ENABLED=true.

PR #8352 added DD-Session-ID and DD-Root-Session-ID headers for telemetry traffic on the managed HttpClientRequestFactory / ApiWebRequestFactory path. When DataPipelineEnabled=true, telemetry is instead originated by libdatadog's telemetry worker and those managed headers never apply. Until now, there was no FFI surface to carry session IDs into libdatadog's worker from the trace-exporter path.

This PR plumbs the IDs through the new FFI fields added in DataDog/libdatadog#1822:

  • TelemetryClientConfiguration — adds SessionId, RootSessionId, and ParentSessionId CharSlice fields, mirroring the libdd-data-pipeline-ffi::TelemetryClientConfig layout.
  • ManagedTraceExporter.CreateTraceExporter — populates SessionId = Tracer.RuntimeId and RootSessionId = RuntimeId.GetRootSessionId(), matching the exact header semantics used by the managed transport in PR feat: Stable Session ID headers for telemetry #8352. ParentSessionId is left unset, consistent with the managed path (the .NET tracer does not currently emit DD-Parent-Session-ID).
  • libdatadog bump (v30.0.0v33.0.0) — v33.0.0 (2026-05-07) is the first release containing Disable memory dumps in CI #1822. Updates build/cmake/FindLibdatadog.cmake, build/vcpkg_local_ports/libdatadog/portfile.cmake, and build/vcpkg_local_ports/libdatadog/vcpkg.json with new SHA256/SHA512 hashes from the release notes.

On the libdatadog side, empty CharSlices are treated as unset, so consumers that don't populate these fields behave unchanged. The worker already suppresses DD-Root-Session-ID when it equals the session id, so we can forward both unconditionally without emitting redundant headers on the wire.

Dependencies

DataDog/libdatadog#1822 — shipped in libdatadog v33.0.0 (2026-05-07). The vendored version is bumped in this PR.

Test plan

  • CI green against v33.0.0 libdatadog binaries (native build, integration tests).
  • TraceExporterTests.EmitsSessionIdHeadersOnTelemetryUsingDataPipeline (new) — asserts DD-Session-ID is emitted by the libdatadog telemetry worker and DD-Root-Session-ID is omitted when root == session. Mirrors the managed-transport assertions in TelemetryTransportTests.
  • System tests validate the cross-process session inheritance (covered by the same system-tests suite as PR feat: Stable Session ID headers for telemetry #8352's managed path).

Risks / rollout

Related

libdatadog pr: DataDog/libdatadog#1822

@github-actions github-actions Bot added the area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) label Apr 22, 2026
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 22, 2026

Benchmarks

Benchmark execution time: 2026-05-12 16:25:21

Comparing candidate commit 86c6e39 in PR branch ayan.khan/data-pipeline-session-id-headers with baseline commit 2412e1f 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_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_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.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0

Found 2 performance improvements and 6 performance regressions! Performance is the same for 46 metrics, 18 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.StartRootSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.738%; +6.746%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-6439.982op/s; -5719.778op/s] or [-7.352%; -6.530%]

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

  • 🟥 throughput [-69500.088op/s; -62231.925op/s] or [-47.213%; -42.275%]
  • 🟩 execution_time [-43.643ms; -28.075ms] or [-21.658%; -13.932%]

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

  • 🟥 throughput [-39441.033op/s; -34949.552op/s] or [-19.776%; -17.524%]
  • 🟩 execution_time [-84.343ms; -80.060ms] or [-42.655%; -40.488%]

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 [-24.631ms; -0.282ms] or [-16.696%; -0.191%]
  • unstable throughput [+9911.355op/s; +35701.336op/s] or [+6.285%; +22.639%]

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

  • unstable execution_time [-65.127ms; -26.035ms] or [-41.570%; -16.618%]

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

  • unstable execution_time [-8.673ms; +16.640ms] or [-6.275%; +12.039%]
  • unstable throughput [+4222.861op/s; +27738.356op/s] or [+2.562%; +16.829%]

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

  • unstable execution_time [-37.801ms; -11.456ms] or [-33.896%; -10.273%]

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

  • unstable execution_time [+0.064ms; +39.784ms] or [+0.042%; +26.257%]
  • unstable throughput [-21630.917op/s; +10112.838op/s] or [-13.557%; +6.338%]

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

  • unstable execution_time [-17020.077µs; +17574.545µs] or [-15.035%; +15.524%]

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

  • unstable execution_time [-40.905ms; -5.872ms] or [-23.780%; -3.413%]
  • unstable throughput [+15242.374op/s; +33078.201op/s] or [+12.755%; +27.679%]

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

  • unstable execution_time [-21.766ms; +2.328ms] or [-14.770%; +1.580%]
  • unstable throughput [-476.001op/s; +25400.326op/s] or [-0.286%; +15.255%]

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

  • unstable execution_time [-18264.401µs; +17185.201µs] or [-16.348%; +15.382%]

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

  • unstable execution_time [+2.800ms; +41.933ms] or [+2.008%; +30.070%]
  • unstable throughput [-41042.565op/s; -13420.522op/s] or [-21.257%; -6.951%]

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

  • unstable execution_time [-38.600ms; -14.066ms] or [-33.876%; -12.344%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]
  • unstable execution_time [-56.651ms; -35.698ms] or [-33.481%; -21.097%]
  • unstable throughput [+34648.197op/s; +54285.827op/s] or [+24.867%; +38.961%]

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 [-6.018ms; +17.473ms] or [-4.488%; +13.029%]
  • unstable throughput [-14492.321op/s; +3618.025op/s] or [-9.898%; +2.471%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.738%; +6.746%]
  • unstable execution_time [-79.228ms; -39.263ms] or [-44.220%; -21.914%]
  • unstable throughput [+30707.679op/s; +56365.032op/s] or [+22.957%; +42.138%]

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

  • unstable execution_time [-32.933ms; -7.210ms] or [-29.979%; -6.563%]

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 [-57.789ms; -13.490ms] or [-36.267%; -8.466%]
  • unstable throughput [+7168.651op/s; +35924.233op/s] or [+7.042%; +35.290%]

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

  • unstable execution_time [-41.341ms; -13.063ms] or [-25.609%; -8.092%]
  • unstable throughput [+9375.685op/s; +23136.246op/s] or [+8.075%; +19.926%]

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

  • unstable execution_time [-30.737ms; -6.386ms] or [-27.731%; -5.761%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.377%; +6.386%]
  • unstable execution_time [-17.651ms; +0.980ms] or [-12.652%; +0.703%]
  • unstable throughput [+909.815op/s; +23563.016op/s] or [+0.578%; +14.968%]

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

  • unstable execution_time [-37.341ms; -12.568ms] or [-33.187%; -11.170%]

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

  • unstable execution_time [-59.464ms; -17.862ms] or [-30.873%; -9.274%]
  • unstable throughput [+7487.881op/s; +37353.043op/s] or [+5.225%; +26.064%]

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

  • unstable execution_time [+12.684ms; +37.880ms] or [+14.612%; +43.640%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-8071.392op/s; -7518.519op/s] or [-9.570%; -8.915%]

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

  • unstable execution_time [-75.631ms; -53.794ms] or [-37.732%; -26.838%]
  • unstable throughput [-39601.291op/s; -26931.453op/s] or [-33.286%; -22.637%]

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

  • 🟩 execution_time [-99.754ms; -96.937ms] or [-50.173%; -48.756%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+322.835ms; +337.849ms] or [+160.202%; +167.652%]
  • 🟥 throughput [-55.677op/s; -43.269op/s] or [-10.017%; -7.785%]

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

  • 🟥 execution_time [+97.700ms; +99.139ms] or [+77.189%; +78.326%]
  • 🟩 throughput [+92.339op/s; +97.687op/s] or [+12.175%; +12.880%]

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

  • 🟥 execution_time [+82.433ms; +86.494ms] or [+72.950%; +76.544%]

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.413ms; -80.997ms] or [-39.891%; -37.829%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-75.630ms; -59.252ms] or [-36.014%; -28.215%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-256928.753op/s; -249089.851op/s] or [-26.234%; -25.433%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-68.716ms; -37.118ms] or [-30.644%; -16.553%]
  • unstable throughput [-366108.043op/s; -240122.007op/s] or [-39.112%; -25.653%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-87.215ms; -82.820ms] or [-43.534%; -41.340%]
  • 🟥 throughput [-126945.823op/s; -110925.314op/s] or [-18.240%; -15.938%]

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

  • unstable execution_time [-28.839ms; -8.734ms] or [-14.551%; -4.407%]
  • 🟥 throughput [-33567.269op/s; -18138.588op/s] or [-21.358%; -11.541%]

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

  • 🟩 execution_time [-47.356ms; -28.149ms] or [-24.144%; -14.351%]
  • 🟩 throughput [+10291.439op/s; +13033.321op/s] or [+8.198%; +10.383%]

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

  • 🟩 execution_time [-58.807ms; -40.507ms] or [-29.076%; -20.028%]
  • unstable throughput [-231824.328op/s; +73764.833op/s] or [-7.730%; +2.460%]

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

  • 🟩 execution_time [-44.869ms; -24.290ms] or [-20.683%; -11.197%]
  • 🟩 throughput [+166146.325op/s; +220893.284op/s] or [+6.595%; +8.768%]

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

  • 🟥 execution_time [+301.109ms; +315.053ms] or [+150.454%; +157.421%]

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

  • 🟥 execution_time [+124.851ms; +132.253ms] or [+62.963%; +66.695%]

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

  • 🟥 execution_time [+301.829ms; +308.372ms] or [+152.038%; +155.334%]

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

  • 🟥 execution_time [+299.287ms; +312.885ms] or [+146.998%; +153.677%]

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

  • 🟥 execution_time [+281.295ms; +297.250ms] or [+137.515%; +145.315%]

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

  • 🟥 execution_time [+267.044ms; +282.137ms] or [+133.468%; +141.012%]

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

  • 🟥 execution_time [+19.888µs; +43.529µs] or [+6.349%; +13.897%]
  • 🟥 throughput [-407.905op/s; -208.952op/s] or [-12.716%; -6.514%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.681ms; +301.460ms] or [+150.071%; +150.459%]

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

  • unstable execution_time [+351.431ms; +366.009ms] or [+381.845%; +397.684%]
  • 🟥 throughput [-6927.812op/s; -6771.087op/s] or [-56.927%; -55.639%]

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

  • unstable execution_time [+252.061ms; +313.104ms] or [+191.387%; +237.737%]
  • 🟥 throughput [-1175.994op/s; -936.961op/s] or [-11.384%; -9.070%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+299.892ms; +316.146ms] or [+137.887%; +145.361%]
  • 🟥 throughput [-684.986op/s; -667.473op/s] or [-62.066%; -60.480%]

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

  • unstable execution_time [-50.653ms; +83.183ms] or [-21.586%; +35.449%]
  • 🟥 throughput [-697.357op/s; -605.827op/s] or [-46.514%; -40.409%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+336.821ms; +344.304ms] or [+201.458%; +205.934%]
  • 🟥 throughput [-728.109op/s; -694.058op/s] or [-50.697%; -48.326%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟩 execution_time [-128.073µs; -118.793µs] or [-6.445%; -5.978%]
  • 🟩 throughput [+32.065op/s; +34.663op/s] or [+6.372%; +6.888%]

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

  • 🟩 execution_time [-67.136µs; -58.371µs] or [-6.226%; -5.414%]
  • 🟩 throughput [+53.322op/s; +61.622op/s] or [+5.749%; +6.644%]

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

  • 🟩 execution_time [-186.329µs; -162.540µs] or [-9.439%; -8.234%]
  • 🟩 throughput [+45.695op/s; +53.122op/s] or [+9.021%; +10.487%]

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

  • 🟩 execution_time [-235.589µs; -222.855µs] or [-5.974%; -5.651%]
  • 🟩 throughput [+15.203op/s; +16.116op/s] or [+5.995%; +6.355%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.209ms; +318.123ms] or [+153.194%; +160.201%]

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

  • 🟥 execution_time [+233.954ms; +243.255ms] or [+117.235%; +121.896%]

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

  • 🟥 execution_time [+299.270ms; +306.169ms] or [+150.341%; +153.806%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.896ms; +314.209ms] or [+151.100%; +157.785%]

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

  • 🟥 execution_time [+186.023ms; +195.433ms] or [+91.980%; +96.633%]

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

  • 🟥 execution_time [+303.303ms; +311.149ms] or [+153.727%; +157.704%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+306.118ms; +320.520ms] or [+153.644%; +160.872%]

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

  • 🟥 execution_time [+303.611ms; +311.727ms] or [+151.322%; +155.367%]
  • 🟩 throughput [+28213.324op/s; +37179.859op/s] or [+5.602%; +7.383%]

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

  • 🟥 execution_time [+299.891ms; +306.394ms] or [+149.193%; +152.428%]

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

  • unstable execution_time [-91.843ms; -63.900ms] or [-42.707%; -29.714%]
  • unstable throughput [-99913.443op/s; -48771.050op/s] or [-27.409%; -13.379%]

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

  • unstable execution_time [-89.644ms; -66.557ms] or [-44.967%; -33.386%]

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

  • unstable execution_time [-11.036µs; +29.618µs] or [-2.726%; +7.316%]

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

  • 🟩 allocated_mem [-26.024KB; -26.002KB] or [-9.493%; -9.485%]
  • unstable execution_time [-65.430µs; -7.759µs] or [-12.932%; -1.534%]
  • unstable throughput [+51.666op/s; +259.919op/s] or [+2.578%; +12.970%]

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

  • 🟩 throughput [+104.028op/s; +257.613op/s] or [+5.943%; +14.718%]

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

  • unstable execution_time [+2.624µs; +7.447µs] or [+6.201%; +17.603%]
  • 🟥 throughput [-3363.750op/s; -1360.973op/s] or [-14.160%; -5.729%]

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

  • unstable execution_time [-14.392µs; -5.562µs] or [-22.329%; -8.629%]
  • unstable throughput [+1594.329op/s; +3511.526op/s] or [+9.782%; +21.544%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+304.657ms; +318.560ms] or [+153.991%; +161.018%]

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

  • 🟥 execution_time [+303.136ms; +308.895ms] or [+154.295%; +157.227%]

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

  • 🟥 execution_time [+300.561ms; +307.393ms] or [+150.468%; +153.888%]

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

  • unstable execution_time [-76.772ms; -48.758ms] or [-38.374%; -24.371%]
  • unstable throughput [-169769.862op/s; -99821.819op/s] or [-32.134%; -18.894%]

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

  • unstable execution_time [-31.175ms; -6.008ms] or [-15.802%; -3.046%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.878ms; +316.866ms] or [+150.957%; +157.929%]

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

  • 🟥 execution_time [+306.794ms; +313.460ms] or [+154.057%; +157.405%]

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

  • 🟥 execution_time [+304.838ms; +311.108ms] or [+154.594%; +157.774%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.782ms; +300.701ms] or [+149.533%; +149.991%]
  • 🟩 throughput [+59850525.713op/s; +60141399.629op/s] or [+43.587%; +43.799%]

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

  • unstable execution_time [+379.547ms; +395.244ms] or [+472.034%; +491.557%]
  • 🟥 throughput [-7468.775op/s; -7250.487op/s] or [-57.737%; -56.050%]

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

  • 🟥 execution_time [+302.150ms; +305.166ms] or [+150.705%; +152.210%]
  • 🟥 throughput [-30065705.458op/s; -28668885.112op/s] or [-13.317%; -12.698%]

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

  • unstable execution_time [-97.821ms; -75.827ms] or [-47.911%; -37.139%]
  • unstable throughput [-91323.832op/s; +25738.102op/s] or [-8.527%; +2.403%]

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

  • unstable execution_time [-72.987ms; -47.316ms] or [-36.932%; -23.942%]
  • 🟩 throughput [+50306.100op/s; +69973.740op/s] or [+5.823%; +8.099%]

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

  • 🟩 execution_time [-91.745ms; -87.454ms] or [-47.800%; -45.564%]
  • 🟩 throughput [+82132.870op/s; +113513.172op/s] or [+6.357%; +8.786%]

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

  • unstable execution_time [-74.718ms; -48.123ms] or [-36.710%; -23.644%]
  • 🟩 throughput [+94340.619op/s; +103339.531op/s] or [+9.370%; +10.263%]

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

  • unstable execution_time [-34.668ms; -12.235ms] or [-17.313%; -6.110%]
  • unstable throughput [-229101.296op/s; -156537.740op/s] or [-41.601%; -28.424%]

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

  • unstable execution_time [-89.107ms; -67.512ms] or [-44.771%; -33.921%]
  • 🟩 throughput [+28629.873op/s; +38368.262op/s] or [+6.408%; +8.588%]

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

  • unstable execution_time [-60.982ms; -32.479ms] or [-30.502%; -16.245%]
  • unstable throughput [-313647.621op/s; -176455.715op/s] or [-35.042%; -19.714%]

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_SetAttributes_Sampled netcoreapp3.1
  • 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 netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog 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

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8500) 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
duration72.89 ± (73.03 - 73.52) ms74.11 ± (74.14 - 74.79) ms+1.7%✅⬆️
.NET Framework 4.8 - Bailout
duration77.14 ± (76.96 - 77.38) ms78.97 ± (79.08 - 79.71) ms+2.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1084.85 ± (1081.72 - 1088.59) ms1084.32 ± (1081.95 - 1089.03) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.41 ± (22.36 - 22.46) ms22.84 ± (22.77 - 22.90) ms+1.9%✅⬆️
process.time_to_main_ms85.04 ± (84.81 - 85.27) ms87.48 ± (87.16 - 87.81) ms+2.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.27 ± (22.24 - 22.31) ms22.68 ± (22.64 - 22.72) ms+1.8%✅⬆️
process.time_to_main_ms85.51 ± (85.32 - 85.71) ms87.71 ± (87.50 - 87.92) ms+2.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.87 - 10.88) MB10.95 ± (10.95 - 10.95) MB+0.7%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms230.09 ± (229.01 - 231.17) ms231.52 ± (230.48 - 232.55) ms+0.6%✅⬆️
process.time_to_main_ms526.25 ± (524.88 - 527.61) ms535.21 ± (533.87 - 536.56) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.46 ± (48.43 - 48.49) MB48.56 ± (48.54 - 48.58) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.62 ± (21.56 - 21.68) ms21.44 ± (21.38 - 21.49) ms-0.9%
process.time_to_main_ms76.76 ± (76.47 - 77.05) ms74.24 ± (73.95 - 74.53) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.63) MB10.62 ± (10.62 - 10.62) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.24 ± (21.20 - 21.28) ms21.20 ± (21.17 - 21.24) ms-0.2%
process.time_to_main_ms75.57 ± (75.39 - 75.76) ms74.77 ± (74.58 - 74.96) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.74 ± (10.74 - 10.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms385.01 ± (383.02 - 387.00) ms384.77 ± (382.87 - 386.68) ms-0.1%
process.time_to_main_ms530.76 ± (529.48 - 532.04) ms533.96 ± (532.83 - 535.09) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.91 ± (49.88 - 49.93) MB50.13 ± (50.10 - 50.16) MB+0.5%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.66 ± (19.61 - 19.71) ms19.83 ± (19.77 - 19.88) ms+0.8%✅⬆️
process.time_to_main_ms73.44 ± (73.25 - 73.64) ms75.73 ± (75.42 - 76.05) ms+3.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.68) MB7.67 ± (7.66 - 7.68) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.98 ± (19.92 - 20.04) ms19.78 ± (19.72 - 19.83) ms-1.0%
process.time_to_main_ms77.23 ± (76.96 - 77.50) ms76.03 ± (75.79 - 76.27) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.71 - 7.72) MB7.72 ± (7.72 - 7.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms304.22 ± (301.78 - 306.66) ms305.52 ± (303.26 - 307.78) ms+0.4%✅⬆️
process.time_to_main_ms490.21 ± (489.16 - 491.27) ms492.04 ± (490.91 - 493.16) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.25 ± (37.20 - 37.30) MB37.09 ± (37.05 - 37.13) MB-0.4%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration202.68 ± (202.57 - 203.73) ms209.58 ± (209.40 - 210.85) ms+3.4%✅⬆️
.NET Framework 4.8 - Bailout
duration206.28 ± (206.19 - 207.34) ms212.95 ± (213.28 - 214.77) ms+3.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1199.33 ± (1199.33 - 1205.55) ms1240.21 ± (1241.53 - 1252.60) ms+3.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms197.93 ± (197.30 - 198.56) ms202.13 ± (201.41 - 202.85) ms+2.1%✅⬆️
process.time_to_main_ms85.71 ± (85.40 - 86.03) ms88.03 ± (87.71 - 88.35) ms+2.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.06 - 16.09) MB15.95 ± (15.94 - 15.97) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.4%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms198.09 ± (197.49 - 198.69) ms202.70 ± (201.92 - 203.47) ms+2.3%✅⬆️
process.time_to_main_ms87.22 ± (86.90 - 87.54) ms89.93 ± (89.63 - 90.23) ms+3.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.09 - 16.13) MB15.97 ± (15.95 - 15.99) MB-0.9%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+1.5%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms411.44 ± (410.00 - 412.87) ms416.64 ± (415.11 - 418.17) ms+1.3%✅⬆️
process.time_to_main_ms537.27 ± (535.81 - 538.72) ms549.89 ± (548.44 - 551.35) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.32 ± (59.28 - 59.36) MB59.34 ± (59.30 - 59.38) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms202.50 ± (202.00 - 203.01) ms208.43 ± (207.67 - 209.19) ms+2.9%✅⬆️
process.time_to_main_ms74.66 ± (74.40 - 74.92) ms77.06 ± (76.73 - 77.39) ms+3.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.25 - 16.29) MB16.21 ± (16.19 - 16.23) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 20)+1.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms201.89 ± (201.34 - 202.44) ms207.61 ± (206.91 - 208.30) ms+2.8%✅⬆️
process.time_to_main_ms75.60 ± (75.35 - 75.85) ms78.21 ± (77.95 - 78.48) ms+3.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.30 ± (16.28 - 16.32) MB16.24 ± (16.23 - 16.26) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 21)+0.8%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms601.52 ± (598.46 - 604.59) ms604.16 ± (601.49 - 606.83) ms+0.4%✅⬆️
process.time_to_main_ms537.30 ± (536.20 - 538.39) ms547.18 ± (545.64 - 548.72) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.53 ± (61.43 - 61.62) MB61.79 ± (61.70 - 61.87) MB+0.4%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 31)31 ± (31 - 31)+0.7%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms203.15 ± (202.58 - 203.71) ms204.39 ± (203.76 - 205.01) ms+0.6%✅⬆️
process.time_to_main_ms74.43 ± (74.19 - 74.67) ms75.12 ± (74.86 - 75.38) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.55 ± (11.54 - 11.57) MB11.59 ± (11.57 - 11.60) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms202.68 ± (202.05 - 203.30) ms204.05 ± (203.42 - 204.67) ms+0.7%✅⬆️
process.time_to_main_ms76.08 ± (75.81 - 76.34) ms76.56 ± (76.33 - 76.78) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.59 ± (11.58 - 11.61) MB11.66 ± (11.65 - 11.68) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.2%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms536.01 ± (528.63 - 543.40) ms543.70 ± (537.06 - 550.33) ms+1.4%✅⬆️
process.time_to_main_ms500.98 ± (499.58 - 502.38) ms502.89 ± (501.50 - 504.29) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.81 ± (50.72 - 50.90) MB50.94 ± (50.86 - 51.01) MB+0.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.1%✅⬆️
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 (8500) - mean (74ms)  : 70, 79
    master - mean (73ms)  : 70, 77

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

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (1,085ms)  : 1035, 1136
    master - mean (1,085ms)  : 1036, 1134

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 (8500) - mean (118ms)  : 111, 125
    master - mean (114ms)  : 110, 119

    section Bailout
    This PR (8500) - mean (117ms)  : 113, 122
    master - mean (115ms)  : 111, 118

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (807ms)  : 781, 833
    master - mean (794ms)  : 765, 824

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

    section Bailout
    This PR (8500) - mean (102ms)  : 99, 105
    master - mean (103ms)  : 99, 108

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (947ms)  : 911, 983
    master - mean (947ms)  : 900, 993

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

    section Bailout
    This PR (8500) - mean (104ms)  : 99, 109
    master - mean (105ms)  : 101, 110

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (830ms)  : 789, 870
    master - mean (826ms)  : 784, 869

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 (8500) - mean (210ms)  : 200, 221
    master - mean (203ms)  : 195, 212

    section Bailout
    This PR (8500) - mean (214ms)  : 203, 225
    master - mean (207ms)  : 198, 215

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (1,247ms)  : 1162, 1332
    master - mean (1,202ms)  : 1158, 1247

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 (8500) - mean (302ms)  : 282, 322
    master - mean (294ms)  : 280, 307

    section Bailout
    This PR (8500) - mean (303ms)  : 286, 321
    master - mean (295ms)  : 280, 311

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (1,003ms)  : 969, 1037
    master - mean (981ms)  : 952, 1011

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

    section Bailout
    This PR (8500) - mean (297ms)  : 279, 314
    master - mean (286ms)  : 276, 297

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (1,182ms)  : 1137, 1227
    master - mean (1,169ms)  : 1122, 1216

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8500) - mean (291ms)  : 277, 305
    master - mean (289ms)  : 276, 301

    section Bailout
    This PR (8500) - mean (292ms)  : 277, 308
    master - mean (290ms)  : 275, 306

    section CallTarget+Inlining+NGEN
    This PR (8500) - mean (1,083ms)  : 982, 1184
    master - mean (1,070ms)  : 983, 1158

Loading

khanayan123 and others added 2 commits May 12, 2026 11:06
Closes the gap between PR #8352 (managed telemetry transport) and the
libdatadog-backed telemetry transport that engages when
DD_TRACE_DATA_PIPELINE_ENABLED=true.

- Extend the P/Invoke struct TelemetryClientConfiguration with
  SessionId, RootSessionId, and ParentSessionId CharSlice fields to
  mirror the new libdd-data-pipeline-ffi TelemetryClientConfig layout
  (DataDog/libdatadog#1908).
- Populate SessionId from Tracer.RuntimeId and RootSessionId from
  RuntimeId.GetRootSessionId() in ManagedTraceExporter, matching the
  header semantics used by the managed transport in #8352.
  ParentSessionId is left unset, consistent with the managed path.

Requires a libdatadog bump that includes the new FFI fields
(DataDog/libdatadog#1908); the struct is size-sensitive so the native
library and the managed struct must move together.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
v33.0.0 is the first libdatadog release containing #1822, which adds
session_id / root_session_id / parent_session_id fields to
TelemetryClientConfig in the data-pipeline FFI. The C# layout in
TelemetryClientConfiguration depends on those fields existing.

Updates SHA256/SHA512 hashes for all platforms from the v33.0.0
release notes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@khanayan123 khanayan123 force-pushed the ayan.khan/data-pipeline-session-id-headers branch from 492fbef to b11a979 Compare May 12, 2026 15:06
khanayan123 and others added 2 commits May 12, 2026 11:15
The block comment in ManagedTraceExporter explained header semantics
that are already evident from the field names and documented in
TelemetryClientConfiguration. XML doc comments on the new struct fields
were inflated relative to the existing fields' style; collapsed each to
1-2 lines matching the surrounding convention.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds an integration test in the LibDatadog FFI test class verifying
that DD-Session-ID is emitted on telemetry HTTP requests originating
from libdatadog's telemetry worker, mirroring the assertion pattern
TelemetryTransportTests uses for the managed transport.

This is the only test that exercises the actual FFI marshaling of the
new SessionId / RootSessionId / ParentSessionId fields end-to-end.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant