Skip to content

Add hostname to OTLP trace metrics resources - #9016

Draft
mabdinur wants to merge 26 commits into
masterfrom
codex/otlp-trace-metrics-hostname
Draft

Add hostname to OTLP trace metrics resources#9016
mabdinur wants to merge 26 commits into
masterfrom
codex/otlp-trace-metrics-hostname

Conversation

@mabdinur

@mabdinur mabdinur commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds consistent hostname reporting across spans, OTLP trace resources, and OTLP trace-metrics resources.

  • Treats DD_HOSTNAME as a core configuration key. A nonempty value overrides the system hostname.
  • Uses the same resolved hostname for the root span _dd.hostname, OTLP trace resource host.name, and OTLP trace-metrics resource host.name.
  • Gates all hostname emission with DD_TRACE_REPORT_HOSTNAME; child spans do not receive _dd.hostname.
  • Keeps JSON and protobuf trace-metrics output aligned.

This draft is stacked on #8992 and must merge after it.

Validation

  • Focused HostMetadata, OtlpMapper, and OtlpSpanStatsSerializer tests: 127 passed on net10.0
  • Datadog.Trace build across net461, netstandard2.0, netcoreapp3.1, and net6.0: 0 warnings, 0 errors
  • git diff --check: passed
  • Earlier fresh system-test artifact: 38 passed, 8 XPASS, 4 expected XFAIL, 2 skipped, 0 failures
  • test_fr06_10_hostname: XPASS
  • test_fr06_11_hostname_omitted: passed

mabdinur added 21 commits August 4, 2026 15:33
- status.code: fix protobuf path to emit the OTel string literal
  (STATUS_CODE_OK/STATUS_CODE_ERROR) instead of an int enum, and make
  it unconditional in both JSON and protobuf paths (was previously
  omitted on non-error data points).
- is_trace_root: emit datadog.is_trace_root next to
  datadog.span.top_level, gated behind OTel-semantics suppression like
  other datadog.-prefixed attributes.
- additional_metric_tags: emit each configured key as its own
  unprefixed data-point attribute, never gated by OTel-semantics.
- span.kind: canonicalize to the uppercase OTel Span Metrics Connector
  convention (SPAN_KIND_SERVER, etc.) via a lookup table.
- process_tags/peer_tags: leave a TODO comment; not wired into OTLP
  output this round.

Companion system-tests PR: DataDog/system-tests#7363
Previously omitted when it matched the resource-level default,
inconsistent with status.code and other data-point attributes
which are always present.
Co-authored-by: Munir Abdinur <munir.abdinur@datadoghq.com>
@mabdinur mabdinur added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Aug 7, 2026
@pr-commenter

pr-commenter Bot commented Aug 7, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-07 18:39:04

Comparing candidate commit a37e943 in PR branch codex/otlp-trace-metrics-hostname with baseline commit 7a4fb69 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 66 known flaky benchmarks, 60 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 [-24354.009op/s; -21220.956op/s] or [-6.859%; -5.977%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5557.456op/s; -5315.766op/s] or [-6.344%; -6.068%]

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 [-8017.988op/s; -7580.837op/s] or [-9.507%; -8.989%]

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

  • 🟥 throughput [-10024.079op/s; -8674.273op/s] or [-10.192%; -8.820%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+306.013ms; +314.392ms] or [+151.854%; +156.013%]
  • 🟥 throughput [-44.875op/s; -41.191op/s] or [-8.074%; -7.411%]

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

  • 🟥 execution_time [+380.107ms; +384.568ms] or [+300.308%; +303.832%]
  • 🟩 throughput [+80.642op/s; +87.819op/s] or [+10.632%; +11.579%]

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

  • 🟥 execution_time [+398.809ms; +402.455ms] or [+352.931%; +356.157%]

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

  • 🟥 allocated_mem [+4.692KB; +4.693KB] or [+98.785%; +98.801%]
  • 🟥 throughput [-60854.086op/s; -60473.884op/s] or [-47.348%; -47.052%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-15.882ms; -11.705ms] or [-7.417%; -5.466%]
  • 🟥 throughput [-59390.972op/s; -56624.108op/s] or [-43.352%; -41.332%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-48292.042op/s; -46043.126op/s] or [-43.662%; -41.628%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-269692.440op/s; -266369.775op/s] or [-27.537%; -27.198%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-26.126ms; -21.255ms] or [-11.651%; -9.479%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-164159.562op/s; -147443.516op/s] or [-23.587%; -21.185%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72715.048op/s; -71956.935op/s] or [-48.936%; -48.426%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73242.297op/s; -70362.373op/s] or [-46.603%; -44.770%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56228.609op/s; -53609.107op/s] or [-44.793%; -42.707%]

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

  • 🟩 throughput [+330113.499op/s; +352087.648op/s] or [+11.007%; +11.740%]

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

  • 🟩 execution_time [-18.845ms; -14.497ms] or [-8.687%; -6.683%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+299.246ms; +300.135ms] or [+149.523%; +149.967%]
  • 🟩 throughput [+1006.864op/s; +1026.805op/s] or [+11.121%; +11.341%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.721ms; +303.258ms] or [+151.150%; +152.934%]
  • 🟩 throughput [+2253.768op/s; +2485.647op/s] or [+17.238%; +19.011%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.737ms; +303.375ms] or [+151.488%; +152.817%]
  • 🟩 throughput [+1750.047op/s; +1877.675op/s] or [+16.896%; +18.128%]

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

  • 🟥 execution_time [+295.453ms; +296.801ms] or [+145.115%; +145.777%]
  • 🟩 throughput [+550.927op/s; +588.315op/s] or [+14.605%; +15.596%]

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

  • 🟥 execution_time [+296.710ms; +298.607ms] or [+145.050%; +145.978%]
  • 🟩 throughput [+2666.079op/s; +2708.450op/s] or [+38.733%; +39.349%]

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

  • 🟥 execution_time [+299.988ms; +300.753ms] or [+149.933%; +150.316%]
  • 🟩 throughput [+1396.905op/s; +1417.943op/s] or [+27.727%; +28.145%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • 🟩 execution_time [-143.815µs; -139.229µs] or [-29.527%; -28.586%]
  • 🟩 throughput [+825.770op/s; +857.902op/s] or [+40.219%; +41.784%]

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

  • 🟩 execution_time [-135.553µs; -108.849µs] or [-31.089%; -24.965%]
  • 🟩 throughput [+825.889op/s; +948.937op/s] or [+35.906%; +41.256%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • 🟩 execution_time [-141.245µs; -119.255µs] or [-30.262%; -25.551%]
  • 🟩 throughput [+764.662op/s; +847.343op/s] or [+35.298%; +39.115%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • 🟩 execution_time [-126.017µs; -120.807µs] or [-34.024%; -32.617%]
  • 🟩 throughput [+1319.551op/s; +1384.698op/s] or [+48.870%; +51.283%]

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

  • 🟩 execution_time [-100.719µs; -77.099µs] or [-32.154%; -24.614%]
  • 🟩 throughput [+1149.959op/s; +1352.580op/s] or [+35.848%; +42.164%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • 🟩 execution_time [-129.660µs; -102.164µs] or [-35.470%; -27.948%]
  • 🟩 throughput [+1143.105op/s; +1369.726op/s] or [+41.021%; +49.154%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.562ms; +300.336ms] or [+149.512%; +149.899%]

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

  • unstable execution_time [+334.228ms; +394.934ms] or [+363.153%; +429.112%]
  • 🟩 throughput [+695.124op/s; +928.114op/s] or [+5.712%; +7.626%]

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

  • unstable execution_time [+244.108ms; +307.436ms] or [+185.349%; +233.433%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+283.969ms; +334.476ms] or [+130.566%; +153.789%]
  • 🟥 throughput [-536.396op/s; -485.094op/s] or [-48.603%; -43.954%]

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

  • unstable execution_time [+210.673ms; +343.882ms] or [+89.780%; +146.548%]
  • 🟥 throughput [-684.795op/s; -600.859op/s] or [-45.676%; -40.077%]

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

  • 🟥 execution_time [+344.243ms; +353.624ms] or [+205.897%; +211.508%]
  • 🟥 throughput [-393.931op/s; -356.242op/s] or [-27.429%; -24.805%]

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

  • 🟩 execution_time [-171.091µs; -118.514µs] or [-8.667%; -6.003%]
  • 🟩 throughput [+34.345op/s; +48.417op/s] or [+6.780%; +9.558%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.772ms; +306.623ms] or [+153.478%; +154.410%]

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

  • 🟥 execution_time [+299.632ms; +317.528ms] or [+150.146%; +159.114%]

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

  • 🟥 execution_time [+300.592ms; +303.813ms] or [+151.005%; +152.623%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+304.911ms; +306.603ms] or [+153.116%; +153.966%]

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

  • unstable execution_time [+294.062ms; +316.176ms] or [+145.401%; +156.335%]

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

  • 🟥 execution_time [+303.857ms; +307.983ms] or [+154.008%; +156.099%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.196ms; +303.008ms] or [+151.173%; +152.083%]

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

  • 🟥 execution_time [+298.343ms; +300.452ms] or [+148.697%; +149.748%]
  • 🟩 throughput [+28834.086op/s; +35270.069op/s] or [+5.726%; +7.003%]

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

  • 🟥 execution_time [+299.668ms; +303.009ms] or [+149.082%; +150.744%]

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

  • 🟩 execution_time [-16.122ms; -12.478ms] or [-7.497%; -5.802%]
  • 🟩 throughput [+24260.598op/s; +31942.595op/s] or [+6.655%; +8.763%]

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

  • unstable execution_time [+10.473µs; +53.574µs] or [+2.587%; +13.233%]

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

  • 🟥 allocated_mem [+43.921KB; +43.944KB] or [+16.022%; +16.030%]
  • unstable execution_time [+30.853µs; +142.882µs] or [+6.098%; +28.240%]
  • unstable throughput [-334.192op/s; -54.566op/s] or [-16.676%; -2.723%]

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

  • 🟩 allocated_mem [-17.744KB; -17.725KB] or [-6.468%; -6.462%]
  • unstable execution_time [+67.472µs; +297.635µs] or [+11.692%; +51.578%]
  • unstable throughput [-334.849op/s; -28.909op/s] or [-19.130%; -1.652%]

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

  • unstable execution_time [+8.241µs; +13.386µs] or [+19.479%; +31.640%]
  • 🟥 throughput [-5661.817op/s; -3657.308op/s] or [-23.834%; -15.396%]

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

  • unstable execution_time [-12.783µs; -3.943µs] or [-19.832%; -6.118%]
  • unstable throughput [+1052.521op/s; +2934.920op/s] or [+6.458%; +18.007%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.256ms; +303.735ms] or [+152.777%; +153.525%]

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

  • 🟥 execution_time [+300.628ms; +305.220ms] or [+153.019%; +155.356%]

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

  • 🟥 execution_time [+300.013ms; +302.158ms] or [+150.194%; +151.267%]

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

  • 🟩 throughput [+36061.658op/s; +39932.075op/s] or [+6.826%; +7.558%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.584ms; +303.030ms] or [+149.814%; +151.033%]

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

  • 🟥 execution_time [+302.055ms; +305.213ms] or [+151.678%; +153.263%]

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

  • 🟥 execution_time [+303.988ms; +306.566ms] or [+154.163%; +155.471%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.670ms; +300.500ms] or [+149.477%; +149.891%]
  • 🟩 throughput [+60866281.342op/s; +61181465.314op/s] or [+44.327%; +44.556%]

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

  • 🟥 execution_time [+422.927ms; +426.333ms] or [+525.985%; +530.220%]

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

  • 🟥 execution_time [+298.777ms; +300.092ms] or [+149.023%; +149.679%]

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

  • 🟩 throughput [+95840.713op/s; +105232.748op/s] or [+8.948%; +9.825%]

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

  • 🟩 throughput [+73784.546op/s; +106132.029op/s] or [+5.711%; +8.215%]

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

  • 🟩 throughput [+66237.805op/s; +76085.011op/s] or [+6.578%; +7.556%]

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

  • 🟩 throughput [+52646.410op/s; +58254.552op/s] or [+9.560%; +10.578%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 throughput [-38385.816op/s; -34738.169op/s] or [-5.618%; -5.084%]

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

  • 🟩 throughput [+55408.256op/s; +74054.237op/s] or [+6.190%; +8.274%]

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.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 net472
  • 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 netcoreapp3.1

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (9016) and master.

⚠️ Potential regressions detected

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration191.45 ± (191.32 - 192.11) ms211.72 ± (211.69 - 212.67) ms+10.6%❌⬆️
.NET Framework 4.8 - Bailout
duration195.20 ± (195.00 - 195.38) ms215.40 ± (215.52 - 216.40) ms+10.4%❌⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1171.75 ± (1171.16 - 1176.75) ms1276.81 ± (1275.67 - 1284.23) ms+9.0%❌⬆️

📄 View the full report (charts + all metrics) →

Base automatically changed from munir/otlp-trace-metrics-fixes to master August 13, 2026 14:39
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant