Skip to content

feat(telemetry): report Quartz and Azure Service Bus spans - #9183

Draft
chojomok wants to merge 8 commits into
masterfrom
activity-handler-integration-telemetry
Draft

feat(telemetry): report Quartz and Azure Service Bus spans#9183
chojomok wants to merge 8 commits into
masterfrom
activity-handler-integration-telemetry

Conversation

@chojomok

@chojomok chojomok commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Change it so Quartz and Azure Service Bus Activity spans have their own telemetry integrations, rather than reporting them under OpenTelemetry.

Purpose

This is expected to expose distinct spans_created telemetry series for Quartz and Azure Service Bus while keeping the generic Activity handler attributed to OpenTelemetry.

Changes Made

  • Add the Quartz integration and its integration_name:quartz telemetry mapping.
  • Attribute Azure Service Bus Activity spans with the existing integration_name:azureservicebus telemetry mapping.
  • Pass each Activity handler's integration ID through the shared span-creation path.
  • Attribute Quartz v3 job Activities from the Quartz diagnostic observer, which is where that version identifies the Activity as a Quartz job.
  • Honor DD_TRACE_QUARTZ_ENABLED and DD_TRACE_AZURESERVICEBUS_ENABLED in their respective Activity handlers. Setting either to false disables that integration's specialized Activity handling; the generic Activity path continues to be controlled by DD_TRACE_OTEL_ENABLED.
  • Apply each handler integration's configured analytics sample rate to its spans.

Impact & Blast Radius

  • Affected Components: Quartz and Azure Service Bus Activity handlers, Quartz diagnostic observer, and instrumentation telemetry.
  • Risk: Low; span data is unchanged when integrations are enabled. Telemetry attribution becomes more specific.
  • Potential Side Effects: Existing OpenTelemetry span-created totals no longer include Quartz or Azure Service Bus spans handled by their specialized integrations. Disabling either integration now causes its specialized handler to defer to the generic OpenTelemetry Activity path.

How to Test & Measure

  1. Automated Tests: Existing integration test now check for await telemetry.AssertIntegrationEnabledAsync(IntegrationId.Quartz); and await telemetry.AssertIntegrationEnabledAsync(IntegrationId.AzureServiceBus); instead of await telemetry.AssertIntegrationEnabledAsync(IntegrationId.OpenTelemetry);

  2. Expected Metrics Behavior: dd.instrumentation_telemetry_data.tracers.spans_created should include integration_name:quartz and integration_name:azureservicebus. This PR does not add a direct assertion for those metric tags.

@chojomok
chojomok requested review from a team as code owners September 4, 2026 19:27
@chojomok
chojomok requested review from anna-git and vandonr and removed request for a team September 4, 2026 19:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T19:32:27.247511Z f2c9a34 PR opened
🔒 Security Review Completed 2026-09-04T19:32:12.350413Z f2c9a34 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: f2c9a3465f

ℹ️ 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".

Comment thread tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs
Comment thread tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs Outdated
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected

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

chojomok and others added 3 commits September 4, 2026 16:14
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@chojomok
chojomok marked this pull request as draft September 4, 2026 20:30
@pr-commenter

pr-commenter Bot commented Sep 4, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-09-04 21:28:32

Comparing candidate commit 47f2406 in PR branch activity-handler-integration-telemetry with baseline commit a700999 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 46 performance regressions! Performance is the same for 26 metrics, 0 unstable metrics, 111 known flaky benchmarks, 15 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.StartActiveSpan net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-40423.067op/s; -38661.364op/s] or [-20.727%; -19.824%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-49576.389op/s; -45683.261op/s] or [-17.832%; -16.432%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-37291.100op/s; -35268.323op/s] or [-17.073%; -16.147%]

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

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-34547.322op/s; -33487.558op/s] or [-18.378%; -17.814%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-49760.348op/s; -45817.834op/s] or [-17.879%; -16.462%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-36718.952op/s; -34493.624op/s] or [-16.845%; -15.824%]

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

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-32884.811op/s; -31781.365op/s] or [-17.603%; -17.012%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-45797.181op/s; -40911.869op/s] or [-16.667%; -14.889%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-39481.593op/s; -37790.906op/s] or [-17.968%; -17.198%]

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

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-29335.904op/s; -28347.055op/s] or [-15.817%; -15.284%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-42941.067op/s; -40312.577op/s] or [-15.600%; -14.645%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-38230.620op/s; -36041.010op/s] or [-17.859%; -16.836%]

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

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+13.017%; +13.024%]
  • 🟥 throughput [-27271.306op/s; -25579.135op/s] or [-16.120%; -15.120%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+6.549%; +6.557%]
  • 🟥 throughput [-38679.606op/s; -35136.275op/s] or [-15.503%; -14.082%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+6.383%; +6.390%]
  • 🟥 throughput [-31715.784op/s; -28444.786op/s] or [-16.163%; -14.496%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+25.445%; +25.457%]
  • 🟥 throughput [-84973.873op/s; -82020.177op/s] or [-23.933%; -23.101%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.750%; +9.761%]
  • 🟥 throughput [-102501.379op/s; -91516.650op/s] or [-19.448%; -17.364%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.830%; +9.841%]
  • 🟥 throughput [-88043.825op/s; -79717.307op/s] or [-21.762%; -19.704%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 allocated_mem [+304 bytes; +305 bytes] or [+10.472%; +10.483%]
  • 🟥 throughput [-12793.024op/s; -12284.484op/s] or [-14.604%; -14.024%]

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

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+9.426%; +9.438%]
  • 🟥 throughput [-10384.441op/s; -8778.329op/s] or [-7.054%; -5.963%]

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

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+7.569%; +7.581%]
  • 🟥 throughput [-13093.391op/s; -11797.585op/s] or [-10.390%; -9.362%]

scenario:Benchmarks.Trace.NLogBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+11.667%; +11.680%]
  • 🟥 throughput [-15280.165op/s; -14427.138op/s] or [-11.705%; -11.052%]

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

  • 🟥 throughput [-17776.873op/s; -13322.864op/s] or [-8.913%; -6.680%]

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

  • 🟥 throughput [-14560.467op/s; -12556.292op/s] or [-9.775%; -8.430%]

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.ActivityBenchmark.StartSpan net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+17.075%; +17.084%]
  • 🟥 throughput [-38792.863op/s; -37373.397op/s] or [-19.614%; -18.897%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.519%; +8.526%]
  • 🟥 throughput [-49108.527op/s; -47055.913op/s] or [-16.811%; -16.108%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1

  • 🟥 allocated_mem [+120 bytes; +120 bytes] or [+8.244%; +8.250%]
  • 🟥 throughput [-39278.314op/s; -36521.990op/s] or [-17.836%; -16.584%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472

  • 🟥 allocated_mem [+279 bytes; +280 bytes] or [+14.293%; +14.302%]
  • 🟥 throughput [-30888.445op/s; -29090.419op/s] or [-17.739%; -16.706%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+7.007%; +7.014%]
  • 🟥 throughput [-49282.549op/s; -42829.679op/s] or [-18.907%; -16.431%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+6.814%; +6.822%]
  • 🟥 throughput [-32292.251op/s; -30308.556op/s] or [-16.306%; -15.304%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+17.075%; +17.084%]
  • 🟥 throughput [-33578.836op/s; -30908.330op/s] or [-17.979%; -16.549%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.519%; +8.526%]
  • 🟥 throughput [-53083.047op/s; -48622.371op/s] or [-17.918%; -16.413%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+120 bytes; +120 bytes] or [+8.244%; +8.250%]
  • 🟥 throughput [-35818.926op/s; -34662.111op/s] or [-16.387%; -15.857%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+11.080%; +11.088%]
  • 🟥 throughput [-21678.049op/s; -20439.088op/s] or [-14.218%; -13.405%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • 🟥 throughput [-33309.145op/s; -29824.765op/s] or [-14.427%; -12.918%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • 🟥 throughput [-26200.560op/s; -24460.686op/s] or [-14.769%; -13.788%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+17.075%; +17.084%]
  • 🟥 throughput [-31470.443op/s; -29983.073op/s] or [-16.045%; -15.287%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.519%; +8.526%]
  • 🟥 throughput [-53369.247op/s; -49065.316op/s] or [-17.573%; -16.156%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+120 bytes; +120 bytes] or [+8.244%; +8.250%]
  • 🟥 throughput [-39130.718op/s; -36173.712op/s] or [-17.590%; -16.261%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+17.075%; +17.084%]
  • 🟥 throughput [-29376.547op/s; -28498.811op/s] or [-15.367%; -14.908%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.519%; +8.526%]
  • 🟥 throughput [-47321.059op/s; -41600.843op/s] or [-16.009%; -14.074%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+120 bytes; +120 bytes] or [+8.244%; +8.250%]
  • 🟥 throughput [-37566.635op/s; -34643.700op/s] or [-16.887%; -15.573%]

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

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-31243.695op/s; -28670.247op/s] or [-16.870%; -15.480%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-49795.657op/s; -44489.492op/s] or [-17.994%; -16.077%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-30748.312op/s; -28928.890op/s] or [-14.720%; -13.849%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+13.518%; +13.526%]
  • 🟥 throughput [-23890.597op/s; -22632.399op/s] or [-15.056%; -14.263%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+6.909%; +6.918%]
  • unstable execution_time [-29.826ms; -8.047ms] or [-14.918%; -4.025%]
  • 🟥 throughput [-43475.155op/s; -39062.668op/s] or [-17.971%; -16.147%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+6.723%; +6.731%]
  • 🟥 throughput [-31399.912op/s; -27327.729op/s] or [-16.317%; -14.201%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-32746.839op/s; -31113.090op/s] or [-17.878%; -16.987%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-32847.643op/s; -29431.336op/s] or [-12.457%; -11.161%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-37060.441op/s; -35838.482op/s] or [-17.564%; -16.985%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472

  • 🟥 allocated_mem [+279 bytes; +280 bytes] or [+9.741%; +9.750%]
  • 🟥 throughput [-22380.153op/s; -20512.668op/s] or [-18.125%; -16.613%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • 🟥 throughput [-18623.147op/s; -15783.014op/s] or [-10.732%; -9.095%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1

  • 🟥 throughput [-15844.180op/s; -14311.658op/s] or [-10.958%; -9.898%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472

  • 🟥 allocated_mem [+239 bytes; +240 bytes] or [+10.456%; +10.464%]
  • 🟥 throughput [-20349.311op/s; -19017.642op/s] or [-14.009%; -13.092%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • 🟥 throughput [-23249.429op/s; -20276.671op/s] or [-10.855%; -9.467%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • 🟩 execution_time [-34.963ms; -16.778ms] or [-17.504%; -8.399%]
  • 🟥 throughput [-23482.113op/s; -22224.257op/s] or [-13.640%; -12.909%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +280 bytes] or [+15.220%; +15.228%]
  • 🟥 throughput [-27681.132op/s; -26541.810op/s] or [-15.789%; -15.139%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • 🟥 allocated_mem [+120 bytes; +120 bytes] or [+7.937%; +7.945%]
  • 🟥 throughput [-33425.624op/s; -29142.233op/s] or [-13.311%; -11.605%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+7.686%; +7.694%]
  • 🟥 throughput [-34968.549op/s; -31224.976op/s] or [-17.581%; -15.698%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472

  • 🟥 allocated_mem [+280 bytes; +281 bytes] or [+15.918%; +15.927%]
  • 🟥 throughput [-23764.284op/s; -22390.390op/s] or [-12.996%; -12.245%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.376%; +8.383%]
  • 🟥 throughput [-44914.575op/s; -39266.863op/s] or [-16.186%; -14.150%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • 🟥 allocated_mem [+119 bytes; +120 bytes] or [+8.104%; +8.113%]
  • 🟥 throughput [-39849.204op/s; -37706.508op/s] or [-17.940%; -16.976%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 allocated_mem [+384 bytes; +385 bytes] or [+9.870%; +9.883%]
  • 🟥 throughput [-17720.360op/s; -17224.326op/s] or [-21.011%; -20.423%]

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

  • 🟥 allocated_mem [+207 bytes; +208 bytes] or [+6.334%; +6.347%]
  • 🟥 throughput [-13363.643op/s; -11066.838op/s] or [-11.233%; -9.302%]

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

  • 🟥 allocated_mem [+207 bytes; +208 bytes] or [+5.990%; +6.001%]
  • unstable execution_time [-31.607ms; -6.667ms] or [-15.897%; -3.353%]
  • 🟥 throughput [-16668.157op/s; -15072.548op/s] or [-16.948%; -15.325%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.541KB; +1.541KB] or [+46.817%; +46.831%]
  • 🟥 execution_time [+308.560ms; +311.511ms] or [+153.118%; +154.583%]
  • 🟥 throughput [-57.501op/s; -53.144op/s] or [-10.346%; -9.562%]

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

  • 🟥 allocated_mem [+1.012KB; +1.012KB] or [+37.524%; +37.537%]
  • 🟥 execution_time [+376.491ms; +380.330ms] or [+297.451%; +300.484%]
  • 🟩 throughput [+70.063op/s; +73.273op/s] or [+9.237%; +9.661%]

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

  • 🟥 allocated_mem [+1.088KB; +1.088KB] or [+40.343%; +40.355%]
  • 🟥 execution_time [+392.069ms; +396.910ms] or [+346.966%; +351.250%]

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

  • 🟥 allocated_mem [+4.742KB; +4.742KB] or [+99.823%; +99.838%]
  • 🟥 throughput [-60380.604op/s; -60005.287op/s] or [-46.979%; -46.687%]

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

  • 🟥 allocated_mem [+3.864KB; +3.864KB] or [+81.715%; +81.730%]
  • 🟩 execution_time [-16.159ms; -11.963ms] or [-7.547%; -5.587%]
  • 🟥 throughput [-60215.815op/s; -57459.247op/s] or [-43.954%; -41.942%]

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

  • 🟥 allocated_mem [+4.592KB; +4.592KB] or [+99.295%; +99.306%]
  • 🟥 throughput [-49234.347op/s; -46966.081op/s] or [-44.514%; -42.463%]

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

  • 🟥 allocated_mem [+1.364KB; +1.364KB] or [+110.358%; +110.374%]
  • 🟥 throughput [-274096.031op/s; -271054.995op/s] or [-27.987%; -27.676%]

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

  • 🟥 allocated_mem [+527 bytes; +528 bytes] or [+43.133%; +43.143%]
  • 🟩 execution_time [-26.265ms; -21.420ms] or [-11.713%; -9.552%]
  • 🟥 throughput [-126190.001op/s; -103704.563op/s] or [-13.481%; -11.079%]

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

  • 🟥 allocated_mem [+1.328KB; +1.328KB] or [+109.927%; +109.941%]
  • 🟥 throughput [-164557.382op/s; -148369.149op/s] or [-23.644%; -21.318%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72936.508op/s; -72172.274op/s] or [-49.085%; -48.571%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-72447.406op/s; -69564.138op/s] or [-46.097%; -44.263%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56667.826op/s; -54051.116op/s] or [-45.143%; -43.059%]

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

  • 🟩 throughput [+302481.521op/s; +323288.927op/s] or [+10.086%; +10.780%]

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

  • 🟩 execution_time [-19.168ms; -14.832ms] or [-8.836%; -6.837%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.016ms; +300.765ms] or [+149.908%; +150.282%]
  • 🟩 throughput [+958.174op/s; +1009.087op/s] or [+10.583%; +11.145%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.491ms; +309.513ms] or [+151.034%; +156.088%]
  • 🟩 throughput [+2225.207op/s; +2548.444op/s] or [+17.020%; +19.492%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.793ms; +303.600ms] or [+151.516%; +152.930%]
  • 🟩 throughput [+1736.843op/s; +1871.605op/s] or [+16.768%; +18.069%]

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

  • 🟥 execution_time [+296.785ms; +298.312ms] or [+145.769%; +146.519%]
  • 🟩 throughput [+585.482op/s; +592.774op/s] or [+15.521%; +15.715%]

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

  • 🟥 execution_time [+298.618ms; +301.556ms] or [+145.983%; +147.420%]
  • 🟩 throughput [+2723.171op/s; +2787.506op/s] or [+39.563%; +40.497%]

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

  • 🟥 execution_time [+302.590ms; +303.416ms] or [+151.234%; +151.647%]
  • 🟩 throughput [+1422.459op/s; +1439.351op/s] or [+28.235%; +28.570%]

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

  • 🟩 execution_time [-145.542µs; -140.878µs] or [-29.882%; -28.924%]
  • 🟩 throughput [+839.548op/s; +872.677op/s] or [+40.890%; +42.503%]

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

  • 🟩 execution_time [-137.265µs; -110.418µs] or [-31.482%; -25.324%]
  • 🟩 throughput [+841.820op/s; +968.103op/s] or [+36.599%; +42.089%]

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

  • 🟩 execution_time [-141.846µs; -119.702µs] or [-30.391%; -25.647%]
  • 🟩 throughput [+768.367op/s; +854.013op/s] or [+35.469%; +39.423%]

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

  • 🟩 execution_time [-128.363µs; -124.065µs] or [-34.657%; -33.497%]
  • 🟩 throughput [+1371.642op/s; +1422.465op/s] or [+50.799%; +52.681%]

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

  • 🟩 execution_time [-103.449µs; -79.862µs] or [-33.026%; -25.496%]
  • 🟩 throughput [+1205.434op/s; +1406.833op/s] or [+37.577%; +43.855%]

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

  • 🟩 execution_time [-136.092µs; -113.368µs] or [-37.229%; -31.013%]
  • 🟩 throughput [+1295.489op/s; +1443.827op/s] or [+46.490%; +51.813%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.775ms; +300.531ms] or [+149.619%; +149.996%]

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

  • 🟥 execution_time [+406.736ms; +414.017ms] or [+441.936%; +449.846%]
  • 🟩 throughput [+686.461op/s; +944.170op/s] or [+5.641%; +7.758%]

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

  • unstable execution_time [+159.446ms; +211.725ms] or [+121.066%; +160.761%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+186.472ms; +240.374ms] or [+85.738%; +110.522%]
  • 🟥 throughput [-561.975op/s; -498.442op/s] or [-50.920%; -45.164%]

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

  • unstable execution_time [+148.829ms; +295.316ms] or [+63.425%; +125.851%]
  • 🟥 throughput [-672.134op/s; -588.709op/s] or [-44.832%; -39.267%]

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

  • 🟥 execution_time [+327.752ms; +336.533ms] or [+196.033%; +201.286%]
  • 🟥 throughput [-383.192op/s; -347.577op/s] or [-26.681%; -24.201%]

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

  • 🟩 execution_time [-170.607µs; -135.474µs] or [-8.642%; -6.863%]
  • 🟩 throughput [+38.315op/s; +48.008op/s] or [+7.564%; +9.477%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+30.047%; +30.058%]
  • 🟥 execution_time [+301.377ms; +304.130ms] or [+151.768%; +153.154%]
  • 🟥 throughput [-66207.192op/s; -63128.876op/s] or [-21.304%; -20.313%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+299.254ms; +301.853ms] or [+149.957%; +151.259%]
  • 🟥 throughput [-144753.763op/s; -141350.186op/s] or [-22.822%; -22.285%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+301.770ms; +305.042ms] or [+151.596%; +153.240%]
  • 🟥 throughput [-101484.918op/s; -94041.619op/s] or [-21.378%; -19.810%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 allocated_mem [+239 bytes; +240 bytes] or [+27.931%; +27.943%]
  • 🟥 execution_time [+300.976ms; +302.599ms] or [+151.140%; +151.955%]
  • 🟥 throughput [-71435.212op/s; -68055.448op/s] or [-23.932%; -22.800%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.493%; +12.506%]
  • 🟥 execution_time [+297.852ms; +300.002ms] or [+147.275%; +148.338%]
  • 🟥 throughput [-141654.332op/s; -136715.665op/s] or [-22.823%; -22.028%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+11.422%; +11.434%]
  • 🟥 execution_time [+303.372ms; +307.910ms] or [+153.762%; +156.062%]
  • 🟥 throughput [-102350.048op/s; -94168.684op/s] or [-22.102%; -20.335%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+27.818%; +27.830%]
  • 🟥 execution_time [+301.193ms; +303.355ms] or [+151.172%; +152.257%]
  • 🟥 throughput [-98984.174op/s; -96614.722op/s] or [-25.679%; -25.064%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.618%; +10.631%]
  • 🟥 execution_time [+302.074ms; +309.988ms] or [+150.556%; +154.501%]
  • 🟥 throughput [-93741.846op/s; -84920.246op/s] or [-18.614%; -16.862%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.618%; +10.631%]
  • 🟥 execution_time [+298.652ms; +302.294ms] or [+148.577%; +150.389%]
  • 🟥 throughput [-85367.452op/s; -80256.795op/s] or [-20.207%; -18.997%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+14.910%; +14.920%]
  • 🟥 throughput [-38092.582op/s; -36972.421op/s] or [-15.318%; -14.868%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.627%; +5.636%]
  • 🟩 execution_time [-15.500ms; -11.775ms] or [-7.208%; -5.475%]
  • 🟥 throughput [-35417.191op/s; -28709.958op/s] or [-9.716%; -7.876%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.605%; +5.617%]
  • 🟥 throughput [-28814.174op/s; -23124.039op/s] or [-10.518%; -8.441%]

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

  • unstable execution_time [+2.436µs; +44.775µs] or [+0.602%; +11.060%]

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

  • 🟩 allocated_mem [-18.272KB; -18.251KB] or [-6.665%; -6.658%]
  • unstable execution_time [-31.592µs; +23.210µs] or [-6.244%; +4.587%]

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

  • 🟩 allocated_mem [-17.063KB; -17.044KB] or [-6.220%; -6.213%]
  • unstable execution_time [-71.822µs; -11.367µs] or [-12.446%; -1.970%]

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

  • 🟥 execution_time [+6.525µs; +10.354µs] or [+15.423%; +24.473%]
  • 🟥 throughput [-4852.923op/s; -3091.440op/s] or [-20.429%; -13.014%]

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

  • unstable execution_time [-15.752µs; -8.238µs] or [-24.438%; -12.781%]
  • 🟩 throughput [+2185.494op/s; +3787.555op/s] or [+13.409%; +23.238%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+243 bytes; +244 bytes] or [+5.387%; +5.400%]
  • 🟥 execution_time [+302.519ms; +304.306ms] or [+152.910%; +153.813%]

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

  • 🟥 execution_time [+303.920ms; +306.206ms] or [+154.694%; +155.858%]

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

  • 🟥 execution_time [+299.822ms; +302.338ms] or [+150.098%; +151.358%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+23.099%; +23.110%]
  • 🟥 throughput [-93799.848op/s; -92367.073op/s] or [-25.966%; -25.570%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.226%; +9.238%]
  • 🟥 throughput [-86795.030op/s; -82454.914op/s] or [-16.428%; -15.607%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.226%; +9.238%]
  • 🟥 throughput [-89072.445op/s; -81091.630op/s] or [-21.081%; -19.192%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+239 bytes; +240 bytes] or [+11.747%; +11.759%]
  • 🟥 execution_time [+298.315ms; +300.356ms] or [+148.683%; +149.700%]
  • 🟥 throughput [-19033.015op/s; -17574.599op/s] or [-12.568%; -11.605%]

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

  • 🟥 allocated_mem [+96 bytes; +96 bytes] or [+6.000%; +6.010%]
  • 🟥 execution_time [+301.415ms; +310.739ms] or [+151.356%; +156.038%]
  • 🟥 throughput [-19355.173op/s; -15639.114op/s] or [-8.417%; -6.801%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.819%; +5.828%]
  • 🟥 execution_time [+301.568ms; +304.186ms] or [+152.936%; +154.263%]
  • 🟥 throughput [-17639.886op/s; -15613.134op/s] or [-9.935%; -8.794%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.476ms; +301.362ms] or [+149.879%; +150.321%]
  • 🟩 throughput [+65670728.770op/s; +66000324.747op/s] or [+47.826%; +48.066%]

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

  • unstable execution_time [+268.793ms; +349.938ms] or [+334.292%; +435.211%]

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

  • 🟥 execution_time [+298.866ms; +299.956ms] or [+149.067%; +149.611%]
  • 🟩 throughput [+17849559.135op/s; +18835634.659op/s] or [+7.906%; +8.343%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • 🟥 throughput [-117448.630op/s; -113434.256op/s] or [-13.107%; -12.659%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • 🟥 throughput [-167065.572op/s; -162280.265op/s] or [-15.293%; -14.855%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • 🟥 throughput [-25894.731op/s; -22998.740op/s] or [-5.769%; -5.124%]

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

  • 🟩 throughput [+28100.533op/s; +32449.564op/s] or [+5.103%; +5.892%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 allocated_mem [+240 bytes; +241 bytes] or [+39.501%; +39.515%]
  • 🟥 throughput [-235415.272op/s; -231060.596op/s] or [-34.454%; -33.817%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+14.810%; +14.823%]
  • 🟥 throughput [-202237.617op/s; -185506.095op/s] or [-22.595%; -20.726%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+14.810%; +14.821%]
  • 🟥 throughput [-190521.886op/s; -175417.171op/s] or [-26.602%; -24.493%]

Known flaky benchmarks without significant changes:

  • 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.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

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

Thanks!

Comment on lines +248 to +250
#pragma warning disable 618 // App analytics is deprecated, but still used
span.SetMetric(Trace.Tags.Analytics, Tracer.Instance.CurrentTraceSettings.Settings.GetIntegrationAnalyticsSampleRate(integrationId, enabledWithGlobalSetting: false));
#pragma warning restore 618

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.

I wonder why we weren't doing this before for the otel integration ID? 🤔 Just an oversight I guess?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

honestly I don't know why this was added

span.SetMetric(Trace.Tags.Analytics, Tracer.Instance.CurrentTraceSettings.Settings.GetIntegrationAnalyticsSampleRate(integrationId, enabledWithGlobalSetting: false));

I'm going to remove this as we shouldn't be adding more things to support a deprecated feature.

@anna-git anna-git 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.

Left one comment.

if (activity?.Instance is not null)
{
QuartzCommon.EnhanceActivityMetadata(activity);
Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(IntegrationId.Quartz);

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.

Quartz v3 spans may be double-counted in spans_created

Quartz 3.x builds its Activity via the classic DiagnosticListener.StartActivity() API, not an ActivitySource. That means Activity.Source.Name is "" (confirmed with a quick standalone repro), so:

  • QuartzActivityHandler.ShouldListenTo (sourceName.StartsWith("Quartz")) never matches → the Activity falls through to DefaultActivityHandler, which claims it under IntegrationId.OpenTelemetry and calls IntegrationGeneratedSpan(OpenTelemetry).
  • The new call in QuartzDiagnosticObserver.OnNext (line 54) then fires IntegrationGeneratedSpan(Quartz) for that same Activity, since it listens on the "Quartz.Job.Execute.Start" diagnostic event which fires after the Activity already started.

Both calls increment the real spans_created counter (RecordCountSpanCreated, not deduplicated). So one v3 span ends up counted twice — once as opentelemetry, once as quartz — which contradicts the PR description's claim that OpenTelemetry totals won't include Quartz spans anymore.

Worth confirming against the real Quartz v3 test, but the mechanism checks out.

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