Skip to content

feat(feature-flags): add agentless configuration keys, settings, and endpoint derivation - #9040

Open
pavlokhrebto wants to merge 18 commits into
masterfrom
pavlo.khrebto/EX-2703/ffe-config-and-endpoint
Open

feat(feature-flags): add agentless configuration keys, settings, and endpoint derivation#9040
pavlokhrebto wants to merge 18 commits into
masterfrom
pavlo.khrebto/EX-2703/ffe-config-and-endpoint

Conversation

@pavlokhrebto

@pavlokhrebto pavlokhrebto commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Adds the foundational configuration layer for agentless Feature Flags delivery: new configuration keys, a FeatureFlagsSettings class with source resolution and validation, and an AgentlessEndpoint struct for deriving the CDN URL from the Datadog site or a custom base URL.

This is PR 1 of a stacked PR series implementing agentless Feature Flags configuration delivery (FFL-2703), porting functionality from dd-trace-py#19331 and dd-trace-java#11892.

Reason for change

The .NET tracer currently delivers Feature Flags configuration exclusively through the Datadog Agent's Remote Configuration. To support agentless (CDN-backed) delivery, we need a configuration layer that:

  • Selects between agentless (new default), remote_config, and disabled sources
  • Derives the managed CDN endpoint from DD_SITE or accepts a custom DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_BASE_URL
  • Validates poll interval and request timeout settings
  • Grandfathers existing DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED users onto Remote Configuration

Implementation details

  • FeatureFlagsSource enumDisabled, Agentless, RemoteConfig
  • FeatureFlagsSettings — reads all new env vars, resolves the source with the cross-SDK precedence contract (kill switch → explicit source → fail-closed → legacy grandfathering → default agentless), validates poll interval (1–3600s) and request timeout (>0s)
  • AgentlessEndpoint — derives https://ufc-server.ff-cdn.<site>/api/v2/feature-flagging/config/rules-based/server from the site, appends dd_env when configured, accepts custom HTTP/HTTPS URLs, and never echoes URLs in error messages (credentials safety)
  • New config keys in supported-configurations.yaml + generated ConfigurationKeys.FeatureFlags.g.cs:
    • DD_FEATURE_FLAGS_ENABLED (default true, supersedes DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED)
    • DD_FEATURE_FLAGS_CONFIGURATION_SOURCE (default agentless)
    • DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_BASE_URL
    • DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_POLL_INTERVAL_SECONDS (default 30, type int)
    • DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_REQUEST_TIMEOUT_SECONDS (default 5, type int)
    • DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS (default 10000, implementation B)
  • [Obsolete] on FlaggingProviderEnabled with pragma suppression in FeatureFlagsSettings

This PR does not wire anything to FeatureFlagsModule yet — that happens in a later PR in the stack.

Test coverage

  • FeatureFlagsSettingsTests — 43 test cases covering source resolution (kill switch, explicit source, legacy grandfathering, offline sentinel, invalid values), blank/whitespace handling, casing normalization, defaults, poll interval validation, request timeout validation, initialization timeout, and base URL reading
  • AgentlessEndpointTests — 18 test cases covering managed endpoint derivation (site lowercasing, staging, govcloud), dd_env query parameter (addition, null, escaping), custom endpoint path handling (origin-only gets canonical path, custom path used verbatim), HTTP acceptance for custom endpoints, invalid URL rejection, empty/whitespace site rejection, and credentials-in-error safety

Other details

Stacked PRs:

  • PR 1 (this): Configuration keys, settings, and endpoint derivation
  • PR 2: UFC parser and agentless poller
  • PR 3: Module wiring and OpenFeature activation
  • PR 4: Manual API activation

System tests: DataDog/system-tests#7496

@pavlokhrebto pavlokhrebto changed the title Pavlo.khrebto/ex 2703/ffe config and endpoint feat(feature-flags): add agentless configuration keys, settings, and endpoint derivation Aug 13, 2026
@pavlokhrebto pavlokhrebto added type:new-feature AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos feature_flags labels Aug 13, 2026
@pr-commenter

pr-commenter Bot commented Aug 13, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-20 15:44:14

Comparing candidate commit 7c7d7e6 in PR branch pavlo.khrebto/EX-2703/ffe-config-and-endpoint with baseline commit 218b8c1 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 66 known flaky benchmarks, 60 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 [-4710.931op/s; -4426.719op/s] or [-5.378%; -5.053%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

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

  • 🟩 throughput [+8890.261op/s; +9648.586op/s] or [+6.193%; +6.721%]

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

  • 🟩 throughput [+8831.639op/s; +10324.043op/s] or [+5.382%; +6.292%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7591.756op/s; -7155.968op/s] or [-9.002%; -8.485%]

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

  • 🟥 throughput [-10282.477op/s; -8923.325op/s] or [-10.455%; -9.073%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.573KB; +1.573KB] or [+47.789%; +47.804%]
  • 🟥 execution_time [+310.456ms; +313.074ms] or [+154.059%; +155.359%]
  • 🟥 throughput [-59.086op/s; -54.956op/s] or [-10.631%; -9.888%]

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

  • 🟥 allocated_mem [+1.012KB; +1.012KB] or [+37.524%; +37.537%]
  • 🟥 execution_time [+380.606ms; +382.955ms] or [+300.702%; +302.558%]
  • 🟩 throughput [+62.168op/s; +70.279op/s] or [+8.197%; +9.266%]

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

  • 🟥 allocated_mem [+1.088KB; +1.088KB] or [+40.343%; +40.355%]
  • 🟥 execution_time [+395.531ms; +398.609ms] or [+350.030%; +352.754%]

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

  • 🟥 allocated_mem [+4.725KB; +4.726KB] or [+99.482%; +99.497%]
  • 🟥 throughput [-60678.383op/s; -60312.356op/s] or [-47.211%; -46.926%]

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

  • 🟥 allocated_mem [+3.848KB; +3.848KB] or [+81.379%; +81.391%]
  • 🟩 execution_time [-16.133ms; -11.962ms] or [-7.534%; -5.587%]
  • 🟥 throughput [-59983.430op/s; -57214.388op/s] or [-43.785%; -41.763%]

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

  • 🟥 allocated_mem [+4.576KB; +4.576KB] or [+98.954%; +98.966%]
  • 🟥 throughput [-49270.913op/s; -47026.552op/s] or [-44.547%; -42.517%]

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

  • 🟥 allocated_mem [+1.348KB; +1.348KB] or [+109.063%; +109.078%]
  • 🟥 throughput [-279770.988op/s; -276510.262op/s] or [-28.566%; -28.233%]

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

  • 🟥 allocated_mem [+511 bytes; +512 bytes] or [+41.822%; +41.834%]
  • 🟩 execution_time [-26.261ms; -21.385ms] or [-11.711%; -9.537%]
  • 🟥 throughput [-125335.949op/s; -102778.064op/s] or [-13.390%; -10.980%]

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

  • 🟥 allocated_mem [+1.312KB; +1.312KB] or [+108.600%; +108.616%]
  • 🟥 throughput [-170690.910op/s; -154060.704op/s] or [-24.525%; -22.136%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72957.157op/s; -72176.679op/s] or [-49.099%; -48.574%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73081.354op/s; -70208.410op/s] or [-46.500%; -44.672%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-55941.258op/s; -53324.297op/s] or [-44.564%; -42.480%]

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

  • 🟩 throughput [+328410.993op/s; +347276.462op/s] or [+10.951%; +11.580%]

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

  • 🟩 execution_time [-19.171ms; -14.832ms] or [-8.837%; -6.837%]

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

  • 🟩 allocated_mem [-13.759KB; -13.757KB] or [-42.326%; -42.318%]
  • 🟥 execution_time [+300.151ms; +300.876ms] or [+149.975%; +150.338%]
  • 🟩 throughput [+1004.268op/s; +1034.662op/s] or [+11.092%; +11.428%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.981ms; +303.079ms] or [+151.281%; +152.843%]
  • 🟩 throughput [+2303.524op/s; +2521.620op/s] or [+17.619%; +19.287%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.215ms; +303.476ms] or [+151.225%; +152.868%]
  • 🟩 throughput [+1859.000op/s; +1997.646op/s] or [+17.948%; +19.286%]

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

  • 🟥 execution_time [+296.220ms; +297.256ms] or [+145.491%; +146.001%]
  • 🟩 throughput [+570.862op/s; +583.016op/s] or [+15.134%; +15.456%]

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

  • 🟥 execution_time [+295.850ms; +298.931ms] or [+144.630%; +146.136%]
  • 🟩 throughput [+2796.577op/s; +2830.694op/s] or [+40.629%; +41.125%]

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

  • 🟥 execution_time [+302.443ms; +303.729ms] or [+151.160%; +151.803%]
  • 🟩 throughput [+1382.426op/s; +1413.716op/s] or [+27.440%; +28.061%]

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

  • 🟩 execution_time [-146.021µs; -141.547µs] or [-29.980%; -29.062%]
  • 🟩 throughput [+845.327op/s; +876.340op/s] or [+41.171%; +42.682%]

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

  • 🟩 execution_time [-136.809µs; -110.165µs] or [-31.377%; -25.267%]
  • 🟩 throughput [+839.294op/s; +961.139op/s] or [+36.489%; +41.787%]

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

  • 🟩 execution_time [-141.567µs; -119.525µs] or [-30.331%; -25.609%]
  • 🟩 throughput [+766.958op/s; +850.660op/s] or [+35.404%; +39.268%]

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

  • 🟩 execution_time [-126.192µs; -121.592µs] or [-34.071%; -32.829%]
  • 🟩 throughput [+1331.152op/s; +1386.724op/s] or [+49.300%; +51.358%]

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

  • 🟩 execution_time [-102.157µs; -78.577µs] or [-32.614%; -25.086%]
  • 🟩 throughput [+1179.436op/s; +1380.438op/s] or [+36.766%; +43.032%]

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

  • 🟩 execution_time [-138.506µs; -116.118µs] or [-37.890%; -31.765%]
  • 🟩 throughput [+1343.277op/s; +1480.185op/s] or [+48.205%; +53.118%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.995ms; +300.764ms] or [+149.728%; +150.112%]

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

  • 🟥 execution_time [+413.566ms; +420.501ms] or [+449.357%; +456.892%]
  • 🟩 throughput [+696.181op/s; +890.612op/s] or [+5.721%; +7.318%]

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

  • unstable execution_time [+220.127ms; +279.040ms] or [+167.140%; +211.872%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+284.515ms; +324.104ms] or [+130.817%; +149.020%]
  • 🟥 throughput [-550.710op/s; -488.280op/s] or [-49.900%; -44.243%]

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

  • unstable execution_time [+147.336ms; +293.276ms] or [+62.788%; +124.982%]
  • 🟥 throughput [-670.357op/s; -586.806op/s] or [-44.713%; -39.140%]

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

  • 🟥 execution_time [+337.724ms; +346.284ms] or [+201.998%; +207.118%]
  • 🟥 throughput [-391.899op/s; -354.887op/s] or [-27.287%; -24.710%]

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

  • 🟩 execution_time [-201.327µs; -152.058µs] or [-10.198%; -7.703%]
  • 🟩 throughput [+44.418op/s; +57.447op/s] or [+8.768%; +11.340%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.829ms; +304.324ms] or [+152.499%; +153.252%]

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

  • 🟥 execution_time [+298.748ms; +301.693ms] or [+149.703%; +151.179%]

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

  • 🟥 execution_time [+300.721ms; +304.002ms] or [+151.070%; +152.718%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.653ms; +302.941ms] or [+151.480%; +152.127%]
  • 🟩 throughput [+20541.320op/s; +22348.525op/s] or [+6.882%; +7.487%]

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

  • 🟥 execution_time [+298.462ms; +300.368ms] or [+147.576%; +148.518%]

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

  • 🟥 execution_time [+303.602ms; +308.417ms] or [+153.879%; +156.319%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.918ms; +303.136ms] or [+151.034%; +152.147%]

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

  • 🟥 execution_time [+300.793ms; +303.129ms] or [+149.918%; +151.082%]
  • 🟩 throughput [+56140.183op/s; +63648.063op/s] or [+11.148%; +12.638%]

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

  • 🟥 execution_time [+299.554ms; +302.638ms] or [+149.025%; +150.560%]

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

  • 🟩 execution_time [-16.128ms; -12.477ms] or [-7.500%; -5.802%]

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

  • unstable execution_time [+15.325µs; +60.430µs] or [+3.785%; +14.927%]

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

  • 🟩 allocated_mem [-18.892KB; -18.869KB] or [-6.891%; -6.883%]
  • unstable execution_time [-12.255µs; +45.921µs] or [-2.422%; +9.076%]

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

  • 🟩 allocated_mem [-17.753KB; -17.733KB] or [-6.472%; -6.464%]
  • unstable execution_time [-76.056µs; -16.493µs] or [-13.180%; -2.858%]

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

  • 🟥 execution_time [+6.801µs; +10.973µs] or [+16.077%; +25.937%]
  • 🟥 throughput [-5009.032op/s; -3177.968op/s] or [-21.086%; -13.378%]

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

  • unstable execution_time [-13.348µs; -4.794µs] or [-20.709%; -7.437%]
  • unstable throughput [+1255.549op/s; +3106.213op/s] or [+7.703%; +19.058%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.239ms; +303.115ms] or [+152.263%; +153.211%]

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

  • 🟥 execution_time [+305.216ms; +308.649ms] or [+155.354%; +157.101%]

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

  • 🟥 execution_time [+300.532ms; +303.843ms] or [+150.453%; +152.111%]

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

  • 🟩 throughput [+31086.793op/s; +35194.348op/s] or [+5.884%; +6.662%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.888ms; +301.829ms] or [+149.467%; +150.435%]

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

  • 🟥 execution_time [+301.724ms; +304.074ms] or [+151.512%; +152.692%]

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

  • 🟥 execution_time [+302.421ms; +304.999ms] or [+153.368%; +154.676%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.839ms; +300.928ms] or [+149.561%; +150.105%]
  • 🟩 throughput [+61031104.156op/s; +61377288.993op/s] or [+44.447%; +44.699%]

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

  • 🟥 execution_time [+421.647ms; +426.513ms] or [+524.393%; +530.445%]

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

  • 🟥 execution_time [+299.876ms; +300.952ms] or [+149.571%; +150.108%]

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

  • 🟩 throughput [+78531.022op/s; +84904.969op/s] or [+7.332%; +7.927%]

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

  • 🟩 throughput [+62389.945op/s; +69803.997op/s] or [+6.196%; +6.933%]

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

  • 🟩 throughput [+35420.804op/s; +39690.936op/s] or [+6.432%; +7.207%]

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

  • 🟩 throughput [+55374.443op/s; +86168.212op/s] or [+6.187%; +9.627%]

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 net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • 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 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.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive 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.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected

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

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

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs Outdated
Comment thread tracer/src/Datadog.Trace/FeatureFlags/Agentless/AgentlessEndpoint.cs Outdated
@datadog-prod-us1-3

This comment has been minimized.

Enables Feature Flags Provider (Experimental).
Default value is <c>false</c> (disabled).
DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS:
- implementation: B

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'm somewhat surprised there's diverging implementations already, is that necessary? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The B implementation is for the native (C++) side of the tracer, which reads these keys through a separate config pipeline. We only own the A (managed) implementation in this PR — the native side is out of scope.

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.

If this is for the native side, then doesn't that mean this should be scoped: native, and we don't read it on the managed side? 🤔 Or am I misunderstanding?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Previous robot answer was wrong, sorry — it mixed up implementation with scope. Managed vs native is scope, and this key is scope: managed, read only from managed code.

On your actual question: only this one key diverges, and it's the default value. We use 10000ms rather than the canonical 30000ms, and 10s is an already-registered variant (B) rather than something we invented. The reason for 10s is that timing out here isn't fatal — the provider just stays not-ready and evaluations return the caller's default until config arrives — so a long timeout only buys extra blocking time in InitializeAsync, which risks tripping container readiness probes and cold-start budgets. Python landed on the same 10s value.

Happy to move to A/30s if you'd rather avoid the divergence — nothing has shipped on 10s.

Comment thread tracer/src/Datadog.Trace/FeatureFlags/Agentless/AgentlessEndpoint.cs Outdated
/// </summary>
internal const string ManagedHostPrefix = "ufc-server.ff-cdn.";

private AgentlessEndpoint(Uri uri, bool isManaged)

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.

Be aware, that you can still create instances of AgentlessEndpoint like this:

AgentlessEndpoint myEndpoint = default;

In that scenario, IsManaged==false and Uri will be null despite the nullable annotation etc. Not saying it's necessarily an issue given that this is an internal-only type, just something to bear in mind, that it can be a foot gun.

Given that you're only going to create this type once, for the lifetime of the app, using a class would avoid the potential for mistakes, and the cost of an extra allocation. Up to you which you choose, as long as you understand the implication 🙂

@pavlokhrebto pavlokhrebto Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We kept it as a struct since it's internal, only ever created via TryCreate, and never boxed. Happy to change to a class if you'd prefer.
Tbh for me it looks more like a struct, contains zero to none logic

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.

For the record struct vs class aren't primarily about "contains logic or not". The big difference is that they change copy/reference semantics (structs are copy be value by default, classes are copy by reference by default), which can have performance implications (in both ways - structs can decrease performance if used incorrectly)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed to a sealed class in 92546cd. You were right that the = default case was a real foot-gun, and it was reachable from our own code: TryCreate had to open with endpoint = default;, so every failure path handed back an instance whose non-nullable Uri was null. As a class the signature is [NotNullWhen(true)] out AgentlessEndpoint? endpoint and failures return null, so misuse is now a compiler warning instead of an NRE.

Also took the point about copy vs reference semantics being the real distinction — thanks.

Comment thread tracer/src/Datadog.Trace/FeatureFlags/Agentless/AgentlessEndpoint.cs Outdated
Comment thread tracer/src/Datadog.Trace/FeatureFlags/Agentless/AgentlessEndpoint.cs Outdated
Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs Outdated
Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs Outdated
Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs
Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs
Comment thread tracer/src/Datadog.Trace/FeatureFlags/FeatureFlagsSettings.cs Outdated
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

⚠️ Potential regressions detected

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration190.35 ± (190.91 - 191.69) ms212.09 ± (212.06 - 212.91) ms+11.4%❌⬆️
.NET Framework 4.8 - Bailout
duration194.19 ± (194.09 - 194.56) ms218.74 ± (218.21 - 219.21) ms+12.6%❌⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1151.33 ± (1150.44 - 1155.97) ms1259.84 ± (1259.66 - 1265.99) ms+9.4%❌⬆️

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

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

functionality looks in-sync with other implementations 👍

return ParsingResult<SourceSelection>.Failure();
}

var normalized = value.Trim().ToLowerInvariant();

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.

As discussed before, don't do this 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 21d718e — comparisons are now string.Equals(..., StringComparison.OrdinalIgnoreCase), no ToLowerInvariant().

I also want to correct something I said earlier: I claimed the switch was doing ordinal comparison internally, which was wrong and probably made it look like case-insensitivity had been dropped. It hadn't, and OrdinalIgnoreCase now makes it explicit. Surrounding whitespace is still tolerated, but only on a second pass after the direct comparisons fail, so the common path doesn't allocate.

/// Used as the converter for GetAsClass so the
/// config framework records both the raw string and the resolved value in telemetry.
/// </summary>
private static ParsingResult<SourceSelection> ConvertSource(string? value)

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.

        private static ParsingResult<FeatureFlagsSource> ConvertSource(string? value)
        {
            if (StringUtil.IsNullOrWhiteSpace(value))
            {
                return ParsingResult<FeatureFlagsSource>.Failure();
            }

            if (value.Equals(AgentlessSourceName, StringComparison.OrdinalIgnoreCase))
            {
                return ParsingResult<FeatureFlagsSource>.Success(FeatureFlagsSource.Agentless);
            }
            else if (value.Equals(RemoteConfigSourceName, StringComparison.OrdinalIgnoreCase))
            {
                return ParsingResult<FeatureFlagsSource>.Success(FeatureFlagsSource.RemoteConfig);
            }
            else if (value.Equals(OfflineSourceName, StringComparison.OrdinalIgnoreCase))
            {
                return ParsingResult<FeatureFlagsSource>.Success(FeatureFlagsSource.Disabled);
            }
            else
            {
                return ParsingResult<FeatureFlagsSource>.Failure();
            }
        }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adopted, with one deliberate difference: an unrecognised value returns Success(FeatureFlagsSource.Disabled) rather than Failure(). Failure() falls back to the default, and the default is agentless, so DD_FEATURE_FLAGS_CONFIGURATION_SOURCE=agentles (typo) would silently start billed CDN polling. Returning Success(Disabled) keeps it failing closed. Blank values still return Failure() so the default applies. Happy to revisit if you'd rather have the fallback.

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.

The only problem is that this breaks reporting of the config values 🤔 It was a parsing failure, so IMO, customers should be able to see that in the service configuration. The fact that you fall back to agentless by default doesn't seem like a big problem to me, seeing as that's your default anyway? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

well, yes, but i feel kind of awkward to fallback in case of an error. but can change, sure

#pragma warning restore 618
}

Source = ResolveSource(enabled, configuredSource, legacyEnabled);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is closer, but still isn't quite right I think 😅 Basically, ResolveSource shouldn't exist, otherwise we're reporting incorrect values 🤔

.WithKeys(ConfigurationKeys.FeatureFlags.FeatureFlagsConfigurationSource)
.GetAsClass<SourceSelection>(
validator: null,
converter: ConvertSource);

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.

Discussed below, but as mentioned before, you shouldn't use ResolveSource, as it doesn't record telemetry correctly.

I believe you should

  • get rid of SourceSelection
  • change ConvertSource as described below
  • Remove ResolveSource
  • Use the following instead:
DefaultResult<FeatureFlagsSource> defaultFlag = enabled switch
{
    false => new(FeatureFlagsSource.Disabled, nameof(FeatureFlagsSource.Disabled)),
    null when legacyEnabled is not null => legacyEnabled.Value ? new(FeatureFlagsSource.RemoteConfig, nameof(FeatureFlagsSource.RemoteConfig)) : new(FeatureFlagsSource.Disabled, nameof(FeatureFlagsSource.Disabled)),
    _ => new(FeatureFlagsSource.Agentless, nameof(FeatureFlagsSource.Agentless)),
};

Source  = new ConfigurationBuilder(source, telemetry)
         .WithKeys(ConfigurationKeys.FeatureFlags.FeatureFlagsConfigurationSource)
        .GetAs(
             defaultFlag,
             validator: enabled == false ? _ => false : _ => true, // even valid source is forced to default when feature flagging is explicitly disabled
             converter: ConvertSource);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 21d718e: SourceSelection.cs is deleted, ResolveSource and FromDefaultSource are gone, and the precedence is now expressed as the DefaultResult<FeatureFlagsSource> switch you suggested, with the kill switch as a validator that rejects any configured value.

Comment on lines +147 to +155
public static FeatureFlagsSettings FromDefaultSource()
{
var source = GlobalConfigurationSource.Instance;
var config = new ConfigurationBuilder(source, TelemetryFactory.Config);
var site = config.WithKeys(ConfigurationKeys.Site).AsString(DefaultSite, s => !StringUtil.IsNullOrWhiteSpace(s));
var env = config.WithKeys(ConfigurationKeys.Environment).AsString();
var apiKey = config.WithKeys(ConfigurationKeys.ApiKey).AsRedactedString();
return new FeatureFlagsSettings(source, TelemetryFactory.Config, site, env, apiKey);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This shouldn't exist, you should hang FeatureFlagSettings off TracerSettings, the same way we do with TelemetrySettings for example. Otherwise you haven't solved anything, this is still broken, and now we have global state access

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 21d718eFromDefaultSource() is gone and TracerSettings now owns FeatureFlags, constructed from the same source and telemetry. DD_ENV is passed in from Manager.InitialMutableSettings.Environment so it agrees with the env entry of DD_TAGS; per our Slack thread, DD_SITE/DD_API_KEY are still read locally the way TelemetrySettings and DirectLogSubmissionSettings do, and centralising those is left out of this PR.

@pavlokhrebto
pavlokhrebto force-pushed the pavlo.khrebto/EX-2703/ffe-config-and-endpoint branch from 92546cd to ada921d Compare August 18, 2026 14:20

@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 - there's unfortunately still an issue with env which annoyingly may mean we need to redesign this whole thing again 🤦‍♂️

// Created after the manager so the environment can be taken from the initial mutable
// settings, which also honour the "env" entry of DD_TAGS. It is captured once, so a
// later dynamic-configuration change to "env" does not move the agentless endpoint.
FeatureFlags = new FeatureFlagsSettings(source, telemetry, Manager.InitialMutableSettings.Environment);

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.

Urgh, just realised, through your use of InitialMutableSettings - this is another issue. Customers can change the env in code (And customers do that, we have telemetry that confirms it), and if they do, this is going to break, because they will send requests to the wrong endpoint.

In other words, your AgentlessEndpoint has to also become a mutable setting, that could change at any time. And you will likely need to re-architecture to account for that fact 🙁

In summary

  • FeatureFlags.AgentlessEndpoint moves to MutableSettings
  • You don't need to pass env in anymore 😅
  • Anything that wants to use AgentlessEndpoint needs to subscribe to changes in MutableSettings, and perform whatever necessary caching/invalidation/rebuilding that entails..

It's a pain 😅

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

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos feature_flags type:new-feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants