Skip to content

[Feature Flags] Bind discovery results to the Agent endpoint - #9352

Merged
leoromanovsky merged 2 commits into
masterfrom
leo.romanovsky/fflsdk-189-dotnet-discovery
Oct 8, 2026
Merged

leoromanovsky merged 2 commits into
masterfrom
leo.romanovsky/fflsdk-189-dotnet-discovery

Conversation

@leoromanovsky

@leoromanovsky leoromanovsky commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Changing the Agent endpoint at runtime must not make the SDK trust capabilities learned from the previous Agent. Cached configuration and late responses currently cross that boundary, which can misroute telemetry or lose its producer identity.

flowchart LR
    A[Old Agent request] --> C[Cached capabilities]
    E[Endpoint changes] -. missing invalidation .-> C
    C --> B[Replacement Agent]
Loading

Changes and Decisions

Bind each discovery result to the immutable exporter settings used for its request. Replacing the endpoint clears cached configuration and refresh hashes; late responses from the old endpoint cannot publish capabilities or hashes. An identical response from the replacement still notifies consumers.

Discovery also reports whether the relay forwards both EVP producer-identity headers. This exposes a capability; it does not change any product's route selection or enable direct intake.

This is the foundation of the delivery stack: discovery here, bounded exposure lifecycle in #9353, then Agentless fallback in #9235.

flowchart LR
    E[Current exporter settings] --> R[Discovery request]
    R --> G{Still current?}
    G -->|Yes| C[Publish capabilities for this endpoint]
    G -->|No| D[Discard old response]
Loading

Invalidate cached capabilities on endpoint replacement and reject stale responses before publishing configuration or hashes. Report EVP identity-header forwarding support without changing product routing.

Environment: Datadog workspace
@linear-code

linear-code Bot commented Oct 1, 2026

Copy link
Copy Markdown

FFLSDK-189

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-10-01T22:58:32.252469Z b16a7dc Draft marked ready
🔒 Security Review ✅ Completed 2026-10-01T22:57:32.931273Z b16a7dc Draft marked ready
ℹ️ 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: b16a7dcc32

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

@pr-commenter

pr-commenter Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-10-07 17:03:01

Comparing candidate commit 12a4638 in PR branch leo.romanovsky/fflsdk-189-dotnet-discovery with baseline commit 843640c in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 12 performance regressions! Performance is the same for 60 metrics, 0 unstable metrics, 76 known flaky benchmarks, 50 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.133%; +10.144%]
  • 🟥 throughput [-36633.845op/s; -33881.064op/s] or [-10.318%; -9.543%]

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 [-35321.927op/s; -23589.837op/s] or [-8.731%; -5.831%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 allocated_mem [+272 bytes; +273 bytes] or [+9.374%; +9.385%]
  • 🟥 throughput [-12919.570op/s; -12133.411op/s] or [-14.749%; -13.851%]

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

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+9.426%; +9.438%]
  • 🟥 throughput [-8961.611op/s; -8071.525op/s] or [-6.088%; -5.483%]

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

  • 🟥 allocated_mem [+199 bytes; +200 bytes] or [+7.569%; +7.581%]
  • 🟥 throughput [-12503.995op/s; -11082.185op/s] or [-9.923%; -8.794%]

scenario:Benchmarks.Trace.NLogBenchmark.EnrichedLog net472

  • 🟥 throughput [-7797.534op/s; -6595.652op/s] or [-5.973%; -5.052%]

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 [-9099.191op/s; -8648.099op/s] or [-10.789%; -10.254%]

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

  • 🟥 throughput [-8952.184op/s; -6162.310op/s] or [-7.525%; -5.180%]

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

  • 🟥 throughput [-11770.626op/s; -10487.199op/s] or [-11.968%; -10.663%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.573KB; +1.573KB] or [+47.789%; +47.804%]
  • 🟥 execution_time [+308.254ms; +310.758ms] or [+152.966%; +154.209%]
  • 🟥 throughput [-56.855op/s; -52.784op/s] or [-10.229%; -9.497%]

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

  • 🟥 allocated_mem [+1.012KB; +1.012KB] or [+37.524%; +37.537%]
  • 🟥 execution_time [+374.435ms; +376.312ms] or [+295.827%; +297.309%]
  • 🟩 throughput [+68.786op/s; +71.918op/s] or [+9.069%; +9.482%]

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

  • 🟥 allocated_mem [+1.088KB; +1.088KB] or [+40.343%; +40.355%]
  • 🟥 execution_time [+391.184ms; +396.003ms] or [+346.183%; +350.447%]

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

  • 🟥 allocated_mem [+4.756KB; +4.757KB] or [+100.134%; +100.150%]
  • 🟥 throughput [-63695.545op/s; -63281.702op/s] or [-49.558%; -49.236%]

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

  • 🟥 allocated_mem [+3.880KB; +3.880KB] or [+82.058%; +82.072%]
  • 🟩 execution_time [-16.169ms; -11.995ms] or [-7.552%; -5.602%]
  • 🟥 throughput [-61808.208op/s; -59025.436op/s] or [-45.117%; -43.085%]

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

  • 🟥 allocated_mem [+4.608KB; +4.608KB] or [+99.641%; +99.654%]
  • 🟥 throughput [-48997.691op/s; -46731.664op/s] or [-44.300%; -42.251%]

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

  • 🟥 allocated_mem [+1.380KB; +1.380KB] or [+111.648%; +111.662%]
  • 🟥 throughput [-350929.672op/s; -346257.011op/s] or [-35.832%; -35.355%]

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

  • 🟥 allocated_mem [+543 bytes; +544 bytes] or [+44.437%; +44.446%]
  • 🟩 execution_time [-26.334ms; -21.486ms] or [-11.744%; -9.582%]
  • 🟥 throughput [-98840.586op/s; -76438.622op/s] or [-10.559%; -8.166%]

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

  • 🟥 allocated_mem [+1.344KB; +1.344KB] or [+111.253%; +111.267%]
  • 🟥 throughput [-190013.025op/s; -174236.846op/s] or [-27.301%; -25.034%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-77362.363op/s; -76569.865op/s] or [-52.064%; -51.531%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-75621.499op/s; -72732.394op/s] or [-48.117%; -46.278%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-57695.924op/s; -55064.246op/s] or [-45.962%; -43.866%]

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

  • 🟥 throughput [-410158.165op/s; -357633.619op/s] or [-12.478%; -10.880%]

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

  • 🟩 throughput [+227922.296op/s; +260963.609op/s] or [+7.600%; +8.702%]

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

  • 🟩 execution_time [-19.102ms; -14.773ms] or [-8.805%; -6.810%]

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

  • 🟩 allocated_mem [-13.759KB; -13.756KB] or [-42.324%; -42.316%]
  • 🟥 execution_time [+299.405ms; +300.493ms] or [+149.603%; +150.146%]
  • 🟩 throughput [+885.250op/s; +907.847op/s] or [+9.777%; +10.027%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.035ms; +303.409ms] or [+151.308%; +153.010%]
  • 🟩 throughput [+2175.165op/s; +2395.459op/s] or [+16.637%; +18.322%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.763ms; +304.436ms] or [+151.501%; +153.351%]
  • 🟩 throughput [+1749.506op/s; +1891.957op/s] or [+16.891%; +18.266%]

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

  • 🟥 execution_time [+293.484ms; +294.711ms] or [+144.148%; +144.750%]
  • 🟩 throughput [+545.779op/s; +564.140op/s] or [+14.469%; +14.956%]

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

  • 🟥 execution_time [+300.146ms; +302.846ms] or [+146.730%; +148.050%]
  • 🟩 throughput [+2491.329op/s; +2598.471op/s] or [+36.194%; +37.751%]

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

  • 🟥 execution_time [+302.007ms; +302.900ms] or [+150.943%; +151.389%]
  • 🟩 throughput [+1333.378op/s; +1377.155op/s] or [+26.466%; +27.335%]

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

  • 🟩 execution_time [-141.079µs; -136.173µs] or [-28.966%; -27.958%]
  • 🟩 throughput [+800.737op/s; +835.214op/s] or [+38.999%; +40.679%]

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

  • 🟩 execution_time [-110.007µs; -82.883µs] or [-25.230%; -19.009%]
  • 🟩 throughput [+582.837op/s; +711.957op/s] or [+25.339%; +30.953%]

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

  • 🟩 execution_time [-140.879µs; -118.857µs] or [-30.184%; -25.465%]
  • 🟩 throughput [+761.093op/s; +844.405op/s] or [+35.134%; +38.979%]

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

  • 🟩 execution_time [-124.744µs; -120.596µs] or [-33.680%; -32.560%]
  • 🟩 throughput [+1314.876op/s; +1361.398op/s] or [+48.697%; +50.420%]

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

  • 🟩 execution_time [-89.840µs; -66.031µs] or [-28.681%; -21.080%]
  • 🟩 throughput [+940.865op/s; +1149.922op/s] or [+29.330%; +35.846%]

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

  • 🟩 execution_time [-134.527µs; -112.101µs] or [-36.801%; -30.667%]
  • 🟩 throughput [+1273.566op/s; +1412.007op/s] or [+45.703%; +50.671%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.300ms; +300.771ms] or [+149.382%; +150.115%]

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

  • 🟥 execution_time [+420.743ms; +428.826ms] or [+457.154%; +465.937%]

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

  • unstable execution_time [+294.177ms; +347.874ms] or [+223.366%; +264.137%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+342.299ms; +416.443ms] or [+157.386%; +191.477%]
  • 🟥 throughput [-638.870op/s; -586.058op/s] or [-57.888%; -53.103%]

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

  • unstable execution_time [+208.228ms; +341.477ms] or [+88.738%; +145.523%]
  • 🟥 throughput [-674.325op/s; -590.688op/s] or [-44.978%; -39.399%]

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

  • 🟥 execution_time [+341.645ms; +352.285ms] or [+204.344%; +210.707%]
  • 🟥 throughput [-426.985op/s; -389.794op/s] or [-29.730%; -27.141%]

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

  • unstable throughput [+9.324op/s; +46.143op/s] or [+2.680%; +13.264%]

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

  • 🟩 execution_time [-163.181µs; -147.816µs] or [-8.266%; -7.488%]
  • 🟩 throughput [+41.130op/s; +45.739op/s] or [+8.119%; +9.029%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+12.092%; +12.103%]
  • 🟥 execution_time [+303.223ms; +304.969ms] or [+152.697%; +153.577%]
  • 🟥 throughput [-17463.583op/s; -15923.125op/s] or [-5.619%; -5.124%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+300.909ms; +303.475ms] or [+150.786%; +152.072%]
  • 🟥 throughput [-37859.609op/s; -32931.886op/s] or [-5.969%; -5.192%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.114%; +12.124%]
  • 🟥 execution_time [+300.894ms; +303.935ms] or [+151.156%; +152.684%]
  • 🟥 throughput [-36563.973op/s; -28618.490op/s] or [-7.702%; -6.029%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+11.165%; +11.177%]
  • 🟥 execution_time [+302.463ms; +304.483ms] or [+151.887%; +152.901%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+12.493%; +12.506%]
  • 🟥 execution_time [+297.604ms; +301.597ms] or [+147.152%; +149.126%]
  • 🟥 throughput [-60108.078op/s; -52852.275op/s] or [-9.685%; -8.516%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+11.422%; +11.434%]
  • 🟥 execution_time [+303.708ms; +308.085ms] or [+153.933%; +156.151%]
  • 🟥 throughput [-44269.702op/s; -35640.971op/s] or [-9.560%; -7.696%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+11.197%; +11.208%]
  • 🟥 execution_time [+302.001ms; +304.322ms] or [+151.577%; +152.742%]
  • 🟥 throughput [-37695.888op/s; -32810.183op/s] or [-9.779%; -8.512%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.618%; +10.631%]
  • 🟥 execution_time [+299.349ms; +301.899ms] or [+149.198%; +150.469%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+10.618%; +10.631%]
  • 🟥 execution_time [+299.381ms; +302.068ms] or [+148.939%; +150.276%]
  • 🟥 throughput [-31977.099op/s; -25724.623op/s] or [-7.569%; -6.089%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟥 allocated_mem [+96 bytes; +97 bytes] or [+6.002%; +6.011%]
  • 🟥 throughput [-18034.232op/s; -16632.251op/s] or [-7.252%; -6.688%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.627%; +5.636%]
  • 🟩 execution_time [-16.240ms; -12.579ms] or [-7.552%; -5.849%]

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 [-5.318µs; +37.808µs] or [-1.313%; +9.339%]

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

  • 🟩 allocated_mem [-18.305KB; -18.282KB] or [-6.677%; -6.669%]
  • unstable execution_time [-57.477µs; -2.096µs] or [-11.360%; -0.414%]

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

  • 🟩 allocated_mem [-18.907KB; -18.888KB] or [-6.893%; -6.885%]
  • unstable execution_time [-97.627µs; -36.974µs] or [-16.918%; -6.407%]
  • 🟩 throughput [+145.659op/s; +320.282op/s] or [+8.322%; +18.298%]

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

  • 🟥 execution_time [+4.511µs; +8.248µs] or [+10.662%; +19.495%]
  • 🟥 throughput [-4016.238op/s; -2298.534op/s] or [-16.907%; -9.676%]

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

  • unstable execution_time [-16.890µs; -10.440µs] or [-26.204%; -16.198%]
  • 🟩 throughput [+2746.531op/s; +4047.001op/s] or [+16.851%; +24.830%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.767ms; +304.018ms] or [+153.035%; +153.667%]

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

  • 🟥 execution_time [+303.103ms; +306.607ms] or [+154.278%; +156.062%]

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

  • 🟥 execution_time [+296.914ms; +299.844ms] or [+148.642%; +150.109%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+9.197%; +9.208%]
  • 🟥 throughput [-38900.442op/s; -37085.668op/s] or [-10.769%; -10.266%]

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 [-39541.892op/s; -28330.228op/s] or [-9.358%; -6.705%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.450ms; +302.326ms] or [+149.747%; +150.682%]
  • 🟥 throughput [-11342.291op/s; -9595.191op/s] or [-7.490%; -6.336%]

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

  • 🟥 allocated_mem [+96 bytes; +96 bytes] or [+6.000%; +6.010%]
  • 🟥 execution_time [+301.305ms; +303.050ms] or [+151.301%; +152.177%]

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

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+5.819%; +5.828%]
  • 🟥 execution_time [+302.144ms; +305.439ms] or [+153.228%; +154.899%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.284ms; +300.907ms] or [+149.783%; +150.094%]
  • 🟩 throughput [+65428846.421op/s; +65673298.148op/s] or [+47.649%; +47.827%]

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

  • 🟥 execution_time [+421.002ms; +425.115ms] or [+523.591%; +528.707%]

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

  • 🟥 execution_time [+299.355ms; +300.444ms] or [+149.311%; +149.854%]
  • 🟩 throughput [+18774856.199op/s; +19732913.629op/s] or [+8.316%; +8.740%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+5.244%; +5.256%]
  • 🟥 throughput [-95128.584op/s; -90911.872op/s] or [-10.616%; -10.146%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • 🟥 allocated_mem [+31 bytes; +32 bytes] or [+6.037%; +6.047%]
  • 🟥 throughput [-104386.688op/s; -101244.789op/s] or [-9.555%; -9.268%]

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 [-31950.490op/s; -28210.758op/s] or [-7.119%; -6.285%]

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

  • 🟩 throughput [+28089.456op/s; +33290.207op/s] or [+5.101%; +6.045%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+15.733%; +15.745%]
  • 🟥 throughput [-64779.463op/s; -61319.039op/s] or [-9.481%; -8.974%]

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 [-59621.593op/s; -44749.764op/s] or [-8.325%; -6.248%]

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.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice 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

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected

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

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

Thanks for working to preserve the EVP origin headers!!

@leoromanovsky
leoromanovsky added this pull request to stack #9362 October 5, 2026 13:40
Keep the discovery snapshot get-only, consistent with the other Agent configuration properties.

Environment: Datadog workspace
@leoromanovsky
leoromanovsky merged commit 733efb0 into master Oct 8, 2026
143 of 147 checks passed
@leoromanovsky
leoromanovsky deleted the leo.romanovsky/fflsdk-189-dotnet-discovery branch October 8, 2026 18:39
@github-actions github-actions Bot added this to the vNext-v3 milestone Oct 8, 2026
leoromanovsky added a commit that referenced this pull request Oct 9, 2026
…er (#9353)

## Motivation

Short-lived applications can lose exposures queued while another batch
is being sent. Shutdown currently signals the worker without waiting for
a final drain, and a concurrent evaluation can enqueue after shutdown
begins.

```mermaid
flowchart LR
    E[Evaluations] --> Q[Exposure queue]
    S[Shutdown] -. missing final drain .-> Q
    Q --> A[Agent EVP v2]
```

## Changes and Decisions

Separate the existing local sender from exposure batching, give the
Feature Flags module ownership of its lifetime, and dispose its settings
subscriptions. Exposure shutdown rejects new enqueue attempts, drains
queued events and waits at most ten seconds for the worker; the timed
wait does not depend on an available ThreadPool worker, so a stalled
network cannot indefinitely block exposure disposal.

This PR targets master following the merge of [discovery
#9352](#9352). Both
configuration modes keep their historical fixed EVP v2 route, headers
and redirect defaults. There is no discovery-based selection or
direct-intake activation here; the complete Agentless policy remains in
[#9235](#9235).

```mermaid
flowchart LR
    S[Shutdown] --> R[Reject new exposures]
    R --> F[Final queue drain]
    F --> T[Existing fixed-v2 sender]
    T --> A[Local Agent]
    F --> B[Bounded wait]
```
leoromanovsky added a commit that referenced this pull request Oct 15, 2026
## Motivation

Agentless configuration lets customers evaluate flags without running an
Agent, but exposure delivery still requires its local EVP proxy.
Evaluations can succeed while their experiment exposures are lost.

```mermaid
flowchart LR
    C[Agentless configuration] --> E[Flag evaluation]
    E --> X[Exposure batch]
    X --> A[Local Agent required]
    X -. missing route .-> D[Direct EVP intake]
```

## Changes and Decisions

This is the single-commit final activation after [endpoint-bound
discovery #9352](#9352)
and [bounded exposure lifecycle
#9353](#9353). It keeps
Remote Config on its historical fixed EVP v2 behavior and does not add
flag-evaluation emission.

Agentless delivery prefers local EVP v4, then v2, only when discovery
confirms forwarding of both SDK identity headers. Configured Agent path
prefixes are preserved. Otherwise it uses canonical HTTPS intake; API
keys remain direct-only, relay headers local-only, and redirects are
disabled for Agentless delivery.

Direct selection is sticky. An unavailable route has bounded recovery;
each batch has bounded discovery waiting. The current batch can move to
direct only after local 404/405 or a proven pre-send connection failure.
Ambiguous failures never replay that batch, preventing duplicate
exposures. Identity, credentials and this replay policy ship together.

```mermaid
flowchart LR
    E[Agentless exposure batch] --> R{Selected route}
    R -->|Identity-capable v4 or v2| A[Local relay]
    R -->|No eligible relay| D[Direct HTTPS intake]
    A -->|404 / 405 or proven pre-send failure| D
    A -->|Ambiguous failure| N[No current-batch replay]
    D --> S[Direct remains selected]
```
vjfridge added a commit that referenced this pull request Oct 19, 2026
…gh the Agent (#9351)

## Pre-merge blocker: no-Agent behavior

- [#9352](#9352) and
[#9353](#9353) are merged
and incorporated into this branch.
[#9235](#9235) remains
open; revisit no-Agent `flagevaluation` delivery when that transport
work lands.
- The related shared/exposure transport work does not yet wire up
no-Agent `flagevaluation` emission. Before merging this PR, decide and
validate transport reuse or an explicit no-Agent gating policy. The
current implementation remains Agent-only and can build/queue events
that cannot be delivered without an Agent. [Review
discussion](#9351 (comment)).

## Summary of changes

Adds aggregated `flagevaluation` track EVP events for successful and
unsuccessful Datadog OpenFeature evaluations, protecting targeting keys
and context by default without changing flag results.

- **Agent-only delivery today**, with the no-Agent decision blocked as
described above; related transport:
[#9235](#9235); replaces
the stale [#9139](#9139)
approach.
- Follows merged [Go](DataDog/dd-trace-go#5151),
[Java](DataDog/dd-trace-java#12042),
[Python](DataDog/dd-trace-py#20354), and
[Ruby](DataDog/dd-trace-rb#6222)
implementations, with [PII
guidance](https://github.com/DataDog/ffe-codegen-tools/pull/9) and
[JS](DataDog/dd-trace-js#10464) as additional
references.

## Key decisions / assumptions

- **Private by default.** Hash valid targeting keys at output, omit
context, and allowlist error codes. Only boolean `true` for
`observeFullEvaluationData` allows raw keys and bounded context; consent
and timestamp are captured once per evaluation.
- **One consent value across merged RCM configs.** Full data requires
consent from every currently active file (AND), recomputed on each
update—not combined with historical configurations. Any false, absent,
null, or malformed value selects protected mode. Existing flag-merging
behavior stays unchanged.
- **Background processing.** The caller captures metadata/bounded
context and enqueues without waiting for space. A dedicated worker
aggregates and sends, batching partial queues for up to 50 ms. Explicit
flush and shutdown wake it immediately; periodic sends remain every 10
seconds. Flush/shutdown waits are bounded. The five-second request
timeout does not bound legacy pipe/socket connection setup; that
existing shared-transport gap is [deferred from this
PR](#9351 (comment)).
- **Stable service tags.** Capture service/env/version when the writer
starts, after replaying the latest settings, and keep them for its
lifetime—as Go/Java/Ruby/JS do. Later tag changes require writer
recreation; Agent-address updates remain independent.
- **Bounded entries, not a fixed memory ceiling.** Queue: **4,096**,
matching Go/Java/Python/Ruby; full buckets: 10,000 per flag / 131,072
globally; degraded buckets: 32,768. Degraded events omit key/context and
exclude consent from bucket identity; exhausted capacity drops
telemetry, not evaluations.
- **Bounded consented context.** Capture at most 256 fields with
depth/size/visit limits, without scanning or sorting arbitrarily large
inputs. Rare hash collisions in oversized maps can change the retained
subset; only telemetry is affected.
- **Scoped transport.** Use the Agent’s EVP v2 route, with no
direct-intake fallback, discovery, or retries. Delivery is best-effort;
Agent 7.84.0 preserved SDK identity headers in testing, while 7.83.1
stripped them.

## Measured performance overhead

**Historical comparison: `b32fca42cc` vs master `f0114c8c71`, before the
worker-batching change; 4,096-entry queue.** ARM64 Linux/glibc, .NET
10.0.12; 100,000-evaluation bursts, medians of three runs. CPUs are
affinity slots, not quotas; process CPU/allocation include final flush,
caller latency does not.

| CPUs | Mode | Evaluation p50 / p95 (µs) | CPU (µs/evaluation) |
Allocation (bytes/evaluation) |
| --- | --- | --- | --- | --- |
| 1 | Baseline | 48.47 / 60.21 | 50.47 | 6,088 |
| 1 | Events disabled | 55.93 / 68.32 | 56.44 | 6,584 |
| 1 | Default protected | 67.77 / 112.38 | 79.26 | 6,837 |
| 1 | Full consent | 70.08 / 139.30 | 91.60 | 11,472 |
| 2 | Baseline | 10.85 / 11.38 | 11.86 | 6,088 |
| 2 | Events disabled | 12.23 / 12.79 | 13.49 | 6,584 |
| 2 | Default protected | 23.42 / 27.38 | 34.74 | 6,836 |
| 2 | Full consent | 28.18 / 31.96 | 43.64 | 11,470 |

- Default protected mode adds **~19 µs / ~13 µs** median evaluation
latency and **~57% / ~193%** process CPU per evaluation on one/two CPUs.
Disabling events avoids the writer but is **not zero-overhead**.
- Consented contexts add allocation. All **88 trials** passed the
delivery/privacy audit, including paced, sparse, high-cardinality, and
oversized-context workloads; **all 3,136,867 expected observations,
including warmup, were retained**.
- These synthetic measurements make the cost visible; they do not
establish acceptable production overhead. .NET reviewer assessment
remains open. A later [paired worker-batching
comparison](#9351 (comment))
improved protected burst latency/CPU, with a documented overload/drop
tradeoff; it is not a fresh comparison against master. Hook-list reuse
([FFL-3356](https://datadoghq.atlassian.net/browse/FFL-3356)) is now
included through merged
[#9334](#9334); the
historical measurements above predate that change.

[Historical methodology, full workload matrix, and memory
results](#9351 (comment)).
[Earlier experiments and validation
history](#9351 (comment))
used different artifacts/settings and are not an isolated optimization
comparison.

## Test coverage

- **Latest local post-merge validation at
[`cef427882a`](cef427882a854bad0710542bacc107d26191dd65):**
targeted feature-flag, telemetry, and metadata tests: **1,312 passed /
two skipped on each of .NET 10 and .NET Core 3.1**. Tracer builds passed
for all four target frameworks with zero warnings/errors. Subsequent
commits changed only CODEOWNERS; these runs do not replace final-head
external/performance validation.
- **At `7fe8e0651f`:** 780 feature-flag tests passed / two platform
skips; benchmark project built with zero warnings/errors. Full tracer
suite: **13,507 passed / 71 skipped / zero failed**. [Writer-attribution
fix and regression
coverage](7fe8e06).
- **At `b32fca42cc`:** 746 feature-flag tests passed / one skipped; full
tracer suite 13,473 passed / 70 skipped / zero failed. Benchmark project
built without warnings/errors.
- **[System-tests at
`b32fca42cc`](#9351 (comment)
all 51 Agent-only FFE tests passed, including all 12 EVP cases; baseline
passed the other 39 and failed only those 12 unimplemented cases. All
12,000 degradation observations retained.
- **[Dogfooding at
`b32fca42cc`](#9351 (comment)
identical results across 81 live, 24 controlled-consent, and six
no-Agent requests. Verified emission, SDK identity, strict consent, and
mixed-version/uninstrumented safety.
- Signed companion harness fixes: [system-tests
#7951](DataDog/system-tests#7951) and
[ffe-dogfooding
#131](https://github.com/ddoghq/ffe-dogfooding/pull/131), both awaiting
review. [Earlier
evidence](#9351 (comment))
is historical.

### Reviewer QA

Compare flag results with emission on/off and with the Agent
disconnected. Verify strict consent, protected payloads, and unchanged
exposure/span-enrichment behavior; disabling emission must produce no
new `flagevaluation` events.

## Blast radius

- Updates the provider/tracer metadata bridge and adds a hook, worker,
Agent requests, and diagnostic metrics. Both updated components are
required for full functionality; mixed-version and uninstrumented
behavior have dedicated tests.
- Events default on when feature flagging is active;
`DD_FLAGGING_EVALUATION_COUNTS_ENABLED=false` disables them. Hook
registration is decided when the provider is constructed; enabling
events after starting disabled requires provider recreation or an
application restart. Adds CPU/allocation and best-effort shutdown work;
consented snapshots retain more data.
- No changes to targeting rules, returned values, exposure payloads, or
configuration-fetching transport. Exposure Agent requests also receive
timeout protection, subject to the legacy connection-setup limitation
above. Existing Remote Config and Agentless configuration sources remain
supported; event delivery is Agent-only.

## External follow-ups

External/performance results above predate the latest review fixes and
need a final-head refresh. Remaining coordination, in addition to the
no-Agent blocker above:

- Release owner: confirm provider/tracer release versions.
- Companion harness PRs
[#7951](DataDog/system-tests#7951) /
[#131](https://github.com/ddoghq/ffe-dogfooding/pull/131): review and
manual merge.

[FFL-3356]:
https://datadoghq.atlassian.net/browse/FFL-3356?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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.

6 participants