Skip to content

[ASM] Log endpoints collection failures as warnings, not errors - #9030

Draft
dromanol wants to merge 3 commits into
masterfrom
daniel.romano/appsec-69625-endpoints-collection-log-level
Draft

[ASM] Log endpoints collection failures as warnings, not errors#9030
dromanol wants to merge 3 commits into
masterfrom
daniel.romano/appsec-69625-endpoints-collection-log-level

Conversation

@dromanol

@dromanol dromanol commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

https://app.datadoghq.com/error-tracking/issue/fc6528a2-9617-11f1-a90b-da7ad0900002

Summary of changes

Wrap the EndpointDataSource.Endpoints evaluation in KestrelServerImplStartAsyncIntegration.GatherEndpoints in its own try/catch that logs at Log.Warning. The outer catch keeps Log.Error.

Reason for change

API Security endpoints collection reads EndpointDataSource.Endpoints at Kestrel startup. Evaluating that property executes third-party code that can throw for reasons outside our control: in the Azure Functions isolated worker, FunctionsEndpointDataSource builds its endpoints lazily from function metadata and rejects malformed route templates, producing a RoutePatternException that shows up in Error Tracking.

Because routing only enumerates endpoints on the first request, we are the first — often the only — caller to trigger that build, so a latent app-side defect surfaces as a tracer error. It is non-fatal: CompositeEndpointDataSource caches only on success, so the application still builds its endpoints normally when a request arrives.

Implementation details

Only the third-party getter is downgraded. Exceptions from our own collection path — EndpointsCollection.CollectEndpoints, ReportEndpoints, duck casts — are tracer defects and still reach the outer catch at Log.Error, per the logging guidance in AGENTS.md.

Test coverage

None — log level only, no behaviour change.

Other details

APPSEC-69625. Deliberately does not skip collection under Azure Functions: specialization env vars are applied before the customer app loads, so eager evaluation reads correct metadata, and skipping would regress Azure Functions AAP coverage.

Separately tracked on the ticket: the endpoints we collect from FunctionsEndpointDataSource are themselves unvalidated (RoutePattern.RawText keeps a leading slash for these endpoints, and azure-functions-dotnet-worker#3009 means the route prefix can disagree with what the host routes on). Out of scope here.

🤖 Generated with Claude Code

Reading EndpointDataSource.Endpoints executes third-party code that can
throw for reasons outside our control. In the Azure Functions isolated
worker, FunctionsEndpointDataSource builds its endpoints lazily and
rejects malformed route templates, so collecting endpoints at Kestrel
startup surfaces a RoutePatternException.

Endpoints collection is best-effort and the failure does not affect the
application, so it should not be reported to telemetry as an error. The
other failure paths in the same method already use Log.Warning.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dromanol
dromanol requested review from a team as code owners August 12, 2026 09:20
@dromanol
dromanol requested review from vandonr and removed request for a team August 12, 2026 09:20

@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: 186e74ff58

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// rejects a malformed route template). Endpoints collection is best-effort, so a failure
// here degrades the feature without affecting the application: warn rather than report
// an error to telemetry.
Log.Warning(ex, "API Security: Failed to collect endpoints.");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve error telemetry for collector defects

When the exception originates in Datadog's own collection path rather than the third-party EndpointDataSource.Endpoints getter, this broad catch now suppresses it from error telemetry too. For example, failures in EndpointsCollection.CollectEndpoints or ReportEndpoints are tracer defects that should remain errors; narrow the warning handling to evaluation of the third-party getter and retain error-level reporting for unexpected collector exceptions. The repository logging guidance explicitly requires tracer bugs and unexpected outer-catch failures to use Log.Error.

AGENTS.md reference: AGENTS.md:L205-L210

Useful? React with 👍 / 👎.

dromanol and others added 2 commits August 12, 2026 11:46
Downgrading the whole catch also suppressed error telemetry for defects in
our own collection path (EndpointsCollection.CollectEndpoints,
ReportEndpoints, duck casts), which the logging guidance requires to stay
at Log.Error.

Wrap only the EndpointDataSource.Endpoints evaluation, the third-party
code we cannot control, and restore Log.Error on the outer catch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pr-commenter

pr-commenter Bot commented Aug 12, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-12 10:42:27

Comparing candidate commit f68775a in PR branch daniel.romano/appsec-69625-endpoints-collection-log-level with baseline commit 7a4fb69 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 67 known flaky benchmarks, 59 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 [-4973.403op/s; -4457.779op/s] or [-5.677%; -5.089%]

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 [-8651.409op/s; -8203.784op/s] or [-10.258%; -9.727%]

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

  • 🟥 throughput [-9625.415op/s; -8379.616op/s] or [-9.787%; -8.520%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+311.884ms; +318.919ms] or [+154.768%; +158.259%]
  • 🟥 throughput [-44.089op/s; -40.020op/s] or [-7.932%; -7.200%]

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

  • 🟥 execution_time [+384.744ms; +387.681ms] or [+303.971%; +306.292%]
  • 🟩 throughput [+81.678op/s; +86.495op/s] or [+10.769%; +11.404%]

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

  • 🟥 execution_time [+393.690ms; +395.658ms] or [+348.400%; +350.143%]

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

  • 🟥 allocated_mem [+4.693KB; +4.694KB] or [+98.806%; +98.821%]
  • 🟥 throughput [-60451.725op/s; -60092.758op/s] or [-47.035%; -46.755%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-15.557ms; -11.338ms] or [-7.266%; -5.295%]
  • 🟥 throughput [-59639.684op/s; -56874.148op/s] or [-43.534%; -41.515%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-48402.624op/s; -46136.036op/s] or [-43.762%; -41.712%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-284403.790op/s; -279216.683op/s] or [-29.039%; -28.509%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-26.875ms; -21.978ms] or [-11.985%; -9.801%]
  • 🟥 throughput [-75418.888op/s; -52990.983op/s] or [-8.057%; -5.661%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-158198.010op/s; -141679.105op/s] or [-22.730%; -20.357%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-73105.388op/s; -72345.132op/s] or [-49.199%; -48.687%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-74065.829op/s; -71159.569op/s] or [-47.127%; -45.278%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56748.016op/s; -54096.003op/s] or [-45.207%; -43.094%]

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

  • 🟩 throughput [+229793.638op/s; +277599.514op/s] or [+7.662%; +9.256%]

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

  • 🟩 execution_time [-18.987ms; -14.653ms] or [-8.753%; -6.755%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.288ms; +301.018ms] or [+150.044%; +150.408%]
  • 🟩 throughput [+993.259op/s; +1014.510op/s] or [+10.970%; +11.205%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.099ms; +302.527ms] or [+150.836%; +152.565%]
  • 🟩 throughput [+2275.491op/s; +2491.920op/s] or [+17.404%; +19.059%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.147ms; +302.584ms] or [+151.191%; +152.418%]
  • 🟩 throughput [+1793.584op/s; +1918.672op/s] or [+17.316%; +18.524%]

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

  • 🟥 execution_time [+298.262ms; +299.558ms] or [+146.494%; +147.131%]
  • 🟩 throughput [+577.407op/s; +589.917op/s] or [+15.307%; +15.639%]

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

  • 🟥 execution_time [+294.401ms; +297.898ms] or [+143.922%; +145.631%]
  • 🟩 throughput [+2761.313op/s; +2810.688op/s] or [+40.117%; +40.834%]

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

  • 🟥 execution_time [+300.086ms; +301.073ms] or [+149.982%; +150.476%]
  • 🟩 throughput [+1440.171op/s; +1458.861op/s] or [+28.586%; +28.957%]

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

  • 🟩 execution_time [-144.811µs; -139.861µs] or [-29.732%; -28.715%]
  • 🟩 throughput [+831.324op/s; +866.515op/s] or [+40.489%; +42.203%]

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

  • 🟩 execution_time [-140.184µs; -113.534µs] or [-32.151%; -26.039%]
  • 🟩 throughput [+874.134op/s; +996.202op/s] or [+38.004%; +43.311%]

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

  • 🟩 execution_time [-142.062µs; -120.050µs] or [-30.437%; -25.721%]
  • 🟩 throughput [+771.678op/s; +854.754op/s] or [+35.622%; +39.457%]

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

  • 🟩 execution_time [-127.528µs; -123.124µs] or [-34.432%; -33.243%]
  • 🟩 throughput [+1356.033op/s; +1408.728op/s] or [+50.221%; +52.173%]

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

  • 🟩 execution_time [-102.633µs; -79.021µs] or [-32.766%; -25.227%]
  • 🟩 throughput [+1188.433op/s; +1390.850op/s] or [+37.047%; +43.357%]

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

  • 🟩 execution_time [-137.990µs; -115.610µs] or [-37.749%; -31.626%]
  • 🟩 throughput [+1334.350op/s; +1470.946op/s] or [+47.885%; +52.786%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.090ms; +300.825ms] or [+149.776%; +150.143%]

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

  • 🟥 execution_time [+405.838ms; +410.868ms] or [+440.960%; +446.425%]
  • 🟩 throughput [+919.137op/s; +1094.829op/s] or [+7.553%; +8.996%]

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

  • 🟥 execution_time [+367.862ms; +374.155ms] or [+279.315%; +284.092%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+345.923ms; +407.388ms] or [+159.052%; +187.313%]
  • 🟥 throughput [-589.763op/s; -524.953op/s] or [-53.438%; -47.566%]

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

  • unstable execution_time [+204.496ms; +337.810ms] or [+87.148%; +143.961%]
  • 🟥 throughput [-674.188op/s; -590.716op/s] or [-44.969%; -39.401%]

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

  • 🟥 execution_time [+337.730ms; +347.860ms] or [+202.002%; +208.061%]
  • 🟥 throughput [-455.344op/s; -420.850op/s] or [-31.705%; -29.303%]

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

  • 🟥 execution_time [+76.647µs; +93.299µs] or [+5.265%; +6.409%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.802ms; +302.097ms] or [+151.478%; +152.130%]

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

  • 🟥 execution_time [+299.807ms; +302.594ms] or [+150.234%; +151.631%]

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

  • 🟥 execution_time [+303.729ms; +307.639ms] or [+152.581%; +154.545%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.735ms; +303.087ms] or [+151.521%; +152.200%]

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

  • 🟥 execution_time [+296.080ms; +300.156ms] or [+146.398%; +148.414%]

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

  • 🟥 execution_time [+303.150ms; +307.511ms] or [+153.650%; +155.860%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.698ms; +303.505ms] or [+151.425%; +152.332%]

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

  • 🟥 execution_time [+298.432ms; +300.980ms] or [+148.741%; +150.011%]
  • 🟩 throughput [+38469.611op/s; +47189.946op/s] or [+7.639%; +9.370%]

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

  • 🟥 execution_time [+298.191ms; +302.550ms] or [+148.347%; +150.516%]

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

  • 🟩 execution_time [-16.633ms; -12.972ms] or [-7.735%; -6.032%]

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

  • unstable execution_time [+14.539µs; +58.144µs] or [+3.591%; +14.362%]

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

  • 🟩 allocated_mem [-19.403KB; -19.379KB] or [-7.078%; -7.069%]
  • unstable execution_time [-41.294µs; +15.817µs] or [-8.162%; +3.126%]

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

  • unstable execution_time [-47.585µs; +13.780µs] or [-8.246%; +2.388%]

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

  • unstable execution_time [+8.944µs; +13.834µs] or [+21.142%; +32.700%]
  • 🟥 throughput [-5882.514op/s; -3944.423op/s] or [-24.764%; -16.605%]

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

  • unstable execution_time [-14.837µs; -7.377µs] or [-23.018%; -11.446%]
  • 🟩 throughput [+1857.403op/s; +3478.935op/s] or [+11.396%; +21.344%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.434ms; +303.128ms] or [+152.361%; +153.218%]

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

  • 🟥 execution_time [+300.322ms; +302.992ms] or [+152.863%; +154.222%]

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

  • 🟥 execution_time [+299.384ms; +302.419ms] or [+149.879%; +151.398%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-32221.553op/s; -30451.702op/s] or [-8.920%; -8.430%]

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

  • 🟩 throughput [+36261.816op/s; +41033.181op/s] or [+6.864%; +7.767%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.016ms; +301.016ms] or [+149.033%; +150.029%]

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

  • 🟥 execution_time [+302.018ms; +309.701ms] or [+151.659%; +155.517%]

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

  • 🟥 execution_time [+304.297ms; +306.844ms] or [+154.320%; +155.612%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.428ms; +300.442ms] or [+149.356%; +149.862%]
  • 🟩 throughput [+61035518.778op/s; +61452312.867op/s] or [+44.450%; +44.753%]

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

  • 🟥 execution_time [+418.686ms; +424.273ms] or [+520.711%; +527.659%]

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

  • 🟥 execution_time [+299.575ms; +300.679ms] or [+149.421%; +149.972%]

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

  • 🟩 throughput [+60345.889op/s; +74126.989op/s] or [+5.634%; +6.921%]

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

  • 🟩 throughput [+69606.378op/s; +102014.187op/s] or [+5.388%; +7.896%]

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

  • 🟩 throughput [+66022.215op/s; +75503.398op/s] or [+6.557%; +7.499%]

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

  • 🟩 throughput [+38950.936op/s; +47009.664op/s] or [+7.073%; +8.536%]

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

  • 🟩 throughput [+24872.167op/s; +34480.391op/s] or [+5.567%; +7.718%]

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

  • 🟩 throughput [+70293.135op/s; +88316.683op/s] or [+7.853%; +9.867%]

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 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 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.StartFinishScope netcoreapp3.1
  • 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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected

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

@dromanol
dromanol marked this pull request as draft August 12, 2026 11:56
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.

1 participant