Skip to content

[Tracer] (Event Grid 4/5) Add Azure Functions support - #8914

Open
pablomartinezbernardo wants to merge 1 commit into
pmartinez/event-grid-outbound-e2efrom
pmartinez/event-grid-functions
Open

pablomartinezbernardo wants to merge 1 commit into
pmartinez/event-grid-outbound-e2efrom
pmartinez/event-grid-functions

Conversation

@pablomartinezbernardo

@pablomartinezbernardo pablomartinezbernardo commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

  • Add distributed tracing for Azure Event Grid triggers and output bindings in isolated Azure Functions.
  • Create azure_eventgrid.receive spans linked to producer spans and propagate baggage to function invocations.

Reason for change

Complete Azure Event Grid trace correlation through Azure Functions while preserving producer/consumer causality.

Implementation details

  • Extract W3C context from CloudEvent extension attributes and support single events and batches.
  • Add DD_TRACE_AZURE_EVENTGRID_BATCH_LINKS_ENABLED to control producer span links.
  • Share Azure Functions binding extraction helpers across messaging integrations.

Test coverage

  • Add unit coverage for Event Grid context and baggage extraction.
  • Add emulator-backed integration tests and snapshots for SDK publishing and output bindings.

Other details

This PR is part of a larger Graphite stack.

Copy link
Copy Markdown
Contributor Author

@pr-commenter

pr-commenter Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-10-02 13:30:12

Comparing candidate commit 23ca62d in PR branch pmartinez/event-grid-functions with baseline commit 619db52 in branch master.

📊 Benchmarking dashboard

Found 2 performance improvements and 11 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics, 74 known flaky benchmarks, 51 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.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan net472

  • 🟩 throughput [+11263.177op/s; +12211.288op/s] or [+6.365%; +6.901%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan net472

  • 🟩 throughput [+9530.170op/s; +11065.023op/s] or [+5.394%; +6.262%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.133%; +10.144%]
  • 🟥 throughput [-29822.765op/s; -26862.626op/s] or [-8.400%; -7.566%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net6.0

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.750%; +9.761%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery netcoreapp3.1

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.830%; +9.841%]
  • 🟥 throughput [-35291.863op/s; -27308.380op/s] or [-8.723%; -6.750%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 allocated_mem [+272 bytes; +273 bytes] or [+9.374%; +9.385%]
  • 🟥 throughput [-10351.370op/s; -10014.771op/s] or [-11.817%; -11.433%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+9.426%; +9.438%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync netcoreapp3.1

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+7.569%; +7.581%]
  • 🟥 throughput [-14674.055op/s; -13414.147op/s] or [-11.645%; -10.645%]

scenario:Benchmarks.Trace.NLogBenchmark.EnrichedLog net472

  • 🟥 throughput [-8663.690op/s; -7965.585op/s] or [-6.637%; -6.102%]

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.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • 🟥 throughput [-13563.706op/s; -11487.553op/s] or [-7.116%; -6.027%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9457.339op/s; -9033.253op/s] or [-11.214%; -10.711%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • 🟥 throughput [-9490.054op/s; -6962.918op/s] or [-7.977%; -5.853%]

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

  • 🟥 throughput [-10574.946op/s; -9158.158op/s] or [-10.752%; -9.312%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.573KB; +1.573KB] or [+47.789%; +47.804%]
  • 🟥 execution_time [+308.499ms; +312.019ms] or [+153.088%; +154.835%]
  • 🟥 throughput [-57.881op/s; -53.158op/s] or [-10.414%; -9.564%]

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

  • 🟥 allocated_mem [+1.012KB; +1.012KB] or [+37.524%; +37.537%]
  • unstable execution_time [+293.655ms; +355.328ms] or [+232.006%; +280.731%]
  • 🟩 throughput [+75.836op/s; +80.119op/s] or [+9.999%; +10.563%]

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

  • 🟥 allocated_mem [+1.090KB; +1.090KB] or [+40.417%; +40.429%]
  • 🟥 execution_time [+394.915ms; +399.904ms] or [+349.485%; +353.900%]

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

  • 🟥 allocated_mem [+4.758KB; +4.758KB] or [+100.159%; +100.174%]
  • 🟥 throughput [-59864.708op/s; -59491.509op/s] or [-46.578%; -46.287%]

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

  • 🟥 allocated_mem [+3.880KB; +3.880KB] or [+82.058%; +82.072%]
  • 🟩 execution_time [-16.236ms; -12.066ms] or [-7.583%; -5.635%]
  • 🟥 throughput [-61409.981op/s; -58647.465op/s] or [-44.826%; -42.809%]

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

  • 🟥 allocated_mem [+4.608KB; +4.608KB] or [+99.641%; +99.654%]
  • 🟥 throughput [-48555.477op/s; -46303.275op/s] or [-43.900%; -41.863%]

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

  • 🟥 allocated_mem [+1.380KB; +1.380KB] or [+111.648%; +111.662%]
  • 🟥 throughput [-295980.841op/s; -293046.322op/s] or [-30.221%; -29.921%]

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

  • 🟥 allocated_mem [+543 bytes; +544 bytes] or [+44.437%; +44.446%]
  • 🟩 execution_time [-25.983ms; -21.137ms] or [-11.587%; -9.426%]
  • 🟥 throughput [-107317.267op/s; -83404.017op/s] or [-11.465%; -8.910%]

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

  • 🟥 allocated_mem [+1.344KB; +1.344KB] or [+111.253%; +111.267%]
  • 🟥 throughput [-180065.281op/s; -162713.381op/s] or [-25.872%; -23.379%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-73275.131op/s; -72513.409op/s] or [-49.313%; -48.801%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-74646.053op/s; -71766.621op/s] or [-47.496%; -45.664%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-55770.420op/s; -53140.339op/s] or [-44.428%; -42.333%]

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

  • 🟩 throughput [+168156.670op/s; +212705.223op/s] or [+5.607%; +7.093%]

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

  • 🟩 execution_time [-18.778ms; -14.423ms] or [-8.656%; -6.649%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.164ms; +301.285ms] or [+149.982%; +150.542%]
  • 🟩 throughput [+861.619op/s; +951.569op/s] or [+9.516%; +10.510%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.249ms; +303.385ms] or [+151.416%; +152.998%]
  • 🟩 throughput [+2219.336op/s; +2434.518op/s] or [+16.975%; +18.620%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.685ms; +302.355ms] or [+150.958%; +152.303%]
  • 🟩 throughput [+1851.521op/s; +1980.547op/s] or [+17.876%; +19.121%]

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

  • 🟥 execution_time [+294.022ms; +296.109ms] or [+144.412%; +145.437%]
  • 🟩 throughput [+567.004op/s; +577.554op/s] or [+15.031%; +15.311%]

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

  • 🟥 execution_time [+296.762ms; +298.065ms] or [+145.076%; +145.713%]
  • 🟩 throughput [+2871.253op/s; +2895.152op/s] or [+41.714%; +42.061%]

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

  • 🟥 execution_time [+300.915ms; +301.765ms] or [+150.397%; +150.822%]
  • 🟩 throughput [+1376.404op/s; +1426.516op/s] or [+27.321%; +28.315%]

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

  • 🟩 execution_time [-146.884µs; -142.960µs] or [-30.157%; -29.352%]
  • 🟩 throughput [+857.283op/s; +883.080op/s] or [+41.754%; +43.010%]

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

  • 🟩 execution_time [-130.085µs; -103.086µs] or [-29.835%; -23.643%]
  • 🟩 throughput [+768.505op/s; +897.249op/s] or [+33.412%; +39.009%]

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

  • 🟩 execution_time [-141.645µs; -119.583µs] or [-30.348%; -25.621%]
  • 🟩 throughput [+767.407op/s; +851.571op/s] or [+35.425%; +39.310%]

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

  • 🟩 execution_time [-126.332µs; -121.704µs] or [-34.109%; -32.859%]
  • 🟩 throughput [+1332.638op/s; +1389.567op/s] or [+49.355%; +51.463%]

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

  • 🟩 execution_time [-97.514µs; -73.856µs] or [-31.131%; -23.579%]
  • 🟩 throughput [+1086.521op/s; +1290.569op/s] or [+33.870%; +40.231%]

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

  • 🟩 execution_time [-137.941µs; -115.555µs] or [-37.735%; -31.611%]
  • 🟩 throughput [+1333.370op/s; +1470.220op/s] or [+47.849%; +52.760%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.681ms; +300.459ms] or [+149.572%; +149.960%]

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

  • unstable execution_time [+317.786ms; +388.799ms] or [+345.288%; +422.447%]

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

  • unstable execution_time [+249.053ms; +310.381ms] or [+189.104%; +235.670%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+281.670ms; +342.516ms] or [+129.509%; +157.486%]
  • 🟥 throughput [-578.661op/s; -523.857op/s] or [-52.432%; -47.467%]

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

  • unstable execution_time [+201.647ms; +334.895ms] or [+85.933%; +142.718%]
  • 🟥 throughput [-669.318op/s; -585.831op/s] or [-44.644%; -39.075%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.443%; +5.451%]
  • 🟥 execution_time [+325.926ms; +338.018ms] or [+194.942%; +202.174%]
  • 🟥 throughput [-421.306op/s; -385.408op/s] or [-29.335%; -26.835%]

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

  • 🟩 execution_time [-141.791µs; -101.890µs] or [-7.183%; -5.161%]
  • 🟩 throughput [+28.265op/s; +39.981op/s] or [+5.580%; +7.893%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+12.092%; +12.103%]
  • 🟥 execution_time [+301.994ms; +303.459ms] or [+152.079%; +152.816%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+301.642ms; +303.569ms] or [+151.153%; +152.119%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+302.671ms; +307.222ms] or [+152.049%; +154.335%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+11.165%; +11.177%]
  • 🟥 execution_time [+300.709ms; +302.476ms] or [+151.006%; +151.893%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.493%; +12.506%]
  • 🟥 execution_time [+299.230ms; +301.636ms] or [+147.956%; +149.145%]
  • 🟥 throughput [-58836.790op/s; -51672.791op/s] or [-9.480%; -8.326%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+11.422%; +11.434%]
  • 🟥 execution_time [+303.085ms; +308.043ms] or [+153.617%; +156.130%]
  • 🟥 throughput [-44348.455op/s; -35960.090op/s] or [-9.577%; -7.765%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+11.197%; +11.208%]
  • 🟥 execution_time [+302.807ms; +305.018ms] or [+151.982%; +153.092%]
  • 🟥 throughput [-45071.081op/s; -41932.965op/s] or [-11.693%; -10.878%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.618%; +10.631%]
  • 🟥 execution_time [+299.876ms; +303.138ms] or [+149.186%; +150.808%]
  • 🟥 throughput [-36255.797op/s; -31123.460op/s] or [-8.582%; -7.367%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+6.002%; +6.011%]
  • 🟥 throughput [-19959.521op/s; -17531.567op/s] or [-8.026%; -7.050%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.627%; +5.636%]
  • 🟩 execution_time [-16.494ms; -12.820ms] or [-7.670%; -5.961%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.605%; +5.617%]

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

  • unstable execution_time [+11.348µs; +57.451µs] or [+2.803%; +14.191%]

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

  • 🟩 allocated_mem [-20.197KB; -20.175KB] or [-7.368%; -7.359%]
  • unstable execution_time [-42.921µs; +14.620µs] or [-8.483%; +2.890%]
  • unstable throughput [-46.556op/s; +158.184op/s] or [-2.323%; +7.893%]

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

  • 🟩 allocated_mem [-15.769KB; -15.749KB] or [-5.748%; -5.741%]
  • unstable execution_time [-71.954µs; -12.603µs] or [-12.469%; -2.184%]

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

  • 🟥 execution_time [+4.991µs; +8.504µs] or [+11.797%; +20.100%]
  • 🟥 throughput [-4181.021op/s; -2506.518op/s] or [-17.601%; -10.552%]

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

  • unstable execution_time [-11.339µs; +1.885µs] or [-17.592%; +2.925%]
  • unstable throughput [+334.369op/s; +2521.113op/s] or [+2.051%; +15.468%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.634ms; +303.760ms] or [+152.968%; +153.537%]

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

  • 🟥 execution_time [+300.785ms; +303.246ms] or [+153.099%; +154.351%]

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

  • 🟥 execution_time [+300.685ms; +302.871ms] or [+150.530%; +151.624%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.197%; +9.208%]
  • 🟥 throughput [-33365.158op/s; -31603.169op/s] or [-9.236%; -8.749%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.226%; +9.238%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.226%; +9.238%]
  • 🟥 throughput [-32708.012op/s; -23767.317op/s] or [-7.741%; -5.625%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.498ms; +302.892ms] or [+149.771%; +150.964%]

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

  • 🟥 allocated_mem [+96 bytes; +96 bytes] or [+6.000%; +6.010%]
  • 🟥 execution_time [+301.494ms; +304.185ms] or [+151.396%; +152.747%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.819%; +5.828%]
  • 🟥 execution_time [+302.638ms; +304.819ms] or [+153.479%; +154.585%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.218ms; +299.958ms] or [+149.252%; +149.621%]
  • 🟩 throughput [+65209613.523op/s; +65534590.661op/s] or [+47.490%; +47.726%]

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

  • 🟥 execution_time [+421.283ms; +427.290ms] or [+523.941%; +531.411%]

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

  • 🟥 execution_time [+299.299ms; +300.401ms] or [+149.283%; +149.833%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+5.244%; +5.256%]
  • 🟥 throughput [-93713.253op/s; -85691.810op/s] or [-10.458%; -9.563%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+6.037%; +6.047%]
  • 🟥 throughput [-107391.458op/s; -102542.980op/s] or [-9.830%; -9.387%]

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

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+6.057%; +6.065%]

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

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+6.059%; +6.069%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • 🟥 throughput [-28203.104op/s; -22650.938op/s] or [-6.284%; -5.047%]

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

  • 🟩 throughput [+27627.839op/s; +41594.641op/s] or [+5.017%; +7.553%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+15.733%; +15.745%]
  • 🟥 throughput [-70082.793op/s; -65664.096op/s] or [-10.257%; -9.610%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+14.810%; +14.823%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+14.810%; +14.821%]
  • 🟥 throughput [-58267.214op/s; -43479.535op/s] or [-8.136%; -6.071%]

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_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.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 49fa28b to deb530a Compare July 21, 2026 09:34
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 4b804a8 to 4e4e326 Compare July 21, 2026 09:34
@pablomartinezbernardo pablomartinezbernardo changed the title [Azure Event Grid] Add Azure Functions support [Tracer] (Event Grid 4/5) Add Azure Functions support Jul 21, 2026
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 4e4e326 to 5613f67 Compare July 22, 2026 09:01
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from deb530a to 2dcd501 Compare July 22, 2026 09:01
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 4e4e326 to 5613f67 Compare July 22, 2026 09:01
Comment on lines -84 to +103
// 7 spans total: 1 health-check ping + 6 meaningful spans
// Wait for at least 7 spans (1 health-check ping + 6 meaningful).
var allSpans = await agent.WaitForSpansAsync(7, timeoutInMilliseconds: 30000, returnAllOperations: true);
// Filter out the health-check ping used to detect host readiness
var spans = allSpans.Where(s => s.Resource != "GET /admin/host/ping").ToImmutableList();
var filteredSpans = allSpans.Where(s => s.Resource != "GET /admin/host/ping").ToImmutableList();
var manualSpan = filteredSpans.FirstOrDefault(s => s.Name == "Manual inside ServiceBusTrigger");
var sendSpan = filteredSpans.FirstOrDefault(s => s.Name == "azure_servicebus.send");
var spans = filteredSpans
.Where(s => s.TraceId == manualSpan?.TraceId || s.TraceId == sendSpan?.TraceId)
.ToImmutableList();

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.

Event hubs was already doing this, I saw some errors happening because of this, fixing it here

@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 5613f67 to f532080 Compare July 24, 2026 08:10
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 2dcd501 to 2adf2d3 Compare July 24, 2026 08:10
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from f532080 to 9c329a7 Compare July 24, 2026 10:46
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 2adf2d3 to 5e098c3 Compare July 24, 2026 10:46
@pablomartinezbernardo
pablomartinezbernardo marked this pull request as ready for review July 24, 2026 14:52
@pablomartinezbernardo
pablomartinezbernardo requested review from a team as code owners July 24, 2026 14:52
@pablomartinezbernardo
pablomartinezbernardo requested review from Lewis-E and vandonr and removed request for a team July 24, 2026 14:52
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 5e098c3 to 7f77047 Compare July 27, 2026 08:08
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 9c329a7 to 0d76d64 Compare July 27, 2026 08:08
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from e0ef388 to 5e19764 Compare July 28, 2026 08:59
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch 2 times, most recently from 73fd3c4 to 7a79f7a Compare July 29, 2026 09:10
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch 2 times, most recently from ddf0a72 to 27f0125 Compare July 29, 2026 09:43
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 7a79f7a to 183a4ea Compare July 29, 2026 09:43
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 27f0125 to b672698 Compare September 10, 2026 12:34
@pablomartinezbernardo
pablomartinezbernardo requested review from link04 and removed request for a team September 10, 2026 12:34
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 183a4ea to 6443b33 Compare September 10, 2026 12:34
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from b672698 to a0927c4 Compare September 15, 2026 13:01
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch 2 times, most recently from 4624d38 to 68761f7 Compare September 15, 2026 14:03
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch 2 times, most recently from b4f4a8d to 699858f Compare September 15, 2026 15:12
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 68761f7 to 471832a Compare September 15, 2026 15:12
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 699858f to 4dc5947 Compare September 16, 2026 10:23
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 471832a to 920c7e1 Compare September 16, 2026 10:23
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 4dc5947 to 31f286b Compare September 16, 2026 11:22
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 920c7e1 to 2ad6d60 Compare September 16, 2026 11:22
@bm1549
bm1549 requested review from zacharycmontoya and removed request for link04 September 30, 2026 12:20
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 2ad6d60 to 84a8fbd Compare October 2, 2026 08:35
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 31f286b to 29271bb Compare October 2, 2026 08:35
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-outbound-e2e branch from 84a8fbd to e74ac08 Compare October 2, 2026 12:36
@pablomartinezbernardo
pablomartinezbernardo force-pushed the pmartinez/event-grid-functions branch from 29271bb to 23ca62d Compare October 2, 2026 12:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants