Skip to content

[APMSVLS-442] Adding azure frontdoor support - #8861

Open
TophrC-dd wants to merge 16 commits into
masterfrom
TopherC-dd/Azure-frontdoor
Open

[APMSVLS-442] Adding azure frontdoor support#8861
TophrC-dd wants to merge 16 commits into
masterfrom
TopherC-dd/Azure-frontdoor

Conversation

@TophrC-dd

@TophrC-dd TophrC-dd commented Jul 1, 2026

Copy link
Copy Markdown

Summary of changes

This PR implements Azure FrontDoor. This is an upstream proxy service that Azure offers.

image

Azure Front Door
Azure Front Door is a edge computing CDN proxy that provides load balancing and regional routing to azure web apps and containers. Customers use this ensure their application has a single entry point across multiple regions.

One special case is that azure front door lacks the ability to insert timestamps in the headers. This may change in the future but due to this I modified the process to add a timespan at header detection which means that the accuracy of the timeline decreases but we still get a usable span and the proxy is represented. If this does change and the ability to insert timestamps does get implemented on Azure's side the code is thoughtful enough to not overwrite an existing timestamp header and making it less of an urgent change to remove the code I am introducing.

Reason for change

This is a proxy service from Azure. It would be great to provide observability coverage for customers to see in their traces.

Implementation details

I added Azure Front Door support to the inferred proxy span pipeline, following the same pattern already established for Azure API Management and AWS API Gateway.
The core of the work is two new classes: AzureFrontDoorExtractor and AzureFrontDoorSpanFactory. The extractor reads the standard inferred proxy headers (start time, domain, HTTP method, path, region) from the incoming request and returns an InferredProxyData struct. Unlike APIM and API Gateway, Azure Front Door does not inject a timestamp header, so if one isn't present the extractor synthesizes a start time from the current time — but if a start time header is present it will be used instead. The span factory takes that data and creates a web-type span with operation name azure.frontdoor, setting resource name, HTTP tags, region, and using the domain name as the service name.
I wired these into InferredProxySpanHelper so that when the x-dd-proxy header value is azure-fd, the coordinator is initialized with the Front Door extractor and factory and produces the inferred proxy scope.
I also updated AzureFunctionsCommon to recognize azure.frontdoor as a proxy operation name — same as it already does for azure.apim — so that Azure Functions doesn't overwrite the inferred proxy span as the root.
Finally, I added the constant AzureFrontDoorName = "azure.frontdoor" to AzureFunctionsConstants, and wrote unit tests for both the extractor and the span factory covering the happy path, missing optional headers, and invalid/missing start time.

Test coverage

AzureFrontDoorExtractorTests has 7 tests total (4 via [Theory], 3 [Fact]):

I verify that when all headers are present and valid, TryExtract returns true and correctly populates ProxyName, StartTime, HttpMethod, Path, Stage, and Region.
I verify that when only the required start time header is present (optional headers removed), extraction still succeeds and the optional fields come back null.
I cover 4 invalid start time cases (null, empty string, non-numeric, and an overflowing value) via a theory — all should return false with a default InferredProxyData.
I verify that a completely missing start time header also returns false.

AzureFrontDoorSpanFactoryTests has 1 test:

I verify that CreateSpan produces a span with the correct operation name (azure.frontdoor), resource name (GET /api/v1/users), span type (web), start time, and all expected tags (http.method, component, http.url, http.route).

Other details

@pr-commenter

pr-commenter Bot commented Jul 1, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-31 18:23:34

Comparing candidate commit 0b9cd47 in PR branch TopherC-dd/Azure-frontdoor with baseline commit 1dbaad3 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 69 known flaky benchmarks, 57 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 [-26770.624op/s; -22723.683op/s] or [-7.540%; -6.400%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5651.747op/s; -5162.761op/s] or [-6.452%; -5.894%]

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 [-8738.721op/s; -8296.248op/s] or [-10.362%; -9.837%]

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

  • 🟥 throughput [-9703.294op/s; -8061.316op/s] or [-9.866%; -8.197%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+302.437ms; +308.598ms] or [+150.080%; +153.137%]
  • 🟥 throughput [-46.649op/s; -42.593op/s] or [-8.393%; -7.663%]

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

  • 🟥 execution_time [+376.576ms; +380.855ms] or [+297.518%; +300.899%]
  • 🟩 throughput [+85.869op/s; +94.262op/s] or [+11.322%; +12.428%]

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

  • 🟥 execution_time [+391.462ms; +393.777ms] or [+346.429%; +348.477%]

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

  • 🟥 allocated_mem [+4.692KB; +4.693KB] or [+98.785%; +98.801%]
  • 🟥 throughput [-60275.201op/s; -59908.096op/s] or [-46.897%; -46.612%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-15.417ms; -11.229ms] or [-7.200%; -5.245%]
  • 🟥 throughput [-59596.286op/s; -56837.335op/s] or [-43.502%; -41.488%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-48415.780op/s; -46168.621op/s] or [-43.773%; -41.742%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-267603.805op/s; -263265.082op/s] or [-27.324%; -26.881%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-25.928ms; -20.951ms] or [-11.563%; -9.343%]
  • 🟥 throughput [-85504.864op/s; -56907.623op/s] or [-9.135%; -6.080%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-154023.238op/s; -137761.294op/s] or [-22.130%; -19.794%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72861.103op/s; -72105.640op/s] or [-49.035%; -48.526%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73400.723op/s; -70483.827op/s] or [-46.704%; -44.848%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-55606.286op/s; -52993.143op/s] or [-44.298%; -42.216%]

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

  • 🟩 throughput [+290494.552op/s; +319929.799op/s] or [+9.686%; +10.668%]

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

  • 🟩 execution_time [-19.094ms; -14.765ms] or [-8.801%; -6.806%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.205ms; +300.898ms] or [+150.002%; +150.349%]
  • 🟩 throughput [+943.886op/s; +965.620op/s] or [+10.425%; +10.665%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.199ms; +305.063ms] or [+151.391%; +153.844%]
  • 🟩 throughput [+2332.012op/s; +2570.622op/s] or [+17.836%; +19.661%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.331ms; +303.185ms] or [+151.284%; +152.721%]
  • 🟩 throughput [+1882.534op/s; +2015.836op/s] or [+18.175%; +19.462%]

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

  • 🟥 execution_time [+297.693ms; +298.561ms] or [+146.215%; +146.641%]
  • 🟩 throughput [+592.197op/s; +601.410op/s] or [+15.699%; +15.944%]

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

  • 🟥 execution_time [+298.599ms; +300.986ms] or [+145.974%; +147.141%]
  • 🟩 throughput [+2560.807op/s; +2671.289op/s] or [+37.204%; +38.809%]

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

  • 🟥 execution_time [+301.463ms; +302.873ms] or [+150.671%; +151.376%]
  • 🟩 throughput [+1408.026op/s; +1437.543op/s] or [+27.948%; +28.534%]

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

  • 🟩 execution_time [-144.991µs; -140.189µs] or [-29.769%; -28.783%]
  • 🟩 throughput [+834.099op/s; +867.794op/s] or [+40.624%; +42.265%]

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

  • 🟩 execution_time [-136.186µs; -109.581µs] or [-31.234%; -25.132%]
  • 🟩 throughput [+833.335op/s; +954.334op/s] or [+36.230%; +41.491%]

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

  • 🟩 execution_time [-142.184µs; -120.192µs] or [-30.463%; -25.751%]
  • 🟩 throughput [+772.947op/s; +855.699op/s] or [+35.681%; +39.501%]

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

  • 🟩 execution_time [-127.704µs; -122.684µs] or [-34.479%; -33.124%]
  • 🟩 throughput [+1349.183op/s; +1413.495op/s] or [+49.967%; +52.349%]

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

  • 🟩 execution_time [-99.595µs; -75.815µs] or [-31.796%; -24.204%]
  • 🟩 throughput [+1125.202op/s; +1333.496op/s] or [+35.076%; +41.569%]

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

  • 🟩 execution_time [-137.321µs; -114.927µs] or [-37.565%; -31.440%]
  • 🟩 throughput [+1322.363op/s; +1459.542op/s] or [+47.454%; +52.377%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.925ms; +300.693ms] or [+149.693%; +150.077%]

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

  • 🟥 execution_time [+420.960ms; +428.190ms] or [+457.391%; +465.246%]

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

  • unstable execution_time [+246.689ms; +310.324ms] or [+187.309%; +235.626%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+3.031KB; +3.036KB] or [+5.385%; +5.394%]
  • unstable execution_time [+326.908ms; +402.643ms] or [+150.309%; +185.131%]
  • 🟥 throughput [-607.875op/s; -557.171op/s] or [-55.079%; -50.485%]

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

  • unstable execution_time [+205.990ms; +339.247ms] or [+87.784%; +144.573%]
  • 🟥 throughput [-670.473op/s; -586.955op/s] or [-44.721%; -39.150%]

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

  • 🟥 execution_time [+335.786ms; +343.915ms] or [+200.839%; +205.701%]
  • 🟥 throughput [-387.130op/s; -351.357op/s] or [-26.955%; -24.464%]

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

  • unstable execution_time [-211.452µs; -12.610µs] or [-11.328%; -0.676%]
  • unstable throughput [+16.391op/s; +142.736op/s] or [+3.060%; +26.643%]

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

  • 🟩 execution_time [-180.494µs; -125.719µs] or [-9.143%; -6.368%]
  • 🟩 throughput [+36.909op/s; +50.952op/s] or [+7.286%; +10.058%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.605ms; +301.830ms] or [+151.379%; +151.996%]

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

  • 🟥 execution_time [+300.931ms; +304.167ms] or [+150.797%; +152.419%]

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

  • 🟥 execution_time [+301.872ms; +306.249ms] or [+151.648%; +153.847%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.831ms; +302.425ms] or [+151.067%; +151.868%]
  • 🟩 throughput [+15242.476op/s; +17063.234op/s] or [+5.106%; +5.716%]

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

  • 🟥 execution_time [+299.926ms; +302.371ms] or [+148.300%; +149.509%]

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

  • 🟥 execution_time [+302.657ms; +306.601ms] or [+153.400%; +155.399%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.903ms; +303.553ms] or [+151.026%; +152.356%]

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

  • 🟥 execution_time [+300.136ms; +314.746ms] or [+149.590%; +156.872%]
  • 🟩 throughput [+39442.846op/s; +54781.551op/s] or [+7.832%; +10.878%]

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

  • 🟥 execution_time [+301.451ms; +305.150ms] or [+149.969%; +151.810%]

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

  • 🟩 execution_time [-16.571ms; -12.893ms] or [-7.706%; -5.995%]
  • 🟩 throughput [+23923.376op/s; +31123.180op/s] or [+6.563%; +8.538%]

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

  • unstable execution_time [+10.062µs; +51.905µs] or [+2.485%; +12.821%]

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

  • 🟩 allocated_mem [-20.566KB; -20.542KB] or [-7.502%; -7.493%]
  • unstable execution_time [-52.592µs; +4.038µs] or [-10.394%; +0.798%]
  • unstable throughput [-4.438op/s; +198.798op/s] or [-0.221%; +9.920%]

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

  • unstable execution_time [-61.952µs; +0.935µs] or [-10.736%; +0.162%]
  • unstable throughput [+13.959op/s; +193.036op/s] or [+0.797%; +11.028%]

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

  • 🟥 allocated_mem [+8.190KB; +8.196KB] or [+16.663%; +16.675%]

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

  • unstable execution_time [+6.866µs; +11.852µs] or [+16.230%; +28.015%]
  • 🟥 throughput [-5139.677op/s; -3174.881op/s] or [-21.636%; -13.365%]

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

  • unstable execution_time [-12.388µs; -4.326µs] or [-19.220%; -6.711%]
  • unstable throughput [+972.695op/s; +2759.623op/s] or [+5.968%; +16.931%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.782ms; +303.089ms] or [+152.537%; +153.198%]

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

  • 🟥 execution_time [+301.534ms; +304.312ms] or [+153.480%; +154.894%]

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

  • 🟥 execution_time [+299.956ms; +303.244ms] or [+150.165%; +151.811%]

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

  • 🟩 throughput [+28284.938op/s; +31104.577op/s] or [+5.354%; +5.887%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+297.022ms; +299.970ms] or [+148.039%; +149.508%]

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

  • 🟥 execution_time [+300.534ms; +301.709ms] or [+150.914%; +151.504%]

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

  • 🟥 execution_time [+304.677ms; +307.073ms] or [+154.512%; +155.728%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.356ms; +300.429ms] or [+149.320%; +149.856%]
  • 🟩 throughput [+61076954.899op/s; +61457425.073op/s] or [+44.480%; +44.757%]

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

  • 🟥 execution_time [+420.193ms; +425.359ms] or [+522.584%; +529.009%]

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

  • 🟥 execution_time [+299.945ms; +301.133ms] or [+149.606%; +150.198%]

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

  • 🟩 throughput [+78647.435op/s; +94349.023op/s] or [+7.343%; +8.809%]

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

  • 🟩 throughput [+50194.531op/s; +70713.568op/s] or [+5.810%; +8.185%]

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

  • 🟩 throughput [+66424.160op/s; +97947.027op/s] or [+5.141%; +7.581%]

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

  • 🟩 throughput [+76727.049op/s; +84327.482op/s] or [+7.620%; +8.375%]

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

  • 🟩 throughput [+35650.798op/s; +46156.743op/s] or [+6.474%; +8.381%]

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

  • 🟩 throughput [+26778.964op/s; +36336.604op/s] or [+5.994%; +8.133%]

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

  • 🟩 throughput [+56369.472op/s; +74002.386op/s] or [+6.298%; +8.268%]

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

@dd-trace-dotnet-ci-bot

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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8861) 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
duration71.83 ± (71.79 - 72.13) ms72.84 ± (72.75 - 73.30) ms+1.4%✅⬆️
.NET Framework 4.8 - Bailout
duration80.27 ± (80.46 - 81.58) ms75.36 ± (75.23 - 75.57) ms-6.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1094.89 ± (1093.39 - 1099.55) ms1091.63 ± (1089.84 - 1096.11) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.40 ± (22.35 - 22.45) ms22.40 ± (22.31 - 22.49) ms+0.0%✅⬆️
process.time_to_main_ms84.76 ± (84.47 - 85.06) ms83.84 ± (83.34 - 84.34) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.03 ± (11.03 - 11.04) MB11.00 ± (10.99 - 11.00) MB-0.3%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.33 ± (22.29 - 22.37) ms21.97 ± (21.94 - 22.00) ms-1.6%
process.time_to_main_ms85.28 ± (85.01 - 85.56) ms82.71 ± (82.59 - 82.83) ms-3.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.06 ± (11.06 - 11.07) MB11.04 ± (11.03 - 11.04) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.28 ± (209.34 - 211.21) ms209.62 ± (208.71 - 210.53) ms-0.3%
process.time_to_main_ms538.93 ± (537.63 - 540.23) ms539.89 ± (538.65 - 541.13) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.64 ± (49.60 - 49.67) MB49.53 ± (49.50 - 49.55) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.25 ± (21.20 - 21.30) ms20.89 ± (20.86 - 20.91) ms-1.7%
process.time_to_main_ms74.78 ± (74.49 - 75.07) ms71.20 ± (71.06 - 71.35) ms-4.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.73) MB10.70 ± (10.70 - 10.70) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.82 ± (20.79 - 20.86) ms20.72 ± (20.68 - 20.75) ms-0.5%
process.time_to_main_ms72.52 ± (72.35 - 72.69) ms71.94 ± (71.78 - 72.10) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.83 ± (10.83 - 10.84) MB10.83 ± (10.83 - 10.83) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.98 ± (369.86 - 374.09) ms373.38 ± (371.51 - 375.26) ms+0.4%✅⬆️
process.time_to_main_ms546.78 ± (545.59 - 547.96) ms543.38 ± (542.18 - 544.57) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.65 ± (50.63 - 50.68) MB50.60 ± (50.58 - 50.62) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.21 ± (19.17 - 19.25) ms19.40 ± (19.35 - 19.45) ms+1.0%✅⬆️
process.time_to_main_ms71.47 ± (71.20 - 71.74) ms73.22 ± (72.95 - 73.49) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.76 - 7.76) MB7.76 ± (7.75 - 7.77) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.44 ± (19.40 - 19.49) ms19.02 ± (18.99 - 19.04) ms-2.2%
process.time_to_main_ms74.88 ± (74.62 - 75.13) ms72.00 ± (71.85 - 72.16) ms-3.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.83 ± (7.82 - 7.84) MB7.81 ± (7.80 - 7.82) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms296.66 ± (294.51 - 298.81) ms300.89 ± (298.52 - 303.27) ms+1.4%✅⬆️
process.time_to_main_ms492.46 ± (491.49 - 493.44) ms490.25 ± (489.18 - 491.33) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.07 ± (38.04 - 38.10) MB38.07 ± (38.04 - 38.10) MB-0.0%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.2%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration210.98 ± (210.61 - 211.56) ms214.20 ± (214.08 - 214.99) ms+1.5%✅⬆️
.NET Framework 4.8 - Bailout
duration214.99 ± (214.44 - 215.34) ms217.58 ± (217.08 - 217.96) ms+1.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1265.27 ± (1264.17 - 1271.43) ms1275.02 ± (1273.82 - 1280.41) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms203.57 ± (203.12 - 204.02) ms202.82 ± (202.37 - 203.28) ms-0.4%
process.time_to_main_ms89.89 ± (89.58 - 90.20) ms89.71 ± (89.40 - 90.01) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.09) MB16.14 ± (16.12 - 16.15) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.5%
.NET Core 3.1 - Bailout
process.internal_duration_ms202.98 ± (202.52 - 203.44) ms203.80 ± (203.30 - 204.30) ms+0.4%✅⬆️
process.time_to_main_ms91.51 ± (91.27 - 91.76) ms91.90 ± (91.62 - 92.17) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.08 ± (16.06 - 16.09) MB16.18 ± (16.16 - 16.19) MB+0.6%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.5%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms401.33 ± (399.93 - 402.73) ms401.22 ± (399.75 - 402.68) ms-0.0%
process.time_to_main_ms566.20 ± (565.03 - 567.37) ms567.31 ± (566.06 - 568.55) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.80 ± (59.70 - 59.91) MB59.80 ± (59.72 - 59.88) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.0%
.NET 6 - Baseline
process.internal_duration_ms208.47 ± (208.06 - 208.87) ms209.93 ± (209.40 - 210.46) ms+0.7%✅⬆️
process.time_to_main_ms78.92 ± (78.61 - 79.23) ms79.48 ± (79.20 - 79.77) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.46 ± (16.44 - 16.48) MB16.35 ± (16.33 - 16.38) MB-0.6%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.2%
.NET 6 - Bailout
process.internal_duration_ms207.40 ± (206.88 - 207.93) ms207.30 ± (206.91 - 207.70) ms-0.0%
process.time_to_main_ms79.58 ± (79.36 - 79.80) ms79.27 ± (79.04 - 79.50) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.48 ± (16.46 - 16.50) MB16.45 ± (16.42 - 16.48) MB-0.2%
runtime.dotnet.threads.count21 ± (20 - 21)20 ± (20 - 21)-0.4%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms579.91 ± (577.66 - 582.17) ms581.39 ± (579.08 - 583.70) ms+0.3%✅⬆️
process.time_to_main_ms579.70 ± (578.49 - 580.91) ms582.56 ± (581.35 - 583.77) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.61 ± (61.53 - 61.69) MB61.61 ± (61.53 - 61.68) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.0%
.NET 8 - Baseline
process.internal_duration_ms209.30 ± (208.84 - 209.75) ms207.59 ± (207.07 - 208.11) ms-0.8%
process.time_to_main_ms78.75 ± (78.48 - 79.01) ms78.07 ± (77.78 - 78.37) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.76 - 11.80) MB11.82 ± (11.80 - 11.85) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-1.4%
.NET 8 - Bailout
process.internal_duration_ms209.21 ± (208.71 - 209.70) ms208.74 ± (208.31 - 209.17) ms-0.2%
process.time_to_main_ms80.08 ± (79.86 - 80.29) ms80.04 ± (79.73 - 80.35) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.83 ± (11.81 - 11.85) MB11.86 ± (11.84 - 11.89) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.32 ± (511.82 - 522.81) ms528.07 ± (521.26 - 534.87) ms+2.1%✅⬆️
process.time_to_main_ms531.98 ± (531.07 - 532.89) ms537.79 ± (536.82 - 538.75) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.36 ± (51.31 - 51.41) MB51.57 ± (51.49 - 51.64) MB+0.4%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
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 (8861) - mean (73ms)  : 69, 77
    master - mean (72ms)  : 69, 75

    section Bailout
    This PR (8861) - mean (75ms)  : 74, 77
    master - mean (81ms)  : 73, 89

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (1,093ms)  : 1048, 1138
    master - mean (1,096ms)  : 1052, 1141

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 (8861) - mean (113ms)  : 101, 126
    master - mean (115ms)  : 108, 121

    section Bailout
    This PR (8861) - mean (111ms)  : 109, 113
    master - mean (115ms)  : 108, 122

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (787ms)  : 761, 814
    master - mean (785ms)  : 763, 807

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

    section Bailout
    This PR (8861) - mean (98ms)  : 95, 101
    master - mean (99ms)  : 96, 103

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (951ms)  : 915, 987
    master - mean (950ms)  : 901, 999

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8861) - mean (100ms)  : 95, 106
    master - mean (98ms)  : 92, 105

    section Bailout
    This PR (8861) - mean (98ms)  : 95, 101
    master - mean (102ms)  : 96, 108

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (821ms)  : 784, 858
    master - mean (822ms)  : 782, 862

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 (8861) - mean (215ms)  : 209, 220
    master - mean (211ms)  : 205, 217

    section Bailout
    This PR (8861) - mean (218ms)  : 213, 222
    master - mean (215ms)  : 211, 219

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (1,277ms)  : 1230, 1324
    master - mean (1,268ms)  : 1214, 1321

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 (8861) - mean (303ms)  : 295, 311
    master - mean (303ms)  : 294, 312

    section Bailout
    This PR (8861) - mean (306ms)  : 299, 313
    master - mean (305ms)  : 295, 315

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (1,009ms)  : 986, 1033
    master - mean (1,009ms)  : 984, 1035

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8861) - mean (299ms)  : 290, 309
    master - mean (298ms)  : 291, 305

    section Bailout
    This PR (8861) - mean (296ms)  : 290, 301
    master - mean (297ms)  : 291, 303

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (1,204ms)  : 1164, 1244
    master - mean (1,200ms)  : 1160, 1239

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8861) - mean (297ms)  : 290, 304
    master - mean (300ms)  : 294, 306

    section Bailout
    This PR (8861) - mean (300ms)  : 293, 307
    master - mean (301ms)  : 293, 308

    section CallTarget+Inlining+NGEN
    This PR (8861) - mean (1,105ms)  : 1009, 1200
    master - mean (1,094ms)  : 989, 1199

Loading

@TophrC-dd TophrC-dd changed the title Adding azure frontdoor support [APMSVLS-442]Adding azure frontdoor support Jul 6, 2026
@TophrC-dd TophrC-dd changed the title [APMSVLS-442]Adding azure frontdoor support [APMSVLS-442] Adding azure frontdoor support Jul 6, 2026
@TophrC-dd
TophrC-dd marked this pull request as ready for review July 7, 2026 18:28
@TophrC-dd
TophrC-dd requested review from a team as code owners July 7, 2026 18:28
@TophrC-dd
TophrC-dd requested review from Chronobreak and vandonr and removed request for a team July 7, 2026 18:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 025d9ec808

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@TophrC-dd
TophrC-dd requested a review from lucaspimentel July 8, 2026 13:11

@bouwkast bouwkast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Haven't gone through all of it yet

{
try
{
var resourceUrl = data.Path is null ? string.Empty : UriHelpers.GetCleanUriPath($"/{data.Path}").ToLowerInvariant();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If I recall correctly data.Path (x-dd-proxy-path) is already an absolute path such as /api/foo

This $"/{data.Path}" will cause it to become //api/foo.

Is that expected?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

So azure doe not prepend the / in the url path for front door -- since this factory is just for azure front door this will not happen.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we update the Front Door test fixture, which currently uses /api/test, and add a comment documenting this contract? It would also be helpful to link the Front Door rule configuration that guarantees the header uses {url_path}.

e.g. this is set

headers.Set(InferredProxyHeaders.Path, "/api/test");

Additionally, it may be best to conditionally add the / if we see it missing we add it if we see it there we skip it.

@bouwkast
bouwkast self-requested a review July 17, 2026 13:26
{
try
{
var resourceUrl = data.Path is null ? string.Empty : UriHelpers.GetCleanUriPath($"/{data.Path}").ToLowerInvariant();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we update the Front Door test fixture, which currently uses /api/test, and add a comment documenting this contract? It would also be helpful to link the Front Door rule configuration that guarantees the header uses {url_path}.

e.g. this is set

headers.Set(InferredProxyHeaders.Path, "/api/test");

Additionally, it may be best to conditionally add the / if we see it missing we add it if we see it there we skip it.

// this is the local root span
tags.SetAnalyticsSampleRate(IntegrationId, tracer.CurrentTraceSettings.Settings, enabledWithGlobalSetting: false);
}
else

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this will potentially modify an Azure Front Door span that is at the root - is that expected? I'm not sure if it should get these Azure Functions tags applied to it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We may want to guard this with else if (rootSpan.OperationName != AzureFrontDoor && rootSpan.OperationName != AzureApim)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I added guard logic and added a test for this.

@bouwkast
bouwkast self-requested a review July 17, 2026 15:38
@bouwkast
bouwkast dismissed their stale review July 17, 2026 15:39

Dismissing as the "/" is typically not included for Azure Front door URLs, but tests do seem to include it

I think adding a conditional here would be best however.

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.

3 participants