Skip to content

[Tests] Add Azure Functions Trigger tests for messaging SDKs#8698

Merged
andrewlock merged 9 commits into
masterfrom
pmartinez/trigger-tests
Jun 29, 2026
Merged

[Tests] Add Azure Functions Trigger tests for messaging SDKs#8698
andrewlock merged 9 commits into
masterfrom
pmartinez/trigger-tests

Conversation

@pablomartinezbernardo

@pablomartinezbernardo pablomartinezbernardo commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Add Azure Functions Trigger tests for messaging SDKs, enabling integration tests for AzureFunctionsCommon.

Also paves the path for future trigger integration tests.

Reason for change

The logic in AzureFunctionsCommon is complex and mainly untested (especially context extraction). Up until now, functions trigger tests were only done on windows, and without the ability to boot up the docker dependencies. This has limitations

  • Only basic Http/Timer triggers are tested
  • Not possible to run on mac dev envs

Implementation details

Install azure functions core tools on the test image through GH releases.

Send (via http trigger) & receive (via messaging trigger) messages from the function itself so both ends are traced.

Only done for the isolated worker model.

Test coverage

Snapshot testing for Service Bus and Event Hubs, covering span links (context propagation) and parent-child relationships.

@datadog-prod-us1-3

This comment has been minimized.

@pr-commenter

pr-commenter Bot commented May 27, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-22 08:57:30

Comparing candidate commit f28e192 in PR branch pmartinez/trigger-tests with baseline commit 6aeb6ed in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 63 known flaky benchmarks, 63 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 [-5337.206op/s; -4577.921op/s] or [-6.093%; -5.226%]

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 [-7492.577op/s; -6829.053op/s] or [-8.884%; -8.097%]

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

  • 🟥 throughput [-7923.220op/s; -6342.629op/s] or [-8.056%; -6.449%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+299.957ms; +306.667ms] or [+148.849%; +152.179%]
  • 🟥 throughput [-44.209op/s; -40.541op/s] or [-7.954%; -7.294%]

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

  • 🟥 execution_time [+379.530ms; +380.486ms] or [+299.852%; +300.607%]
  • 🟩 throughput [+93.483op/s; +95.172op/s] or [+12.325%; +12.548%]

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

  • 🟥 execution_time [+393.632ms; +395.026ms] or [+348.349%; +349.583%]

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

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

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-15.954ms; -11.772ms] or [-7.451%; -5.498%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-276584.817op/s; -270813.637op/s] or [-28.241%; -27.651%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.590ms; -21.682ms] or [-11.858%; -9.669%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-154995.393op/s; -137776.041op/s] or [-22.270%; -19.796%]

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

  • 🟩 throughput [+8757.908op/s; +11651.992op/s] or [+5.573%; +7.414%]

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

  • 🟩 throughput [+9747.891op/s; +12448.749op/s] or [+7.765%; +9.917%]

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

  • 🟩 throughput [+469704.276op/s; +483836.210op/s] or [+15.662%; +16.133%]

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

  • 🟩 execution_time [-18.785ms; -14.455ms] or [-8.659%; -6.663%]
  • 🟩 throughput [+186798.655op/s; +240680.267op/s] or [+7.415%; +9.553%]

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

  • 🟥 execution_time [+299.598ms; +300.375ms] or [+149.699%; +150.087%]

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

  • 🟥 execution_time [+299.254ms; +303.490ms] or [+150.915%; +153.051%]

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

  • 🟥 execution_time [+300.254ms; +302.813ms] or [+151.245%; +152.533%]

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

  • 🟥 execution_time [+297.613ms; +298.392ms] or [+146.176%; +146.558%]

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

  • 🟥 execution_time [+295.470ms; +299.252ms] or [+144.444%; +146.293%]

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

  • 🟥 execution_time [+301.468ms; +302.578ms] or [+150.673%; +151.228%]

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

  • 🟥 execution_time [+22.709µs; +46.377µs] or [+7.250%; +14.806%]
  • 🟥 throughput [-431.538op/s; -232.389op/s] or [-13.452%; -7.244%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.805ms; +300.685ms] or [+149.633%; +150.073%]

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

  • unstable execution_time [+330.563ms; +392.444ms] or [+359.171%; +426.407%]
  • 🟩 throughput [+862.746op/s; +1113.083op/s] or [+7.089%; +9.146%]

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

  • unstable execution_time [+201.798ms; +266.490ms] or [+153.224%; +202.343%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+298.107ms; +337.873ms] or [+137.067%; +155.351%]
  • 🟥 throughput [-512.545op/s; -475.875op/s] or [-46.442%; -43.119%]

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

  • unstable execution_time [+142.622ms; +288.393ms] or [+60.779%; +122.901%]
  • 🟥 throughput [-667.119op/s; -583.693op/s] or [-44.497%; -38.932%]

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

  • 🟥 execution_time [+324.516ms; +338.177ms] or [+194.098%; +202.269%]
  • 🟥 throughput [-401.084op/s; -363.091op/s] or [-27.927%; -25.281%]

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

  • unstable throughput [+13.606op/s; +57.346op/s] or [+3.911%; +16.484%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.801ms; +303.843ms] or [+151.981%; +153.009%]

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

  • 🟥 execution_time [+301.669ms; +304.390ms] or [+151.167%; +152.530%]
  • 🟩 throughput [+37206.513op/s; +46999.787op/s] or [+5.866%; +7.410%]

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

  • 🟥 execution_time [+303.996ms; +307.193ms] or [+152.715%; +154.321%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.061ms; +302.533ms] or [+151.183%; +151.922%]
  • 🟩 throughput [+15308.586op/s; +17198.026op/s] or [+5.129%; +5.762%]

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

  • 🟥 execution_time [+301.408ms; +304.823ms] or [+149.033%; +150.721%]

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

  • 🟥 execution_time [+302.909ms; +306.767ms] or [+153.528%; +155.483%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+298.980ms; +301.271ms] or [+150.061%; +151.211%]

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

  • 🟥 execution_time [+297.484ms; +301.349ms] or [+148.268%; +150.195%]
  • 🟩 throughput [+52811.003op/s; +58276.584op/s] or [+10.487%; +11.572%]

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

  • 🟥 execution_time [+300.545ms; +304.196ms] or [+149.519%; +151.335%]

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

  • 🟩 execution_time [-15.808ms; -12.137ms] or [-7.351%; -5.644%]
  • 🟩 throughput [+20107.103op/s; +27311.537op/s] or [+5.516%; +7.492%]

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

  • unstable execution_time [+10.810µs; +54.521µs] or [+2.670%; +13.467%]

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

  • 🟩 allocated_mem [-17.518KB; -17.495KB] or [-6.390%; -6.382%]
  • unstable execution_time [-34.550µs; +22.849µs] or [-6.829%; +4.516%]
  • unstable throughput [-80.349op/s; +120.415op/s] or [-4.009%; +6.009%]

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

  • 🟩 allocated_mem [-23.806KB; -23.786KB] or [-8.678%; -8.671%]
  • unstable execution_time [+25.777µs; +217.246µs] or [+4.467%; +37.647%]
  • unstable throughput [-246.798op/s; +58.870op/s] or [-14.100%; +3.363%]

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

  • unstable execution_time [+9.100µs; +14.003µs] or [+21.509%; +33.099%]
  • 🟥 throughput [-5941.647op/s; -3970.460op/s] or [-25.012%; -16.714%]

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

  • unstable execution_time [-17.106µs; -10.284µs] or [-26.539%; -15.955%]
  • 🟩 throughput [+2772.335op/s; +4220.325op/s] or [+17.009%; +25.893%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.383ms; +302.578ms] or [+152.336%; +152.940%]

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

  • 🟥 execution_time [+304.083ms; +306.423ms] or [+154.777%; +155.968%]

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

  • 🟥 execution_time [+298.977ms; +302.678ms] or [+149.675%; +151.528%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-25963.991op/s; -24159.369op/s] or [-7.188%; -6.688%]

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

  • 🟩 throughput [+32026.676op/s; +37182.981op/s] or [+6.062%; +7.038%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.227ms; +302.175ms] or [+149.636%; +150.607%]

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

  • 🟥 execution_time [+302.277ms; +304.479ms] or [+151.789%; +152.895%]

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

  • 🟥 execution_time [+301.941ms; +304.304ms] or [+153.125%; +154.323%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.662ms; +300.551ms] or [+149.473%; +149.916%]
  • 🟩 throughput [+66006489.261op/s; +66323084.773op/s] or [+48.070%; +48.301%]

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

  • 🟥 execution_time [+423.860ms; +427.617ms] or [+527.145%; +531.818%]

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

  • 🟥 execution_time [+299.452ms; +300.602ms] or [+149.360%; +149.933%]
  • 🟩 throughput [+18041801.570op/s; +19014854.914op/s] or [+7.991%; +8.422%]

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

  • 🟩 throughput [+92237.395op/s; +101281.894op/s] or [+8.612%; +9.456%]

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

  • 🟩 throughput [+61056.475op/s; +80070.512op/s] or [+7.067%; +9.268%]

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

  • 🟩 throughput [+68656.907op/s; +99671.066op/s] or [+5.314%; +7.715%]

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

  • 🟩 throughput [+80869.396op/s; +92114.004op/s] or [+8.032%; +9.148%]

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

  • 🟩 throughput [+57054.575op/s; +63042.162op/s] or [+10.360%; +11.447%]

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

  • 🟩 throughput [+24049.609op/s; +34716.789op/s] or [+5.383%; +7.771%]

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

  • 🟩 throughput [+77040.785op/s; +97327.223op/s] or [+8.607%; +10.874%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • unstable execution_time [+0.554ms; +26.894ms] or [+0.281%; +13.659%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented May 27, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8698) 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.06 ± (71.33 - 71.87) ms72.80 ± (72.63 - 73.10) ms+2.4%✅⬆️
.NET Framework 4.8 - Bailout
duration76.51 ± (76.37 - 76.80) ms76.30 ± (76.29 - 76.74) ms-0.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1075.08 ± (1074.94 - 1080.71) ms1078.48 ± (1082.38 - 1090.64) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.32 ± (22.27 - 22.36) ms22.38 ± (22.34 - 22.43) ms+0.3%✅⬆️
process.time_to_main_ms82.62 ± (82.35 - 82.89) ms83.42 ± (83.18 - 83.65) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.92) MB10.92 ± (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.20 ± (22.17 - 22.24) ms22.06 ± (22.03 - 22.09) ms-0.6%
process.time_to_main_ms83.09 ± (82.90 - 83.27) ms82.79 ± (82.63 - 82.95) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.95 ± (10.95 - 10.96) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms211.72 ± (210.70 - 212.74) ms209.60 ± (208.59 - 210.61) ms-1.0%
process.time_to_main_ms526.91 ± (525.63 - 528.18) ms527.19 ± (525.90 - 528.47) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.73 ± (48.70 - 48.76) MB48.65 ± (48.60 - 48.69) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.03 ± (20.99 - 21.07) ms21.00 ± (20.96 - 21.04) ms-0.2%
process.time_to_main_ms71.68 ± (71.47 - 71.88) ms71.16 ± (70.94 - 71.38) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.62 ± (10.61 - 10.62) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.97 ± (20.93 - 21.00) ms20.95 ± (20.92 - 20.99) ms-0.1%
process.time_to_main_ms72.15 ± (71.98 - 72.33) ms72.86 ± (72.66 - 73.06) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.73) MB10.74 ± (10.74 - 10.75) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms372.20 ± (369.78 - 374.62) ms373.13 ± (370.51 - 375.75) ms+0.2%✅⬆️
process.time_to_main_ms534.31 ± (533.07 - 535.54) ms534.55 ± (533.28 - 535.83) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.13 ± (50.11 - 50.15) MB50.20 ± (50.18 - 50.22) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.16 ± (19.13 - 19.19) ms18.97 ± (18.94 - 19.00) ms-1.0%
process.time_to_main_ms69.18 ± (69.05 - 69.31) ms69.22 ± (69.05 - 69.39) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.69) MB7.70 ± (7.69 - 7.71) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.16 ± (19.12 - 19.20) ms18.98 ± (18.95 - 19.00) ms-1.0%
process.time_to_main_ms71.43 ± (71.20 - 71.66) ms70.28 ± (70.17 - 70.39) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.72 - 7.73) MB7.72 ± (7.72 - 7.73) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.18 ± (297.15 - 301.20) ms295.08 ± (292.58 - 297.58) ms-1.4%
process.time_to_main_ms483.98 ± (482.98 - 484.97) ms484.04 ± (483.19 - 484.90) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.08 ± (37.05 - 37.11) MB37.19 ± (37.16 - 37.22) MB+0.3%✅⬆️
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
duration201.34 ± (201.41 - 202.33) ms200.88 ± (200.91 - 201.74) ms-0.2%
.NET Framework 4.8 - Bailout
duration205.80 ± (205.33 - 206.39) ms203.57 ± (203.36 - 204.26) ms-1.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1201.19 ± (1200.59 - 1206.31) ms1209.67 ± (1207.98 - 1214.71) ms+0.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms192.55 ± (192.09 - 193.01) ms194.86 ± (194.42 - 195.30) ms+1.2%✅⬆️
process.time_to_main_ms83.45 ± (83.14 - 83.76) ms84.69 ± (84.42 - 84.95) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.04 - 16.09) MB16.05 ± (16.03 - 16.06) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.9%
.NET Core 3.1 - Bailout
process.internal_duration_ms194.71 ± (194.23 - 195.19) ms194.35 ± (193.93 - 194.76) ms-0.2%
process.time_to_main_ms85.96 ± (85.64 - 86.28) ms86.04 ± (85.76 - 86.31) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.07 - 16.13) MB16.15 ± (16.13 - 16.18) MB+0.3%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms386.16 ± (384.67 - 387.65) ms386.52 ± (385.43 - 387.62) ms+0.1%✅⬆️
process.time_to_main_ms541.31 ± (540.12 - 542.50) ms541.08 ± (539.96 - 542.21) ms-0.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.85 ± (57.65 - 58.06) MB57.73 ± (57.53 - 57.92) MB-0.2%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms199.77 ± (199.38 - 200.16) ms199.34 ± (198.95 - 199.74) ms-0.2%
process.time_to_main_ms73.43 ± (73.18 - 73.68) ms73.40 ± (73.14 - 73.66) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.39 ± (16.37 - 16.42) MB16.39 ± (16.37 - 16.42) MB-0.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.9%
.NET 6 - Bailout
process.internal_duration_ms198.80 ± (198.39 - 199.21) ms198.49 ± (198.13 - 198.85) ms-0.2%
process.time_to_main_ms74.45 ± (74.29 - 74.61) ms74.46 ± (74.25 - 74.67) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.51 ± (16.48 - 16.53) MB16.45 ± (16.42 - 16.47) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms587.54 ± (585.01 - 590.07) ms586.46 ± (583.99 - 588.94) ms-0.2%
process.time_to_main_ms550.34 ± (549.32 - 551.37) ms550.90 ± (549.76 - 552.05) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.64 ± (61.54 - 61.73) MB61.51 ± (61.40 - 61.61) MB-0.2%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms197.94 ± (197.48 - 198.40) ms197.78 ± (197.36 - 198.21) ms-0.1%
process.time_to_main_ms73.30 ± (73.02 - 73.58) ms72.96 ± (72.71 - 73.20) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.74 - 11.77) MB11.81 ± (11.79 - 11.83) MB+0.5%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms196.76 ± (196.28 - 197.24) ms196.83 ± (196.40 - 197.26) ms+0.0%✅⬆️
process.time_to_main_ms73.74 ± (73.53 - 73.95) ms74.05 ± (73.84 - 74.25) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.77 - 11.80) MB11.79 ± (11.77 - 11.81) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms511.50 ± (508.83 - 514.18) ms509.75 ± (507.30 - 512.19) ms-0.3%
process.time_to_main_ms498.95 ± (497.92 - 499.98) ms498.12 ± (497.19 - 499.04) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.02 ± (50.99 - 51.06) MB50.93 ± (50.90 - 50.97) MB-0.2%
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.9%✅⬆️
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 (8698) - mean (73ms)  : 69, 76
    master - mean (72ms)  : 68, 76

    section Bailout
    This PR (8698) - mean (77ms)  : 73, 80
    master - mean (77ms)  : 73, 80

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (1,087ms)  : 1024, 1149
    master - mean (1,078ms)  : 1036, 1120

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 (8698) - mean (113ms)  : 108, 119
    master - mean (112ms)  : 107, 118

    section Bailout
    This PR (8698) - mean (111ms)  : 108, 114
    master - mean (112ms)  : 107, 117

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (771ms)  : 754, 789
    master - mean (774ms)  : 752, 796

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8698) - mean (98ms)  : 93, 103
    master - mean (99ms)  : 95, 104

    section Bailout
    This PR (8698) - mean (101ms)  : 96, 105
    master - mean (99ms)  : 96, 102

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (936ms)  : 889, 983
    master - mean (935ms)  : 897, 973

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

    section Bailout
    This PR (8698) - mean (96ms)  : 94, 98
    master - mean (98ms)  : 92, 104

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (810ms)  : 770, 850
    master - mean (812ms)  : 779, 846

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 (8698) - mean (201ms)  : 195, 207
    master - mean (202ms)  : 195, 209

    section Bailout
    This PR (8698) - mean (204ms)  : 199, 208
    master - mean (206ms)  : 199, 213

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (1,211ms)  : 1161, 1261
    master - mean (1,203ms)  : 1162, 1245

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 (8698) - mean (289ms)  : 280, 299
    master - mean (286ms)  : 278, 294

    section Bailout
    This PR (8698) - mean (290ms)  : 284, 295
    master - mean (290ms)  : 283, 298

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (970ms)  : 945, 995
    master - mean (966ms)  : 947, 985

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8698) - mean (282ms)  : 275, 290
    master - mean (283ms)  : 276, 290

    section Bailout
    This PR (8698) - mean (283ms)  : 277, 289
    master - mean (282ms)  : 278, 287

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (1,168ms)  : 1133, 1203
    master - mean (1,169ms)  : 1121, 1218

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8698) - mean (281ms)  : 274, 288
    master - mean (282ms)  : 273, 290

    section Bailout
    This PR (8698) - mean (281ms)  : 274, 288
    master - mean (281ms)  : 272, 289

    section CallTarget+Inlining+NGEN
    This PR (8698) - mean (1,041ms)  : 1002, 1080
    master - mean (1,043ms)  : 996, 1089

Loading

@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/trigger-tests branch 2 times, most recently from 97b398c to 1f3465e Compare May 29, 2026 13:07
@pablomartinezbernardo pablomartinezbernardo changed the title Trigger tests [Tests ]Trigger tests Jun 1, 2026
@pablomartinezbernardo pablomartinezbernardo changed the title [Tests ]Trigger tests [Tests] Add Azure Functions Trigger tests for messaging SDKs Jun 1, 2026
@pablomartinezbernardo
pablomartinezbernardo marked this pull request as ready for review June 2, 2026 09:33
@pablomartinezbernardo
pablomartinezbernardo requested review from a team as code owners June 2, 2026 09:33
@pablomartinezbernardo
pablomartinezbernardo requested review from duncanpharvey, jcstorms1, lucaspimentel and vandonr and removed request for a team June 2, 2026 09:33

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

LGTM 👍

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just checked it build-wise - we should probably really think this to make the tool install unconditional, otherwise we risk a lot of flake in CI.

I feel like we should also do some consolidation of the azure function sample builds - if we're going to build them all in the BuildSamples stage, we should stop building them in the Windows stage.

Additionally, we may want/need to split out the azure functions tests on linux if we're going to start running them there.

Side note - this should probably be 2 separate PRs

  • One to add the new sample and tests
  • One changing the build

Comment thread tracer/build/_build/docker/debian.dockerfile
TracerDirectory.GlobFiles("test/test-applications/integrations/**/*.csproj")
TracerDirectory.GlobFiles(
"test/test-applications/integrations/**/*.csproj",
"test/test-applications/azure-functions/**/*.csproj")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We have an explicit Azure Functions step, which we split out from normal integrations, so I'm not sure if we should have this here? 🤔 Or, if you do want to have this, we probably need to stop having the dedicated Azure Functions step

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is here so we can do locally

build.sh BuildAndRunIntegrationTests --SampleName Samples.AzureFunctions.V4Isolated.Messaging

The dedicated Azure Functions step only works for windows. I think it makes sense to eventually have the windows step removed, once we no longer support in-process. But it does different things for now.

@pablomartinezbernardo

Copy link
Copy Markdown
Contributor Author

@andrewlock I'm gonna push back on two points

I feel like we should also do some consolidation of the azure function sample builds - if we're going to build them all in the BuildSamples stage, we should stop building them in the Windows stage.

Created a draft PR showing what needs to be done: https://github.com/DataDog/dd-trace-dotnet/pull/8765/changes The in-process samples need to be treated specially. Unless we have a reason to believe sample building is considerably heavy, I'm not sure it's worth the special treatment

Additionally, we may want/need to split out the azure functions tests on linux if we're going to start running them there.

Why would we need to? Because of increasing resource consumption on group 2? The decision to include them as part of group 2 was intentional, because the emulators are already being booted up on group 2 for SDK integration testing

Comment on lines +34 to +36
// Disable Continuous Profiler to avoid error log "Stable Configuration has not been set: the profiler was never started"
SetEnvironmentVariable("DD_PROFILING_ENABLED", "0");
SetEnvironmentVariable("DD_PROFILING_MANAGED_ACTIVATION_ENABLED", "0");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤔 This seems like a problem, no? Either we're not working with everything published (in which case the profiler shouldn't be there) or we are working with everything published, and then this shouldn't be necessary unless there's a bug...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's the second case, we run the full monitoring home, the profiler is loaded. It waits for activation but never gets it (IsContinuousProfilerAvailable is false). When it shuts down without having been activated, it prints this error log, making the tests fail.

So this is an artifact of running the tests with everything, Datadog.AzureFunctions just doesn't include the profiler

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM AFACIT, the only "issue" is that we need to update the VMs so that the layer is cahed, otherwise it will impact all our build times... Given we have a release next week, we should probably hold off merging it, so that we can avoid any potential issues impacting the release when we rebuild the VMs

@andrewlock
andrewlock enabled auto-merge (squash) June 29, 2026 09:02
@andrewlock
andrewlock merged commit 7ca1e54 into master Jun 29, 2026
141 checks passed
@andrewlock
andrewlock deleted the pmartinez/trigger-tests branch June 29, 2026 11:46
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 29, 2026
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