Skip to content

Report OTLP export status in tracer startup log#8936

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

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

Conversation

@bm1549

@bm1549 bm1549 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Add three boolean fields to the DATADOG TRACER CONFIGURATION startup diagnostic log written by TracerManager.WriteDiagnosticLog:

  • otlp_traces_export_enabled: true when the traces encoding is OTLP protobuf or OTLP JSON (OTEL_TRACES_EXPORTER=otlp).
  • otlp_metrics_export_enabled: true when OTLP runtime metrics export is enabled (OtlpRuntimeMetricsEnabled).
  • otlp_logs_export_enabled: true when OTel logs are enabled and the OTel logs exporter is set to otlp.

Reason for change

Part of a cross-tracer effort to report OTLP export status in the tracer startup log. The same JSON keys are added across the dd-trace-* libraries so the log gives a uniform view of OTLP traces, metrics, and logs export configuration.

Implementation details

Three properties are written next to the existing configuration fields:

  • otlp_traces_export_enabled: exporterSettings.TracesEncoding is TracesEncoding.OtlpProtobuf or TracesEncoding.OtlpJson
  • otlp_metrics_export_enabled: instanceSettings.OtlpRuntimeMetricsEnabled
  • otlp_logs_export_enabled: instanceSettings.OpenTelemetryLogsEnabled && instanceSettings.OtelLogsExporterEnabled

Test coverage

The repository has no field-level assertion for the startup diagnostic log, so this source-only change adds no test. Existing tests that parse the log assert only on individual pre-existing keys and are unaffected.

Other details

None.


Related PRs — cross-tracer OTLP startup-log effort

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>
@pr-commenter

pr-commenter Bot commented Jul 24, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-24 02:30:55

Comparing candidate commit 1e5bf35 in PR branch brian.marks/otlp-export-startup-log with baseline commit d297e39 in branch master.

📊 Benchmarking dashboard

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

Explanation

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

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

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

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

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

More details about the CI and significant changes

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

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

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

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

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

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

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-6195.578op/s; -5859.154op/s] or [-7.073%; -6.689%]

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 [-9211.775op/s; -8346.580op/s] or [-10.922%; -9.897%]

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

  • 🟥 throughput [-7252.098op/s; -6064.652op/s] or [-7.374%; -6.166%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+318.163ms; +324.156ms] or [+157.884%; +160.858%]
  • 🟥 throughput [-43.449op/s; -39.682op/s] or [-7.817%; -7.140%]

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

  • 🟥 execution_time [+380.697ms; +381.323ms] or [+300.774%; +301.269%]
  • 🟩 throughput [+92.054op/s; +93.223op/s] or [+12.137%; +12.291%]

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

  • 🟥 execution_time [+391.787ms; +396.011ms] or [+346.717%; +350.454%]

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

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

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.458ms; -12.289ms] or [-7.687%; -5.740%]
  • 🟩 throughput [+7106.315op/s; +9919.764op/s] or [+5.187%; +7.241%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-255728.409op/s; -252182.782op/s] or [-26.111%; -25.749%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.416ms; -21.540ms] or [-11.780%; -9.606%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-151782.230op/s; -135851.500op/s] or [-21.808%; -19.519%]

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

  • 🟩 throughput [+7990.305op/s; +10970.050op/s] or [+5.084%; +6.980%]

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

  • 🟩 throughput [+9395.541op/s; +12090.560op/s] or [+7.485%; +9.632%]

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

  • 🟩 throughput [+377307.501op/s; +412444.992op/s] or [+12.581%; +13.753%]

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

  • 🟩 execution_time [-19.161ms; -14.822ms] or [-8.832%; -6.833%]
  • 🟩 throughput [+168164.073op/s; +222985.457op/s] or [+6.675%; +8.851%]

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

  • 🟥 execution_time [+299.332ms; +300.096ms] or [+149.566%; +149.948%]

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

  • 🟥 execution_time [+300.569ms; +304.498ms] or [+151.578%; +153.559%]

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

  • 🟥 execution_time [+301.339ms; +304.781ms] or [+151.791%; +153.525%]

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

  • 🟥 execution_time [+298.266ms; +299.330ms] or [+146.496%; +147.019%]

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

  • 🟥 execution_time [+294.341ms; +297.156ms] or [+143.892%; +145.269%]

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

  • 🟥 execution_time [+297.580ms; +299.949ms] or [+148.730%; +149.914%]

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

  • 🟥 execution_time [+21.718µs; +48.907µs] or [+6.933%; +15.614%]
  • 🟥 throughput [-435.906op/s; -220.863op/s] or [-13.588%; -6.885%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.590ms; +300.458ms] or [+149.526%; +149.959%]

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

  • unstable execution_time [+344.509ms; +404.360ms] or [+374.324%; +439.354%]

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

  • unstable execution_time [+296.673ms; +348.627ms] or [+225.261%; +264.709%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+240.308ms; +303.222ms] or [+110.491%; +139.419%]
  • 🟥 throughput [-573.855op/s; -504.983op/s] or [-51.997%; -45.756%]

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

  • unstable execution_time [+208.126ms; +341.351ms] or [+88.694%; +145.469%]
  • 🟥 throughput [-667.805op/s; -584.341op/s] or [-44.543%; -38.976%]

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

  • 🟥 execution_time [+340.614ms; +349.641ms] or [+203.727%; +209.126%]
  • 🟥 throughput [-419.141op/s; -379.184op/s] or [-29.184%; -26.402%]

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

  • 🟩 execution_time [-178.264µs; -119.345µs] or [-9.030%; -6.046%]
  • 🟩 throughput [+35.221op/s; +50.503op/s] or [+6.953%; +9.970%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.684ms; +303.058ms] or [+151.922%; +152.614%]

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

  • 🟥 execution_time [+304.115ms; +306.139ms] or [+152.392%; +153.407%]

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

  • 🟥 execution_time [+299.925ms; +303.055ms] or [+150.670%; +152.242%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.641ms; +302.748ms] or [+151.474%; +152.030%]

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

  • 🟥 execution_time [+297.663ms; +299.556ms] or [+147.181%; +148.117%]

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

  • 🟥 execution_time [+302.922ms; +307.129ms] or [+153.534%; +155.667%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.369ms; +303.680ms] or [+151.260%; +152.420%]

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

  • 🟥 execution_time [+298.261ms; +301.884ms] or [+148.656%; +150.462%]
  • 🟩 throughput [+47078.396op/s; +54986.428op/s] or [+9.348%; +10.919%]

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

  • 🟥 execution_time [+301.552ms; +304.942ms] or [+150.019%; +151.706%]

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

  • 🟩 execution_time [-16.370ms; -12.713ms] or [-7.612%; -5.912%]
  • 🟩 throughput [+20072.380op/s; +27532.244op/s] or [+5.506%; +7.553%]

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

  • unstable execution_time [+17.082µs; +62.840µs] or [+4.219%; +15.522%]

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

  • 🟩 allocated_mem [-18.962KB; -18.939KB] or [-6.917%; -6.908%]
  • unstable execution_time [-39.745µs; +16.479µs] or [-7.855%; +3.257%]

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

  • 🟩 allocated_mem [-19.984KB; -19.965KB] or [-7.285%; -7.278%]
  • unstable execution_time [-55.628µs; +8.430µs] or [-9.640%; +1.461%]
  • unstable throughput [-8.634op/s; +175.216op/s] or [-0.493%; +10.010%]

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

  • unstable execution_time [+7.323µs; +12.167µs] or [+17.310%; +28.760%]
  • 🟥 throughput [-5290.656op/s; -3367.039op/s] or [-22.272%; -14.174%]

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

  • unstable execution_time [-14.806µs; -6.872µs] or [-22.971%; -10.661%]
  • unstable throughput [+1804.701op/s; +3543.741op/s] or [+11.072%; +21.742%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.309ms; +304.715ms] or [+153.309%; +154.020%]

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

  • 🟥 execution_time [+302.192ms; +304.448ms] or [+153.815%; +154.963%]

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

  • 🟥 execution_time [+302.413ms; +304.753ms] or [+151.395%; +152.566%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-22296.070op/s; -18373.084op/s] or [-6.172%; -5.086%]

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

  • 🟩 throughput [+29862.924op/s; +34141.790op/s] or [+5.652%; +6.462%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.614ms; +302.937ms] or [+149.829%; +150.987%]

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

  • 🟥 execution_time [+299.841ms; +301.687ms] or [+150.566%; +151.493%]

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

  • 🟥 execution_time [+303.189ms; +305.755ms] or [+153.758%; +155.059%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.504ms; +300.459ms] or [+149.394%; +149.871%]
  • 🟩 throughput [+61102264.298op/s; +61462379.642op/s] or [+44.498%; +44.761%]

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

  • 🟥 execution_time [+416.355ms; +422.083ms] or [+517.811%; +524.935%]

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

  • 🟥 execution_time [+299.594ms; +300.692ms] or [+149.431%; +149.978%]

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

  • 🟩 throughput [+82362.285op/s; +90654.332op/s] or [+7.690%; +8.464%]

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

  • 🟩 throughput [+49280.350op/s; +68711.572op/s] or [+5.704%; +7.953%]

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

  • 🟩 throughput [+76576.796op/s; +106370.705op/s] or [+5.927%; +8.233%]

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

  • 🟩 throughput [+75665.003op/s; +84824.990op/s] or [+7.515%; +8.424%]

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

  • 🟩 throughput [+40646.285op/s; +45708.674op/s] or [+7.381%; +8.300%]

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

  • 🟩 throughput [+68029.409op/s; +87474.035op/s] or [+7.601%; +9.773%]

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.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.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • 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 (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
duration72.38 ± (72.50 - 73.11) ms74.88 ± (74.40 - 75.04) ms+3.4%✅⬆️
.NET Framework 4.8 - Bailout
duration78.09 ± (78.05 - 78.57) ms78.85 ± (78.72 - 79.28) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1086.42 ± (1084.97 - 1092.43) ms1090.76 ± (1088.99 - 1095.13) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.53 ± (22.48 - 22.58) ms22.38 ± (22.32 - 22.43) ms-0.7%
process.time_to_main_ms85.32 ± (84.98 - 85.67) ms85.24 ± (84.91 - 85.56) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.99 ± (10.98 - 10.99) MB11.00 ± (10.99 - 11.00) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.16 ± (22.13 - 22.19) ms21.94 ± (21.91 - 21.98) ms-1.0%
process.time_to_main_ms83.95 ± (83.66 - 84.24) ms83.24 ± (83.06 - 83.41) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.04 ± (11.03 - 11.04) MB11.02 ± (11.02 - 11.03) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.96 ± (210.16 - 211.75) ms210.28 ± (209.40 - 211.16) ms-0.3%
process.time_to_main_ms540.12 ± (538.67 - 541.56) ms540.45 ± (539.28 - 541.62) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.50 ± (49.47 - 49.53) MB49.53 ± (49.50 - 49.56) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.89 ± (20.86 - 20.92) ms20.91 ± (20.87 - 20.94) ms+0.1%✅⬆️
process.time_to_main_ms70.85 ± (70.71 - 71.00) ms71.23 ± (71.05 - 71.41) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.71 - 10.72) MB10.72 ± (10.71 - 10.72) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.26 ± (21.21 - 21.32) ms21.05 ± (21.01 - 21.10) ms-1.0%
process.time_to_main_ms76.13 ± (75.84 - 76.43) ms75.05 ± (74.76 - 75.33) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.83 ± (10.83 - 10.84) MB10.84 ± (10.83 - 10.84) MB+0.0%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms372.50 ± (370.25 - 374.74) ms371.06 ± (368.76 - 373.37) ms-0.4%
process.time_to_main_ms545.55 ± (544.06 - 547.05) ms544.11 ± (542.83 - 545.38) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.56 ± (50.54 - 50.58) MB50.56 ± (50.54 - 50.58) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.09 ± (19.06 - 19.12) ms19.01 ± (18.98 - 19.04) ms-0.4%
process.time_to_main_ms70.55 ± (70.37 - 70.73) ms69.97 ± (69.82 - 70.12) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.75 - 7.75) MB7.78 ± (7.77 - 7.78) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.02 ± (18.99 - 19.05) ms18.91 ± (18.88 - 18.94) ms-0.6%
process.time_to_main_ms71.50 ± (71.35 - 71.65) ms70.95 ± (70.82 - 71.07) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.81 ± (7.80 - 7.81) MB7.83 ± (7.82 - 7.83) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.09 ± (294.72 - 299.45) ms298.77 ± (296.47 - 301.07) ms+0.6%✅⬆️
process.time_to_main_ms496.38 ± (495.16 - 497.60) ms496.17 ± (495.02 - 497.32) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.95 ± (37.93 - 37.98) MB37.97 ± (37.94 - 37.99) MB+0.0%✅⬆️
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
duration239.53 ± (237.73 - 241.12) ms219.83 ± (219.40 - 221.25) ms-8.2%
.NET Framework 4.8 - Bailout
duration242.42 ± (241.87 - 244.30) ms224.55 ± (223.84 - 226.37) ms-7.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1314.40 ± (1309.55 - 1318.85) ms1263.14 ± (1264.46 - 1272.26) ms-3.9%
.NET Core 3.1 - Baseline
process.internal_duration_ms214.95 ± (213.83 - 216.06) ms215.15 ± (213.94 - 216.36) ms+0.1%✅⬆️
process.time_to_main_ms91.78 ± (91.44 - 92.11) ms90.59 ± (90.19 - 91.00) ms-1.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.94 ± (15.92 - 15.95) MB16.07 ± (16.06 - 16.09) MB+0.9%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms208.93 ± (208.26 - 209.60) ms214.98 ± (214.00 - 215.96) ms+2.9%✅⬆️
process.time_to_main_ms93.17 ± (92.90 - 93.44) ms92.70 ± (92.38 - 93.02) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.01 - 16.04) MB16.08 ± (16.07 - 16.10) MB+0.3%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms420.63 ± (418.85 - 422.41) ms398.98 ± (397.74 - 400.22) ms-5.1%
process.time_to_main_ms587.10 ± (585.58 - 588.63) ms566.51 ± (565.14 - 567.87) ms-3.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.82 ± (59.77 - 59.87) MB59.75 ± (59.62 - 59.88) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.4%
.NET 6 - Baseline
process.internal_duration_ms223.66 ± (222.04 - 225.28) ms225.28 ± (223.98 - 226.59) ms+0.7%✅⬆️
process.time_to_main_ms81.34 ± (81.00 - 81.68) ms80.35 ± (79.97 - 80.74) ms-1.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+1.0%✅⬆️
runtime.dotnet.mem.committed16.31 ± (16.29 - 16.32) MB16.27 ± (16.25 - 16.28) MB-0.3%
runtime.dotnet.threads.count19 ± (19 - 20)19 ± (19 - 19)-0.4%
.NET 6 - Bailout
process.internal_duration_ms220.39 ± (219.29 - 221.49) ms227.02 ± (225.75 - 228.30) ms+3.0%✅⬆️
process.time_to_main_ms82.58 ± (82.26 - 82.89) ms81.53 ± (81.20 - 81.86) ms-1.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.35 - 16.38) MB16.32 ± (16.30 - 16.33) MB-0.3%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms633.35 ± (624.85 - 641.85) ms583.03 ± (579.75 - 586.31) ms-7.9%
process.time_to_main_ms596.32 ± (594.78 - 597.86) ms581.95 ± (580.64 - 583.26) ms-2.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.23 ± (62.14 - 62.32) MB61.59 ± (61.50 - 61.68) MB-1.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.4%
.NET 8 - Baseline
process.internal_duration_ms229.09 ± (227.19 - 230.99) ms217.01 ± (215.68 - 218.34) ms-5.3%
process.time_to_main_ms81.96 ± (81.60 - 82.32) ms78.50 ± (78.18 - 78.81) ms-4.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.48 ± (11.46 - 11.50) MB11.70 ± (11.68 - 11.72) MB+1.9%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms254.99 ± (252.78 - 257.20) ms209.83 ± (209.09 - 210.56) ms-17.7%
process.time_to_main_ms85.76 ± (85.34 - 86.18) ms78.44 ± (78.23 - 78.65) ms-8.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.39 ± (11.37 - 11.41) MB11.76 ± (11.75 - 11.78) MB+3.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms616.20 ± (612.56 - 619.84) ms583.40 ± (575.49 - 591.31) ms-5.3%
process.time_to_main_ms552.82 ± (551.26 - 554.38) ms524.55 ± (523.44 - 525.66) ms-5.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed52.34 ± (52.30 - 52.39) MB52.08 ± (51.99 - 52.17) MB-0.5%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 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 (8936) - mean (75ms)  : 70, 79
    master - mean (73ms)  : 68, 77

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

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,092ms)  : 1046, 1138
    master - mean (1,089ms)  : 1033, 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 (115ms)  : 109, 121
    master - mean (115ms)  : 107, 122

    section Bailout
    This PR (8936) - mean (112ms)  : 109, 115
    master - mean (113ms)  : 106, 120

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (789ms)  : 759, 818
    master - mean (786ms)  : 757, 815

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

    section Bailout
    This PR (8936) - mean (103ms)  : 97, 109
    master - mean (104ms)  : 97, 111

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (946ms)  : 895, 997
    master - mean (948ms)  : 902, 994

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)  : 92, 99
    master - mean (96ms)  : 93, 100

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

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (824ms)  : 783, 866
    master - mean (826ms)  : 789, 863

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 (220ms)  : 207, 234
    master - mean (239ms)  : 214, 265

    section Bailout
    This PR (8936) - mean (225ms)  : 206, 245
    master - mean (243ms)  : 224, 262

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,268ms)  : 1213, 1324
    master - mean (1,314ms)  : 1244, 1384

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 (316ms)  : 292, 340
    master - mean (318ms)  : 295, 341

    section Bailout
    This PR (8936) - mean (319ms)  : 298, 340
    master - mean (311ms)  : 298, 325

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,010ms)  : 977, 1043
    master - mean (1,050ms)  : 1003, 1097

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8936) - mean (315ms)  : 294, 336
    master - mean (316ms)  : 285, 347

    section Bailout
    This PR (8936) - mean (319ms)  : 298, 339
    master - mean (312ms)  : 292, 332

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,201ms)  : 1149, 1253
    master - mean (1,272ms)  : 1141, 1404

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8936) - mean (308ms)  : 282, 334
    master - mean (323ms)  : 289, 358

    section Bailout
    This PR (8936) - mean (300ms)  : 285, 315
    master - mean (353ms)  : 320, 386

    section CallTarget+Inlining+NGEN
    This PR (8936) - mean (1,147ms)  : 1032, 1262
    master - mean (1,207ms)  : 1142, 1272

Loading

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.

1 participant