Skip to content

[Azure Functions] Fix span parenting in ASP.NET Core integration#7628

Merged
lucaspimentel merged 42 commits into
masterfrom
lpimentel/APMSVLS-58-azfunc-host-parenting
Apr 23, 2026
Merged

[Azure Functions] Fix span parenting in ASP.NET Core integration#7628
lucaspimentel merged 42 commits into
masterfrom
lpimentel/APMSVLS-58-azfunc-host-parenting

Conversation

@lucaspimentel

@lucaspimentel lucaspimentel commented Oct 6, 2025

Copy link
Copy Markdown
Member

Summary of changes

Fixes incorrect span parenting in isolated Azure Functions when using ASP.NET Core integration for HTTP triggers. Worker process spans are now correctly parented to the ASP.NET Core request span, instead of being incorrectly parented to the root host span.

Reason for change

When using isolated Azure Functions with ASP.NET Core integration and HTTP proxying enabled, spans created in the worker process were being parented to the wrong span, causing disconnected or incorrectly structured traces. This made it difficult to understand the complete request flow and latency attribution.

Current (incorrect) behavior:

ROOT: azure_functions.invoke: GET /api/httptest [HOST]
  ├─ http.request: GET localhost:40521/api/HttpTest [HOST → WORKER]
  └─ azure_functions.invoke: Http HttpTest [WORKER] ❌ wrong parent
      └─ (worker child spans)

Fixed (correct) behavior:

ROOT: azure_functions.invoke: GET /api/httptest [HOST]
  └─ http.request: GET localhost:40521/api/HttpTest [HOST → WORKER]
      └─ aspnet_core.request [WORKER]
          └─ azure_functions.invoke: Http HttpTest [WORKER] ✅ correct parent
              └─ (worker child spans)

Implementation details

The root cause was that AsyncLocal context doesn't flow correctly through Azure Functions middleware, causing the worker's azure_functions.invoke span to have no local parent. The instrumentation would then fall back to extracting trace context from gRPC message headers, which contained stale context (the host's root span context), resulting in incorrect parenting.

The Fix: Use HttpContext.Items as an explicit bridge to pass scope between ASP.NET Core and Azure Functions middleware layers:

  1. Store scope in HttpContext.Items (AspNetCoreHttpRequestHandler.cs:159-171)

    • After creating the aspnet_core.request scope, store it in HttpContext.Items[HttpContextActiveScopeKey]
    • Only done when running in Azure Functions isolated worker
  2. Skip stale gRPC header extraction (AzureFunctionsCommon.cs:243-259)

    • Detect ASP.NET Core integration by checking for "HttpRequestContext" key in FunctionContext.Items
    • Skip extracting trace context from gRPC message headers (which contain stale host root span context)
    • Only extract headers in non-ASP.NET Core mode (timer triggers, non-proxying HTTP triggers)
  3. Retrieve scope from HttpContext.Items (AzureFunctionsCommon.cs:287-367)

    • When tracer.InternalActiveScope is null (AsyncLocal didn't flow), call GetAspNetCoreScope()
    • Get HttpContext from FunctionContext.Items["HttpRequestContext"] (set by FunctionsHttpProxyingMiddleware)
    • Get scope from HttpContext.Items[HttpContextActiveScopeKey]
    • Use retrieved scope as parent if found, otherwise fall back to extracted context or create root
  4. Added Items property to IFunctionContext (IFunctionContext.cs:21)

    • Added IDictionary<object, object>? Items { get; } for duck-typed access to FunctionContext.Items

This preserves existing behavior for non-proxying scenarios (timer triggers, non-ASP.NET Core HTTP triggers) while fixing the proxying case.

Test coverage

Covered by existing tests in AzureFunctionsTests.cs.

Fixed test snapshots to reflect correct span counts and hierarchy.

Screenshots

Before

image

https://dd-dotnet.datadoghq.com/apm/trace/69129102000000009bd07f7872769a84

After

image

https://dd-dotnet.datadoghq.com/apm/trace/69150c5500000000cb655a7e34732dd6

More recent examples with these changes:

Other details

Fixes APMSVLS-58

@lucaspimentel lucaspimentel changed the title Fix span parenting for isolated Azure Functions with ASP.NET Core integration [Azure Functions] Fix span parenting for isolated functions with ASP.NET Core integration Oct 6, 2025
@datadog-datadog-prod-us1

This comment has been minimized.

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Oct 6, 2025

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7628) 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.91 ± (72.95 - 73.44) ms72.22 ± (72.27 - 72.60) ms-0.9%
.NET Framework 4.8 - Bailout
duration79.92 ± (79.57 - 80.11) ms77.72 ± (77.55 - 77.94) ms-2.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.20 ± (1077.76 - 1083.78) ms1078.74 ± (1078.00 - 1085.62) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.78 ± (22.71 - 22.84) ms22.54 ± (22.50 - 22.58) ms-1.0%
process.time_to_main_ms86.79 ± (86.45 - 87.13) ms84.48 ± (84.28 - 84.69) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.79 ± (22.73 - 22.84) ms22.94 ± (22.88 - 23.00) ms+0.7%✅⬆️
process.time_to_main_ms88.16 ± (87.87 - 88.45) ms88.80 ± (88.49 - 89.10) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.94) MB10.94 ± (10.94 - 10.94) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.46 ± (209.53 - 211.38) ms209.47 ± (208.61 - 210.33) ms-0.5%
process.time_to_main_ms531.64 ± (530.14 - 533.14) ms528.79 ± (527.44 - 530.14) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.05 ± (48.03 - 48.08) MB47.99 ± (47.96 - 48.02) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 6 - Baseline
process.internal_duration_ms21.33 ± (21.29 - 21.37) ms21.28 ± (21.24 - 21.32) ms-0.3%
process.time_to_main_ms74.06 ± (73.88 - 74.23) ms73.44 ± (73.21 - 73.67) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.63) MB10.62 ± (10.62 - 10.62) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.64 ± (21.58 - 21.69) ms21.18 ± (21.14 - 21.21) ms-2.1%
process.time_to_main_ms77.40 ± (77.10 - 77.70) ms74.19 ± (73.99 - 74.38) ms-4.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.73 - 10.74) MB10.73 ± (10.73 - 10.74) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.27 ± (382.20 - 386.34) ms381.42 ± (379.65 - 383.20) ms-0.7%
process.time_to_main_ms529.74 ± (528.24 - 531.24) ms528.40 ± (527.17 - 529.63) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.34 ± (49.31 - 49.37) MB49.39 ± (49.37 - 49.42) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.56 ± (19.52 - 19.60) ms19.79 ± (19.73 - 19.85) ms+1.2%✅⬆️
process.time_to_main_ms73.25 ± (73.06 - 73.44) ms75.42 ± (75.13 - 75.72) ms+3.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.64 - 7.65) MB7.65 ± (7.65 - 7.66) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.53 ± (19.49 - 19.57) ms19.52 ± (19.48 - 19.56) ms-0.0%
process.time_to_main_ms74.20 ± (74.03 - 74.36) ms74.62 ± (74.44 - 74.80) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.69 - 7.71) MB7.72 ± (7.71 - 7.72) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.92 ± (295.97 - 299.87) ms298.57 ± (296.48 - 300.67) ms+0.2%✅⬆️
process.time_to_main_ms495.51 ± (494.33 - 496.68) ms492.35 ± (491.20 - 493.50) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.46 ± (36.43 - 36.48) MB36.48 ± (36.45 - 36.51) MB+0.1%✅⬆️
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
duration205.17 ± (205.28 - 206.69) ms205.96 ± (206.52 - 208.24) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration209.31 ± (209.10 - 210.27) ms209.22 ± (210.03 - 211.52) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1204.51 ± (1206.24 - 1215.15) ms1214.93 ± (1215.55 - 1223.89) ms+0.9%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms198.65 ± (198.02 - 199.29) ms199.97 ± (199.19 - 200.75) ms+0.7%✅⬆️
process.time_to_main_ms85.85 ± (85.57 - 86.13) ms86.97 ± (86.60 - 87.34) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.99 ± (15.97 - 16.00) MB16.04 ± (16.03 - 16.06) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.9%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms197.71 ± (197.15 - 198.27) ms199.49 ± (198.74 - 200.25) ms+0.9%✅⬆️
process.time_to_main_ms87.34 ± (87.09 - 87.60) ms88.28 ± (87.91 - 88.64) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.01 - 16.05) MB16.01 ± (16.00 - 16.03) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+1.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms389.54 ± (388.25 - 390.83) ms394.06 ± (392.78 - 395.35) ms+1.2%✅⬆️
process.time_to_main_ms537.25 ± (535.90 - 538.61) ms544.07 ± (542.58 - 545.56) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.51 ± (57.33 - 57.70) MB58.29 ± (58.15 - 58.43) MB+1.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.7%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms201.06 ± (200.58 - 201.53) ms204.63 ± (203.83 - 205.44) ms+1.8%✅⬆️
process.time_to_main_ms74.25 ± (73.97 - 74.52) ms75.67 ± (75.35 - 75.99) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.22 - 16.26) MB16.25 ± (16.23 - 16.26) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms202.03 ± (201.52 - 202.53) ms204.80 ± (204.01 - 205.59) ms+1.4%✅⬆️
process.time_to_main_ms75.66 ± (75.42 - 75.89) ms76.81 ± (76.48 - 77.15) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.28 ± (16.26 - 16.30) MB16.26 ± (16.24 - 16.28) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.5%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms593.51 ± (591.03 - 596.00) ms596.36 ± (593.56 - 599.16) ms+0.5%✅⬆️
process.time_to_main_ms529.75 ± (528.69 - 530.81) ms538.80 ± (537.51 - 540.09) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.00 ± (60.90 - 61.10) MB61.15 ± (61.06 - 61.24) MB+0.2%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms200.29 ± (199.82 - 200.76) ms201.78 ± (201.06 - 202.50) ms+0.7%✅⬆️
process.time_to_main_ms73.42 ± (73.21 - 73.63) ms74.46 ± (74.15 - 74.78) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.62 ± (11.61 - 11.64) MB11.59 ± (11.58 - 11.61) MB-0.3%
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms199.87 ± (199.37 - 200.36) ms200.92 ± (200.21 - 201.63) ms+0.5%✅⬆️
process.time_to_main_ms74.80 ± (74.59 - 75.02) ms75.49 ± (75.18 - 75.80) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.67 ± (11.66 - 11.69) MB11.64 ± (11.63 - 11.66) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+1.6%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms521.68 ± (517.17 - 526.19) ms521.59 ± (516.80 - 526.37) ms-0.0%
process.time_to_main_ms491.21 ± (490.27 - 492.15) ms499.15 ± (497.95 - 500.36) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.25 ± (50.20 - 50.30) MB50.20 ± (50.14 - 50.26) MB-0.1%
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 (7628) - mean (72ms)  : 70, 75
    master - mean (73ms)  : 69, 77

    section Bailout
    This PR (7628) - mean (78ms)  : 75, 81
    master - mean (80ms)  : 76, 84

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (1,082ms)  : 1024, 1139
    master - mean (1,081ms)  : 1038, 1124

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 (7628) - mean (114ms)  : 110, 118
    master - mean (117ms)  : 111, 123

    section Bailout
    This PR (7628) - mean (119ms)  : 114, 124
    master - mean (118ms)  : 112, 124

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (777ms)  : 753, 801
    master - mean (779ms)  : 749, 810

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

    section Bailout
    This PR (7628) - mean (102ms)  : 98, 105
    master - mean (106ms)  : 99, 112

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (937ms)  : 904, 970
    master - mean (942ms)  : 908, 976

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7628) - mean (103ms)  : 97, 110
    master - mean (101ms)  : 97, 104

    section Bailout
    This PR (7628) - mean (102ms)  : 99, 106
    master - mean (101ms)  : 99, 104

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (822ms)  : 792, 852
    master - mean (823ms)  : 788, 858

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 (7628) - mean (207ms)  : 194, 221
    master - mean (206ms)  : 196, 216

    section Bailout
    This PR (7628) - mean (211ms)  : 199, 222
    master - mean (210ms)  : 201, 219

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (1,220ms)  : 1158, 1282
    master - mean (1,211ms)  : 1144, 1277

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 (7628) - mean (298ms)  : 280, 315
    master - mean (294ms)  : 281, 308

    section Bailout
    This PR (7628) - mean (298ms)  : 279, 317
    master - mean (296ms)  : 281, 310

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (974ms)  : 940, 1008
    master - mean (962ms)  : 927, 997

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7628) - mean (290ms)  : 274, 306
    master - mean (285ms)  : 277, 293

    section Bailout
    This PR (7628) - mean (292ms)  : 273, 311
    master - mean (287ms)  : 274, 300

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (1,166ms)  : 1124, 1207
    master - mean (1,155ms)  : 1116, 1194

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7628) - mean (287ms)  : 272, 303
    master - mean (285ms)  : 275, 294

    section Bailout
    This PR (7628) - mean (288ms)  : 270, 306
    master - mean (285ms)  : 276, 293

    section CallTarget+Inlining+NGEN
    This PR (7628) - mean (1,061ms)  : 972, 1150
    master - mean (1,048ms)  : 974, 1121

Loading

@lucaspimentel lucaspimentel force-pushed the lpimentel/APMSVLS-58-azfunc-host-parenting branch 2 times, most recently from 12a23e2 to 0c87ab6 Compare October 8, 2025 15:35
@pr-commenter

pr-commenter Bot commented Oct 8, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-23 19:06:53

Comparing candidate commit 7b4da9c in PR branch lpimentel/APMSVLS-58-azfunc-host-parenting with baseline commit 276cb7d in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 59 known flaky benchmarks, 28 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 ----------------------------------'

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 net6.0

  • 🟩 throughput [+8566.752op/s; +10858.372op/s] or [+7.201%; +9.127%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+303.485ms; +306.057ms] or [+150.600%; +151.876%]

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

  • 🟥 execution_time [+376.583ms; +378.262ms] or [+297.524%; +298.851%]

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

  • 🟥 execution_time [+396.914ms; +400.331ms] or [+351.254%; +354.278%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.185ms; -12.011ms] or [-7.559%; -5.610%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • 🟥 throughput [-254679.969op/s; -250283.206op/s] or [-26.004%; -25.555%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.851ms; -21.971ms] or [-11.974%; -9.798%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-142288.015op/s; -125956.380op/s] or [-20.444%; -18.098%]

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

  • 🟩 throughput [+6980.135op/s; +9608.238op/s] or [+5.561%; +7.654%]

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

  • 🟩 throughput [+326800.580op/s; +402836.504op/s] or [+10.897%; +13.432%]

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

  • 🟩 execution_time [-18.700ms; -14.280ms] or [-8.620%; -6.583%]
  • 🟩 throughput [+154215.515op/s; +207781.545op/s] or [+6.121%; +8.247%]

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

  • 🟥 execution_time [+299.480ms; +300.294ms] or [+149.640%; +150.047%]

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

  • 🟥 execution_time [+299.853ms; +303.037ms] or [+151.217%; +152.822%]

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

  • 🟥 execution_time [+299.677ms; +302.566ms] or [+150.954%; +152.409%]

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

  • 🟥 execution_time [+296.970ms; +298.037ms] or [+145.860%; +146.384%]

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

  • 🟥 execution_time [+296.666ms; +299.792ms] or [+145.029%; +146.557%]

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

  • 🟥 execution_time [+300.457ms; +301.422ms] or [+150.168%; +150.650%]

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

  • 🟥 execution_time [+24.392µs; +51.483µs] or [+5.594%; +11.808%]
  • 🟥 throughput [-249.288op/s; -127.617op/s] or [-10.838%; -5.548%]

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

  • 🟥 execution_time [+35.089µs; +59.980µs] or [+11.202%; +19.149%]
  • 🟥 throughput [-530.868op/s; -326.450op/s] or [-16.549%; -10.176%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.431ms; +300.087ms] or [+149.447%; +149.774%]

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

  • unstable execution_time [+337.240ms; +379.458ms] or [+366.425%; +412.296%]
  • 🟩 throughput [+1108.674op/s; +1242.223op/s] or [+9.110%; +10.208%]

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

  • unstable execution_time [+276.899ms; +320.416ms] or [+210.247%; +243.289%]
  • 🟩 throughput [+737.066op/s; +938.139op/s] or [+7.135%; +9.082%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+293.940ms; +386.640ms] or [+135.151%; +177.774%]
  • 🟥 throughput [-492.646op/s; -438.560op/s] or [-44.639%; -39.738%]

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

  • unstable execution_time [+202.604ms; +335.823ms] or [+86.341%; +143.114%]
  • 🟥 throughput [-747.112op/s; -663.562op/s] or [-49.833%; -44.260%]

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

  • 🟥 allocated_mem [+2.304KB; +2.308KB] or [+5.441%; +5.449%]
  • 🟥 execution_time [+342.122ms; +351.147ms] or [+204.629%; +210.027%]
  • 🟥 throughput [-400.645op/s; -365.670op/s] or [-27.896%; -25.461%]

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

  • 🟩 execution_time [-166.181µs; -126.180µs] or [-8.418%; -6.392%]
  • 🟩 throughput [+36.749op/s; +47.193op/s] or [+7.255%; +9.316%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.205ms; +302.042ms] or [+151.177%; +152.103%]
  • 🟩 throughput [+18203.062op/s; +19933.099op/s] or [+5.857%; +6.414%]

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

  • 🟥 execution_time [+301.013ms; +302.958ms] or [+150.838%; +151.813%]

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

  • 🟥 execution_time [+301.893ms; +305.123ms] or [+151.658%; +153.281%]
  • 🟩 throughput [+27568.846op/s; +35308.203op/s] or [+5.807%; +7.438%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+299.871ms; +301.112ms] or [+150.585%; +151.208%]

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

  • 🟥 execution_time [+298.570ms; +300.092ms] or [+147.629%; +148.382%]

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

  • 🟥 execution_time [+303.979ms; +307.561ms] or [+154.070%; +155.885%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.557ms; +302.919ms] or [+151.355%; +152.038%]

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

  • 🟥 execution_time [+300.931ms; +302.948ms] or [+149.986%; +150.992%]
  • 🟩 throughput [+45594.357op/s; +50301.582op/s] or [+9.054%; +9.988%]

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

  • 🟥 execution_time [+299.405ms; +302.195ms] or [+148.951%; +150.339%]

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

  • 🟩 execution_time [-16.091ms; -12.402ms] or [-7.483%; -5.767%]
  • 🟩 throughput [+19187.321op/s; +26599.116op/s] or [+5.264%; +7.297%]

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

  • unstable execution_time [+4.368µs; +45.869µs] or [+1.079%; +11.330%]

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

  • 🟩 allocated_mem [-23.678KB; -23.657KB] or [-8.637%; -8.629%]
  • unstable execution_time [-50.596µs; +1.575µs] or [-10.000%; +0.311%]

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

  • 🟥 execution_time [+4.984µs; +8.582µs] or [+11.781%; +20.286%]
  • 🟥 throughput [-4154.018op/s; -2457.725op/s] or [-17.487%; -10.346%]

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

  • unstable execution_time [-14.939µs; -8.041µs] or [-23.177%; -12.476%]
  • 🟩 throughput [+2056.239op/s; +3492.571op/s] or [+12.616%; +21.428%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.602ms; +303.611ms] or [+152.952%; +153.462%]

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

  • 🟥 execution_time [+303.599ms; +305.665ms] or [+154.531%; +155.583%]

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

  • 🟥 execution_time [+298.163ms; +300.345ms] or [+149.267%; +150.360%]

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

  • 🟩 throughput [+39394.520op/s; +42047.633op/s] or [+7.457%; +7.959%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.239ms; +301.779ms] or [+149.642%; +150.409%]

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

  • 🟥 execution_time [+301.763ms; +303.179ms] or [+151.531%; +152.242%]

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

  • 🟥 execution_time [+302.918ms; +305.215ms] or [+153.621%; +154.786%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.611ms; +301.371ms] or [+149.946%; +150.325%]
  • 🟩 throughput [+61145933.120op/s; +61393965.852op/s] or [+44.530%; +44.711%]

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

  • unstable execution_time [+346.322ms; +391.001ms] or [+430.713%; +486.280%]
  • 🟩 throughput [+943.482op/s; +1130.206op/s] or [+7.294%; +8.737%]

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

  • 🟥 execution_time [+299.611ms; +300.562ms] or [+149.439%; +149.913%]

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

  • 🟩 throughput [+62982.259op/s; +92545.811op/s] or [+5.880%; +8.641%]

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

  • 🟩 throughput [+51563.875op/s; +70912.086op/s] or [+5.968%; +8.208%]

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

  • 🟩 throughput [+83133.854op/s; +122399.093op/s] or [+6.435%; +9.474%]

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

  • 🟩 throughput [+92807.203op/s; +101258.219op/s] or [+9.217%; +10.057%]

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

  • 🟩 throughput [+48812.531op/s; +54770.033op/s] or [+8.863%; +9.945%]

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

  • 🟩 throughput [+27453.547op/s; +37421.403op/s] or [+6.145%; +8.376%]

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

  • 🟩 throughput [+84540.514op/s; +101490.119op/s] or [+9.445%; +11.339%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • 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.StringConcatAspectBenchmark 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.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@lucaspimentel lucaspimentel force-pushed the lpimentel/APMSVLS-58-azfunc-host-parenting branch 6 times, most recently from 9dd669c to 27ba999 Compare October 10, 2025 21:55
@lucaspimentel lucaspimentel changed the title [Azure Functions] Fix span parenting for isolated functions with ASP.NET Core integration [WIP] [Azure Functions] Fix span parenting for isolated functions with ASP.NET Core integration Oct 10, 2025
@lucaspimentel lucaspimentel force-pushed the lpimentel/APMSVLS-58-azfunc-host-parenting branch from 27ba999 to 584134a Compare October 14, 2025 20:15
@lucaspimentel lucaspimentel force-pushed the lpimentel/APMSVLS-58-azfunc-host-parenting branch 8 times, most recently from 24a8537 to aae2cfb Compare November 5, 2025 22:25
@lucaspimentel lucaspimentel force-pushed the lpimentel/APMSVLS-58-azfunc-host-parenting branch 7 times, most recently from 974a81e to 613d6bb Compare November 11, 2025 23:52
Extracted context from gRPC propagation headers must take
priority over InternalActiveScope. Enabling the
AspNetCoreDiagnosticObserver in isolated workers caused
InternalActiveScope to be a gRPC listener span with an
unrelated trace ID, breaking host-to-worker context flow.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
When ASP.NET Core integration is active, check if the retrieved scope
is already the active scope before creating a new span. If it's active,
reuse it and update the root span tags instead of creating a duplicate
azure_functions.invoke span. This prevents extra spans that break
integration tests expecting specific span counts.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
Replace direct Microsoft.AspNetCore.Http.HttpContext type reference
with IHttpContextItems duck type to avoid FileNotFoundException
in non-ASP.NET Core Azure Functions workers where the
Microsoft.AspNetCore.Http.Abstractions assembly is not available.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
When the ASP.NET Core scope is already active, we update its tags
but no longer assign it to `scope`. This prevents OnAsyncMethodEnd
from disposing a scope it doesn't own.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
An exception during duck typing / scope retrieval from
HttpContext.Items is unexpected and should be logged at Error level.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
…hrows

The worker's FunctionExecutionMiddleware catches user-function exceptions
internally, so the ASP.NET Core diagnostic observer never sees an
unhandled exception and HttpContext.Response.StatusCode stays at 200.
Propagate the exception onto the aspnet_core.request span explicitly.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
Set Error: 1, error tags, and http.status_code 500 on the
aspnet_core.request span when the isolated worker function throws.

🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect span parenting for isolated Azure Functions using ASP.NET Core integration by bridging the ASP.NET Core request scope into the Functions worker middleware pipeline, so azure_functions.invoke spans correctly parent under the ASP.NET Core request span instead of the host root span.

Changes:

  • Bridge aspnet_core.request scope via HttpContext.Items and retrieve it from FunctionContext.Items to establish correct parent/child relationships.
  • Adjust isolated HTTP trigger context extraction to avoid using stale gRPC propagation headers in ASP.NET Core proxying mode.
  • Update integration tests and snapshots to reflect the corrected span hierarchy and updated span counts.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tracer/src/Datadog.Trace/PlatformHelpers/AspNetCoreHttpRequestHandler.cs Stores the active ASP.NET Core request Scope in HttpContext.Items for Azure Functions.
tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommon.cs Retrieves ASP.NET Core scope from FunctionContext.Items and updates parenting/propagation behavior for isolated functions.
tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/Isolated/IFunctionContext.cs Adds duck-typed access to FunctionContext.Items.
tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/Isolated/IHttpContextItems.cs Adds duck type for HttpContext.Items without a hard ASP.NET Core reference.
tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/Isolated/FunctionExecutionMiddlewareInvokeIntegration.cs Propagates isolated user exceptions onto the ASP.NET Core request span.
tracer/src/Datadog.Trace/ClrProfiler/Instrumentation.cs Enables ASP.NET Core diagnostic observer for isolated worker + extension v4 (and skips in other Azure Functions scenarios).
tracer/src/Datadog.Trace/Tagging/AzureFunctionsTags.cs Refactors root-span tagging helper to work on ITags and handle AzureFunctionsTags vs generic tags.
tracer/test/Datadog.Trace.Tests/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommonTests.cs Updates mock duck type to include Items.
tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AzureFunctionsTests.cs Updates expectations/assertions for new span counts and structure in ASP.NET Core integration mode.
tracer/test/snapshots/AzureFunctionsTests.Isolated.V4.AspNetCore*.verified.txt Updates snapshots to match corrected span hierarchy and additional spans.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

lucaspimentel and others added 2 commits April 23, 2026 13:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants