Skip to content

Report OTLP export status in tracer startup log - #8936

Draft
bm1549 wants to merge 6 commits into
masterfrom
brian.marks/otlp-export-startup-log
Draft

Report OTLP export status in tracer startup log#8936
bm1549 wants to merge 6 commits into
masterfrom
brian.marks/otlp-export-startup-log

Conversation

@bm1549

@bm1549 bm1549 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Adds otlp_traces_export_enabled, otlp_metrics_export_enabled, and otlp_logs_export_enabled to the DATADOG TRACER CONFIGURATION startup log.

Reason for change

The cross-tracer startup-log schema now reports whether each signal is exported with OTLP.

Implementation details

The trace field uses ExporterSettings.IsOtlpTraceExport. Metrics use a shared, target-aware OtlpMetricsExportEnabled setting for both pipeline startup and diagnostics. Logs use the effective OpenTelemetryLogsEnabled setting and report false on unsupported target frameworks.

Test coverage

  • Added target-aware unit tests for the effective metrics and logs exporter settings.
  • Added a focused diagnostic JSON writer test with each signal independently enabled. The test does not initialize the exporters.
  • Ran the affected unit tests on .NET 10: 418 passed.

Other details

Related system-tests coverage: DataDog/system-tests#7376

@pr-commenter

pr-commenter Bot commented Jul 24, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-30 16:09:04

Comparing candidate commit dccbbd8 in PR branch brian.marks/otlp-export-startup-log with baseline commit db340bf in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 60 known flaky benchmarks, 66 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-27256.251op/s; -24547.222op/s] or [-7.677%; -6.914%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9303.223op/s; -8747.101op/s] or [-11.031%; -10.371%]

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

  • 🟥 throughput [-9391.721op/s; -8269.088op/s] or [-9.549%; -8.408%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+303.092ms; +305.253ms] or [+150.405%; +151.477%]
  • 🟥 throughput [-51.496op/s; -47.594op/s] or [-9.265%; -8.563%]

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

  • 🟥 execution_time [+383.118ms; +385.053ms] or [+302.687%; +304.215%]
  • 🟩 throughput [+85.924op/s; +89.171op/s] or [+11.329%; +11.757%]

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

  • 🟥 execution_time [+392.032ms; +394.106ms] or [+346.933%; +348.769%]

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

  • 🟥 allocated_mem [+4.693KB; +4.694KB] or [+98.806%; +98.821%]
  • 🟥 throughput [-59810.724op/s; -59435.516op/s] or [-46.536%; -46.244%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-16.260ms; -12.072ms] or [-7.594%; -5.638%]
  • 🟥 throughput [-59444.469op/s; -56675.868op/s] or [-43.391%; -41.370%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-49588.730op/s; -46587.096op/s] or [-44.834%; -42.120%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-268326.168op/s; -261461.398op/s] or [-27.397%; -26.696%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-27.110ms; -15.990ms] or [-12.090%; -7.131%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-155209.885op/s; -138981.224op/s] or [-22.301%; -19.969%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72502.215op/s; -71734.671op/s] or [-48.793%; -48.277%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-72953.062op/s; -70067.381op/s] or [-46.419%; -44.583%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56029.010op/s; -53416.430op/s] or [-44.634%; -42.553%]

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

  • 🟩 throughput [+322215.435op/s; +339855.519op/s] or [+10.744%; +11.332%]

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

  • 🟩 execution_time [-19.135ms; -14.802ms] or [-8.820%; -6.823%]

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

  • 🟥 execution_time [+300.356ms; +301.034ms] or [+150.078%; +150.416%]

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

  • 🟥 execution_time [+299.770ms; +303.155ms] or [+151.175%; +152.882%]

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

  • 🟥 execution_time [+299.372ms; +301.869ms] or [+150.800%; +152.058%]

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

  • 🟥 execution_time [+297.312ms; +298.720ms] or [+146.028%; +146.719%]

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

  • 🟥 execution_time [+291.488ms; +293.267ms] or [+142.498%; +143.367%]

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

  • 🟥 execution_time [+299.340ms; +301.425ms] or [+149.610%; +150.652%]

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

  • 🟥 execution_time [+24.341µs; +48.024µs] or [+7.771%; +15.332%]
  • 🟥 throughput [-445.030op/s; -245.807op/s] or [-13.873%; -7.663%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.134ms; +299.911ms] or [+149.299%; +149.686%]

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

  • unstable execution_time [+245.671ms; +333.353ms] or [+266.932%; +362.202%]
  • 🟩 throughput [+672.647op/s; +931.287op/s] or [+5.527%; +7.653%]

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

  • unstable execution_time [+321.843ms; +357.940ms] or [+244.372%; +271.781%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+328.039ms; +375.695ms] or [+150.829%; +172.741%]
  • 🟥 throughput [-527.195op/s; -477.430op/s] or [-47.769%; -43.260%]

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

  • unstable execution_time [+206.020ms; +339.271ms] or [+87.797%; +144.583%]
  • 🟥 throughput [-670.524op/s; -587.037op/s] or [-44.724%; -39.156%]

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

  • 🟥 execution_time [+352.509ms; +368.349ms] or [+210.841%; +220.316%]
  • 🟥 throughput [-416.488op/s; -378.200op/s] or [-28.999%; -26.333%]

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

  • 🟩 execution_time [-187.721µs; -137.276µs] or [-9.509%; -6.954%]
  • 🟩 throughput [+39.997op/s; +53.219op/s] or [+7.896%; +10.506%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.507ms; +302.793ms] or [+151.833%; +152.481%]

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

  • 🟥 execution_time [+299.609ms; +302.544ms] or [+150.135%; +151.605%]

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

  • 🟥 execution_time [+301.252ms; +304.783ms] or [+151.336%; +153.110%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.289ms; +302.011ms] or [+150.795%; +151.660%]

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

  • 🟥 execution_time [+300.056ms; +301.815ms] or [+148.364%; +149.234%]

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

  • 🟥 execution_time [+303.140ms; +307.235ms] or [+153.645%; +155.720%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+299.693ms; +301.272ms] or [+150.419%; +151.211%]

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

  • 🟥 execution_time [+301.049ms; +303.841ms] or [+150.046%; +151.437%]
  • 🟩 throughput [+47924.899op/s; +53949.086op/s] or [+9.516%; +10.713%]

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

  • 🟥 execution_time [+298.262ms; +300.957ms] or [+148.383%; +149.723%]

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

  • 🟩 execution_time [-16.773ms; -13.091ms] or [-7.800%; -6.087%]
  • 🟩 throughput [+26101.792op/s; +33174.410op/s] or [+7.160%; +9.101%]

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

  • unstable execution_time [+17.461µs; +66.009µs] or [+4.313%; +16.305%]

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

  • 🟩 allocated_mem [-18.124KB; -18.101KB] or [-6.611%; -6.603%]
  • unstable execution_time [-8.779µs; +48.138µs] or [-1.735%; +9.514%]

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

  • unstable execution_time [-58.616µs; +0.971µs] or [-10.158%; +0.168%]

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

  • unstable execution_time [+9.389µs; +15.078µs] or [+22.192%; +35.639%]
  • 🟥 throughput [-6114.806op/s; -4093.566op/s] or [-25.741%; -17.233%]

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

  • unstable execution_time [-14.257µs; -6.501µs] or [-22.119%; -10.086%]
  • unstable throughput [+1630.926op/s; +3281.142op/s] or [+10.006%; +20.131%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.210ms; +304.820ms] or [+153.259%; +154.073%]

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

  • 🟥 execution_time [+302.761ms; +306.334ms] or [+154.104%; +155.923%]

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

  • 🟥 execution_time [+297.853ms; +300.174ms] or [+149.112%; +150.274%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-26405.827op/s; -24859.738op/s] or [-7.310%; -6.882%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.836ms; +301.774ms] or [+149.441%; +150.407%]

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

  • 🟥 execution_time [+301.236ms; +303.061ms] or [+151.267%; +152.183%]

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

  • 🟥 execution_time [+301.133ms; +304.479ms] or [+152.715%; +154.412%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.530ms; +301.574ms] or [+149.906%; +150.427%]
  • 🟩 throughput [+66116910.559op/s; +66498544.135op/s] or [+48.150%; +48.428%]

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

  • 🟥 execution_time [+413.655ms; +418.017ms] or [+514.453%; +519.878%]

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

  • 🟥 execution_time [+299.631ms; +300.739ms] or [+149.449%; +150.002%]
  • 🟩 throughput [+18265512.688op/s; +19257607.503op/s] or [+8.090%; +8.530%]

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

  • 🟩 throughput [+75280.227op/s; +89024.947op/s] or [+7.029%; +8.312%]

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

  • 🟩 throughput [+73046.166op/s; +104365.832op/s] or [+5.654%; +8.078%]

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

  • 🟩 throughput [+74858.821op/s; +82005.467op/s] or [+7.435%; +8.144%]

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

  • 🟩 throughput [+45868.906op/s; +51627.492op/s] or [+8.329%; +9.375%]

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

  • 🟩 throughput [+59692.780op/s; +77612.156op/s] or [+6.669%; +8.671%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.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.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8936) 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.40 ± (74.06 - 74.65) ms72.49 ± (72.52 - 73.01) ms-2.6%
.NET Framework 4.8 - Bailout
duration78.69 ± (78.25 - 78.77) ms75.01 ± (74.80 - 75.21) ms-4.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1086.73 ± (1088.67 - 1095.80) ms1084.62 ± (1085.37 - 1092.72) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.44 ± (22.39 - 22.50) ms22.18 ± (22.14 - 22.22) ms-1.2%
process.time_to_main_ms84.83 ± (84.53 - 85.12) ms82.05 ± (81.82 - 82.29) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.98 ± (10.98 - 10.99) MB11.01 ± (11.00 - 11.01) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.10 ± (22.07 - 22.13) ms22.02 ± (21.99 - 22.04) ms-0.4%
process.time_to_main_ms83.10 ± (82.92 - 83.29) ms81.61 ± (81.45 - 81.76) ms-1.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.02 ± (11.02 - 11.02) MB11.04 ± (11.03 - 11.04) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.11 ± (208.03 - 210.20) ms209.53 ± (208.70 - 210.36) ms+0.2%✅⬆️
process.time_to_main_ms536.73 ± (535.59 - 537.88) ms536.99 ± (536.00 - 537.98) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.54 ± (49.51 - 49.58) MB49.52 ± (49.49 - 49.55) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.4%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.16 ± (21.12 - 21.20) ms21.02 ± (20.98 - 21.06) ms-0.6%
process.time_to_main_ms74.81 ± (74.55 - 75.07) ms73.51 ± (73.28 - 73.75) ms-1.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.72) MB10.73 ± (10.73 - 10.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.82 ± (20.80 - 20.85) ms20.91 ± (20.88 - 20.95) ms+0.4%✅⬆️
process.time_to_main_ms72.93 ± (72.76 - 73.11) ms73.88 ± (73.64 - 74.12) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.84 ± (10.84 - 10.84) MB10.85 ± (10.85 - 10.85) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms374.64 ± (372.28 - 376.99) ms369.09 ± (366.96 - 371.21) ms-1.5%
process.time_to_main_ms545.68 ± (544.56 - 546.80) ms544.60 ± (543.51 - 545.68) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.66 ± (50.63 - 50.68) MB50.64 ± (50.62 - 50.66) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.23 ± (19.20 - 19.27) ms19.08 ± (19.05 - 19.11) ms-0.8%
process.time_to_main_ms71.87 ± (71.58 - 72.15) ms69.85 ± (69.74 - 69.95) ms-2.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.74 - 7.76) MB7.76 ± (7.76 - 7.77) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.40 ± (19.35 - 19.44) ms19.01 ± (18.98 - 19.04) ms-2.0%
process.time_to_main_ms74.44 ± (74.22 - 74.66) ms71.62 ± (71.48 - 71.76) ms-3.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.81 ± (7.81 - 7.82) MB7.82 ± (7.81 - 7.83) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms293.74 ± (291.26 - 296.23) ms295.96 ± (293.61 - 298.30) ms+0.8%✅⬆️
process.time_to_main_ms493.57 ± (492.54 - 494.61) ms495.29 ± (494.28 - 496.31) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.10 ± (38.07 - 38.12) MB37.99 ± (37.97 - 38.02) MB-0.3%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.5%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration207.64 ± (207.57 - 208.36) ms208.73 ± (208.67 - 209.64) ms+0.5%✅⬆️
.NET Framework 4.8 - Bailout
duration211.57 ± (211.35 - 212.04) ms213.71 ± (213.48 - 214.08) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1241.72 ± (1242.16 - 1247.83) ms1250.25 ± (1249.18 - 1255.17) ms+0.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms199.95 ± (199.52 - 200.38) ms201.08 ± (200.67 - 201.49) ms+0.6%✅⬆️
process.time_to_main_ms88.06 ± (87.79 - 88.32) ms88.70 ± (88.43 - 88.97) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.09) MB16.17 ± (16.15 - 16.19) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+1.5%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms198.99 ± (198.71 - 199.27) ms199.95 ± (199.64 - 200.26) ms+0.5%✅⬆️
process.time_to_main_ms89.19 ± (89.02 - 89.36) ms89.83 ± (89.65 - 90.01) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.12 - 16.18) MB16.21 ± (16.19 - 16.23) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms397.73 ± (396.51 - 398.95) ms396.85 ± (395.62 - 398.08) ms-0.2%
process.time_to_main_ms558.99 ± (557.70 - 560.27) ms557.94 ± (556.76 - 559.12) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.80 ± (59.67 - 59.93) MB59.64 ± (59.48 - 59.80) MB-0.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms205.19 ± (204.82 - 205.57) ms205.70 ± (205.31 - 206.10) ms+0.2%✅⬆️
process.time_to_main_ms77.59 ± (77.31 - 77.87) ms77.47 ± (77.27 - 77.67) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.49 ± (16.46 - 16.51) MB16.41 ± (16.38 - 16.44) MB-0.5%
runtime.dotnet.threads.count19 ± (19 - 20)20 ± (19 - 20)+0.2%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms204.62 ± (204.28 - 204.96) ms204.39 ± (204.09 - 204.69) ms-0.1%
process.time_to_main_ms78.10 ± (77.93 - 78.26) ms78.23 ± (78.08 - 78.38) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.54 ± (16.52 - 16.56) MB16.47 ± (16.44 - 16.49) MB-0.4%
runtime.dotnet.threads.count21 ± (20 - 21)20 ± (20 - 20)-0.8%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms581.95 ± (579.40 - 584.49) ms580.85 ± (578.48 - 583.23) ms-0.2%
process.time_to_main_ms571.70 ± (570.40 - 572.99) ms573.72 ± (572.26 - 575.17) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.53 ± (61.44 - 61.62) MB61.51 ± (61.44 - 61.58) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.0%
.NET 8 - Baseline
process.internal_duration_ms205.15 ± (204.79 - 205.52) ms205.90 ± (205.41 - 206.38) ms+0.4%✅⬆️
process.time_to_main_ms76.65 ± (76.44 - 76.86) ms77.61 ± (77.34 - 77.89) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.71 ± (11.69 - 11.74) MB11.77 ± (11.75 - 11.79) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms204.81 ± (204.53 - 205.10) ms204.61 ± (204.32 - 204.91) ms-0.1%
process.time_to_main_ms78.25 ± (78.07 - 78.42) ms78.35 ± (78.19 - 78.51) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.76 - 11.80) MB11.80 ± (11.77 - 11.82) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.0%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms509.24 ± (506.30 - 512.19) ms514.61 ± (510.36 - 518.87) ms+1.1%✅⬆️
process.time_to_main_ms522.68 ± (522.02 - 523.33) ms525.14 ± (524.47 - 525.81) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.38 ± (51.34 - 51.41) MB51.49 ± (51.44 - 51.54) MB+0.2%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
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 (8936) - mean (73ms)  : 69, 76
    master - mean (74ms)  : 70, 79

    section Bailout
    This PR (8936) - mean (75ms)  : 73, 77
    master - mean (79ms)  : 75, 82

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,089ms)  : 1036, 1142
    master - mean (1,092ms)  : 1040, 1145

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 (8936) - mean (111ms)  : 105, 116
    master - mean (115ms)  : 109, 121

    section Bailout
    This PR (8936) - mean (109ms)  : 107, 111
    master - mean (112ms)  : 109, 115

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (783ms)  : 760, 806
    master - mean (785ms)  : 761, 808

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

    section Bailout
    This PR (8936) - mean (101ms)  : 95, 107
    master - mean (100ms)  : 96, 105

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (940ms)  : 907, 972
    master - mean (953ms)  : 913, 993

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

    section Bailout
    This PR (8936) - mean (97ms)  : 95, 100
    master - mean (101ms)  : 96, 106

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (822ms)  : 783, 862
    master - mean (818ms)  : 781, 854

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 (8936) - mean (209ms)  : 204, 214
    master - mean (208ms)  : 204, 212

    section Bailout
    This PR (8936) - mean (214ms)  : 211, 217
    master - mean (212ms)  : 208, 215

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,252ms)  : 1210, 1295
    master - mean (1,245ms)  : 1205, 1285

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 (8936) - mean (300ms)  : 294, 306
    master - mean (298ms)  : 292, 304

    section Bailout
    This PR (8936) - mean (300ms)  : 296, 305
    master - mean (299ms)  : 294, 303

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (998ms)  : 979, 1018
    master - mean (998ms)  : 981, 1015

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8936) - mean (293ms)  : 288, 299
    master - mean (293ms)  : 287, 299

    section Bailout
    This PR (8936) - mean (292ms)  : 289, 296
    master - mean (293ms)  : 288, 297

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,192ms)  : 1158, 1225
    master - mean (1,190ms)  : 1159, 1222

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8936) - mean (294ms)  : 287, 302
    master - mean (293ms)  : 287, 299

    section Bailout
    This PR (8936) - mean (294ms)  : 290, 298
    master - mean (294ms)  : 288, 299

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,075ms)  : 1010, 1140
    master - mean (1,064ms)  : 1021, 1107

Loading

Comment thread tracer/src/Datadog.Trace/Agent/TracesEncodingExtensions.cs Outdated
bm1549 and others added 5 commits July 29, 2026 18:03
Emit otlp_traces_export_enabled, otlp_metrics_export_enabled, and
otlp_logs_export_enabled booleans in the DATADOG TRACER CONFIGURATION
startup log, aligning the .NET tracer with the shared cross-tracer
diagnostic-log schema.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bm1549
bm1549 force-pushed the brian.marks/otlp-export-startup-log branch from a50aa5f to e0e537d Compare July 29, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos 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.

2 participants