Skip to content

Pmartinez/missing field exception 2 - #9156

Closed
pablomartinezbernardo wants to merge 6 commits into
masterfrom
pmartinez/missing-field-exception-2
Closed

pablomartinezbernardo wants to merge 6 commits into
masterfrom
pmartinez/missing-field-exception-2

Conversation

@pablomartinezbernardo

Copy link
Copy Markdown
Contributor

Summary of changes

Reason for change

Implementation details

Test coverage

Other details

@github-actions github-actions Bot added the area:tests unit tests, integration tests label Aug 31, 2026
@pr-commenter

pr-commenter Bot commented Sep 1, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-09-01 11:53:58

Comparing candidate commit 2c4bc1a in PR branch pmartinez/missing-field-exception-2 with baseline commit 1fc3a46 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 71 known flaky benchmarks, 55 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 [-4705.445op/s; -4476.212op/s] or [-5.372%; -5.110%]

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 [-8043.187op/s; -7366.448op/s] or [-9.537%; -8.734%]

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

  • 🟥 throughput [-8603.914op/s; -7532.561op/s] or [-8.748%; -7.659%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.563KB; +1.563KB] or [+47.483%; +47.498%]
  • 🟥 execution_time [+312.594ms; +314.520ms] or [+155.120%; +156.076%]
  • 🟥 throughput [-60.652op/s; -56.898op/s] or [-10.913%; -10.237%]

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

  • 🟥 allocated_mem [+1.013KB; +1.013KB] or [+37.563%; +37.575%]
  • 🟥 execution_time [+378.613ms; +383.904ms] or [+299.127%; +303.308%]
  • 🟩 throughput [+68.792op/s; +78.174op/s] or [+9.070%; +10.307%]

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

  • 🟥 allocated_mem [+1.090KB; +1.090KB] or [+40.417%; +40.429%]
  • 🟥 execution_time [+396.440ms; +397.661ms] or [+350.834%; +351.915%]

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

  • 🟥 allocated_mem [+4.725KB; +4.726KB] or [+99.482%; +99.497%]
  • 🟥 throughput [-60769.272op/s; -60407.864op/s] or [-47.282%; -47.000%]

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

  • 🟥 allocated_mem [+3.848KB; +3.848KB] or [+81.379%; +81.391%]
  • 🟩 execution_time [-16.489ms; -12.306ms] or [-7.701%; -5.747%]
  • 🟥 throughput [-60458.658op/s; -57695.044op/s] or [-44.131%; -42.114%]

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

  • 🟥 allocated_mem [+4.576KB; +4.576KB] or [+98.954%; +98.966%]
  • 🟥 throughput [-49321.339op/s; -47065.599op/s] or [-44.592%; -42.553%]

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

  • 🟥 allocated_mem [+1.348KB; +1.348KB] or [+109.063%; +109.078%]
  • 🟥 throughput [-305175.448op/s; -301673.216op/s] or [-31.160%; -30.802%]

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

  • 🟥 allocated_mem [+511 bytes; +512 bytes] or [+41.822%; +41.834%]
  • 🟩 execution_time [-26.612ms; -14.115ms] or [-11.868%; -6.294%]
  • 🟥 throughput [-137656.544op/s; -101583.740op/s] or [-14.706%; -10.852%]

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

  • 🟥 allocated_mem [+1.312KB; +1.312KB] or [+108.600%; +108.616%]
  • 🟥 throughput [-172731.283op/s; -156283.192op/s] or [-24.818%; -22.455%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72390.231op/s; -71630.044op/s] or [-48.718%; -48.206%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73264.463op/s; -70386.877op/s] or [-46.617%; -44.786%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-55595.843op/s; -52982.154op/s] or [-44.289%; -42.207%]

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

  • 🟩 throughput [+311965.081op/s; +336182.648op/s] or [+10.402%; +11.210%]

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

  • 🟩 execution_time [-17.887ms; -13.184ms] or [-8.245%; -6.077%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.003ms; +300.620ms] or [+149.901%; +150.210%]
  • 🟩 throughput [+1008.189op/s; +1026.058op/s] or [+11.135%; +11.333%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.262ms; +305.806ms] or [+151.423%; +154.218%]
  • 🟩 throughput [+2358.486op/s; +2610.718op/s] or [+18.039%; +19.968%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.035ms; +311.989ms] or [+151.134%; +157.156%]
  • 🟩 throughput [+1659.959op/s; +1925.181op/s] or [+16.026%; +18.587%]

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

  • 🟥 execution_time [+296.827ms; +297.876ms] or [+145.790%; +146.305%]
  • 🟩 throughput [+572.070op/s; +583.982op/s] or [+15.166%; +15.482%]

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

  • 🟥 execution_time [+296.766ms; +298.172ms] or [+145.078%; +145.765%]
  • 🟩 throughput [+2733.887op/s; +2788.599op/s] or [+39.718%; +40.513%]

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

  • 🟥 execution_time [+301.419ms; +304.054ms] or [+150.649%; +151.966%]
  • 🟩 throughput [+1359.691op/s; +1408.282op/s] or [+26.989%; +27.953%]

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

  • 🟩 execution_time [-147.836µs; -143.492µs] or [-30.353%; -29.461%]
  • 🟩 throughput [+861.753op/s; +891.857op/s] or [+41.971%; +43.437%]

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

  • 🟩 execution_time [-140.352µs; -113.675µs] or [-32.190%; -26.071%]
  • 🟩 throughput [+875.641op/s; +998.192op/s] or [+38.069%; +43.397%]

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

  • 🟩 execution_time [-144.237µs; -122.219µs] or [-30.903%; -26.186%]
  • 🟩 throughput [+790.975op/s; +874.343op/s] or [+36.513%; +40.361%]

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

  • 🟩 execution_time [-127.601µs; -123.311µs] or [-34.451%; -33.293%]
  • 🟩 throughput [+1359.336op/s; +1409.327op/s] or [+50.343%; +52.195%]

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

  • 🟩 execution_time [-102.356µs; -78.731µs] or [-32.677%; -25.135%]
  • 🟩 throughput [+1182.529op/s; +1385.666op/s] or [+36.863%; +43.195%]

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

  • 🟩 execution_time [-140.118µs; -117.746µs] or [-38.331%; -32.211%]
  • 🟩 throughput [+1372.184op/s; +1508.451op/s] or [+49.242%; +54.132%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.040ms; +299.857ms] or [+149.251%; +149.659%]

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

  • 🟥 execution_time [+415.394ms; +422.921ms] or [+451.343%; +459.521%]
  • 🟩 throughput [+836.155op/s; +1040.135op/s] or [+6.871%; +8.547%]

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

  • 🟥 execution_time [+362.179ms; +368.912ms] or [+274.999%; +280.112%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+300.293ms; +361.119ms] or [+138.072%; +166.039%]
  • 🟥 throughput [-575.075op/s; -526.986op/s] or [-52.107%; -47.750%]

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

  • unstable execution_time [+199.532ms; +332.774ms] or [+85.032%; +141.814%]
  • 🟥 throughput [-671.982op/s; -588.504op/s] or [-44.821%; -39.253%]

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

  • 🟥 execution_time [+339.904ms; +350.238ms] or [+203.302%; +209.483%]
  • 🟥 throughput [-397.877op/s; -361.784op/s] or [-27.704%; -25.191%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟥 execution_time [+272.145µs; +308.794µs] or [+13.696%; +15.540%]
  • 🟥 throughput [-67.383op/s; -60.262op/s] or [-13.390%; -11.975%]

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

  • unstable throughput [+10.899op/s; +46.033op/s] or [+3.133%; +13.232%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • 🟥 execution_time [+268.814µs; +284.531µs] or [+10.500%; +11.114%]
  • 🟥 throughput [-39.043op/s; -37.084op/s] or [-9.996%; -9.494%]

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

  • 🟩 execution_time [-184.227µs; -156.710µs] or [-9.332%; -7.938%]
  • 🟩 throughput [+44.407op/s; +52.087op/s] or [+8.766%; +10.282%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.400ms; +303.978ms] or [+152.283%; +153.078%]

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

  • 🟥 execution_time [+300.000ms; +301.435ms] or [+150.331%; +151.049%]

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

  • 🟥 execution_time [+302.711ms; +305.981ms] or [+152.069%; +153.712%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.879ms; +302.102ms] or [+151.092%; +151.706%]

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

  • 🟥 execution_time [+294.649ms; +314.656ms] or [+145.691%; +155.583%]

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

  • 🟥 execution_time [+300.220ms; +304.252ms] or [+152.165%; +154.208%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.369ms; +303.200ms] or [+151.260%; +152.179%]

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

  • unstable execution_time [+296.974ms; +318.263ms] or [+148.015%; +158.625%]
  • 🟩 throughput [+31317.694op/s; +48211.335op/s] or [+6.219%; +9.573%]

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

  • 🟥 execution_time [+299.076ms; +301.680ms] or [+148.788%; +150.083%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟥 throughput [-20097.619op/s; -19036.374op/s] or [-8.082%; -7.655%]

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

  • 🟩 execution_time [-17.209ms; -13.527ms] or [-8.002%; -6.290%]

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

  • unstable execution_time [+24.121µs; +69.873µs] or [+5.958%; +17.259%]
  • 🟥 throughput [-358.276op/s; -139.052op/s] or [-14.417%; -5.596%]

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

  • 🟩 allocated_mem [-19.607KB; -19.583KB] or [-7.152%; -7.143%]
  • unstable execution_time [-31.319µs; +27.914µs] or [-6.190%; +5.517%]
  • unstable throughput [-95.276op/s; +110.621op/s] or [-4.754%; +5.520%]

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

  • 🟩 allocated_mem [-26.149KB; -26.130KB] or [-9.533%; -9.526%]
  • unstable execution_time [-72.224µs; -7.933µs] or [-12.516%; -1.375%]
  • unstable throughput [+47.888op/s; +231.100op/s] or [+2.736%; +13.203%]

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

  • unstable execution_time [+7.044µs; +11.883µs] or [+16.649%; +28.088%]
  • 🟥 throughput [-5184.431op/s; -3257.205op/s] or [-21.825%; -13.712%]

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

  • unstable execution_time [-15.898µs; -8.656µs] or [-24.665%; -13.429%]
  • 🟩 throughput [+2262.321op/s; +3838.647op/s] or [+13.880%; +23.551%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.334ms; +303.215ms] or [+152.311%; +153.262%]

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

  • 🟥 execution_time [+303.267ms; +305.713ms] or [+154.362%; +155.607%]

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

  • 🟥 execution_time [+301.311ms; +303.624ms] or [+150.843%; +152.001%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-23078.303op/s; -20929.848op/s] or [-6.389%; -5.794%]

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

  • 🟩 throughput [+33276.141op/s; +38274.806op/s] or [+6.298%; +7.245%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.534ms; +301.568ms] or [+149.291%; +150.304%]

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

  • 🟥 execution_time [+299.683ms; +307.258ms] or [+150.486%; +154.290%]

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

  • 🟥 execution_time [+303.260ms; +305.991ms] or [+153.794%; +155.179%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.563ms; +300.249ms] or [+149.423%; +149.766%]
  • 🟩 throughput [+61080325.019op/s; +61370231.869op/s] or [+44.482%; +44.694%]

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

  • unstable execution_time [+327.560ms; +397.414ms] or [+407.380%; +494.255%]

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

  • 🟥 execution_time [+299.590ms; +300.731ms] or [+149.429%; +149.998%]

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

  • 🟩 throughput [+83225.950op/s; +91980.586op/s] or [+7.771%; +8.588%]

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

  • 🟩 throughput [+58255.583op/s; +77691.693op/s] or [+6.743%; +8.993%]

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

  • 🟩 throughput [+76088.351op/s; +83385.718op/s] or [+7.557%; +8.282%]

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

  • 🟩 throughput [+34329.434op/s; +39413.103op/s] or [+6.234%; +7.157%]

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

  • 🟩 throughput [+22955.369op/s; +32941.100op/s] or [+5.138%; +7.373%]

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

  • 🟩 throughput [+50114.512op/s; +70444.417op/s] or [+5.599%; +7.870%]

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 net6.0
  • 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 netcoreapp3.1
  • 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.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • 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 Sep 1, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected

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

tonyredondo added a commit that referenced this pull request Sep 7, 2026
## Summary of changes

- Generate DuckTyping proxy assemblies in the target assembly's load
context.
- Add compiled fixtures that model the Azure Functions load-context
topology and cover both cross-ALC field access and proxy-cache
isolation.

## Reason for change

Azure Functions can load assemblies with the same identity into the
default and a custom `AssemblyLoadContext`. DuckTyping previously
generated its proxy in the default context, so the proxy could resolve a
field dependency from the wrong context and throw
`MissingFieldException`.

## Implementation details

- For the `net6.0` tracer build, which is selected on .NET 6 and later,
enter contextual reflection for the target assembly while defining the
dynamic proxy assembly.
- For the `netstandard2.0` and `netcoreapp3.1` tracer builds, invoke
`AssemblyBuilder.DefineDynamicAssembly` from a one-shot `DynamicMethod`
associated with the target manifest module. This selects the target load
context on .NET Core 2.1 through .NET 5, where contextual reflection
cannot solve this case.
- Keep the .NET Framework path unchanged.
- Keep the existing cache key based on the exact proxy-definition and
target `Type` identities. Because `Type` identity includes its load
context, the cache already isolates types loaded into different
contexts. A new test verifies reuse within one context and separation
across contexts containing assemblies with the same identity.
- Use two lightweight `netstandard2.0` fixture projects to provide the
target and its duplicated dependency. These projects are test-only build
inputs and add no dependencies to the production `Datadog.Trace`
assembly or package.
- Regenerate the app trimming descriptor to include
`AssemblyLoadContext.ContextualReflectionScope`.

## Test coverage

- Focused cross-ALC tests passed on x64 under Rosetta for
`netcoreapp2.1`, `netcoreapp3.0`, `netcoreapp3.1`, `net5.0`, `net6.0`,
and `net10.0`.
- Full DuckTyping suites passed on x64 for `netcoreapp2.1` (10,925
passed), `netcoreapp3.1` (10,926 passed), and `net6.0` (10,926 passed).
- `Datadog.Trace` compiled successfully for `net461` with 0 warnings and
0 errors.

## Other details

Includes and extends the reproduction from #9156.
<!-- Fixes #{issue} -->


<!--  ⚠️ Note:

Where possible, please obtain 2 approvals prior to merging. Unless
CODEOWNERS specifies otherwise, for external teams it is typically best
to have one review from a team member, and one review from apm-dotnet.
Trivial changes do not require 2 reviews.

MergeQueue is NOT enabled in this repository. If you have write access
to the repo, the PR has 1-2 approvals (see above), and all of the
required checks have passed, you can use the Squash and Merge button to
merge the PR. If you don't have write access, or you need help, reach
out in the #apm-dotnet channel in Slack.
-->

---------

Co-authored-by: pablo.martinezbernardo <pablo.martinezbernardo@datadoghq.com>
@pablomartinezbernardo
pablomartinezbernardo deleted the pmartinez/missing-field-exception-2 branch September 9, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests unit tests, integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant