refactor(flags): share provider telemetry across context changes #1307
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 191 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.315
Real PR Conversation Timeline
1 comments
"Review active on #1307"
general
weight: 0.35
fuzzybinary
What and why?
The provider created a new exposure logger, evaluation aggregator, and HTTP client for each evaluation context. Context changes needed a telemetry handoff layer between clients. This PR removes that layer (follow-up from #1297).
How?
inheritTelemetry, successor chains, inherited uploads, and timer bookkeeping.http.AbortableRequestthroughsend. This requireshttp: ^1.5.0.shutdown()waits for work that an earlier call started.FlagsRepository.forRuntimebuilds repositories for the provider andDatadogFlags.Validation
| Tested commit | Validation | Result |
| --- | --- | --- |
|
bd089ec56223fdd271660e07d341fb2f78d72a9f|datadog_flagsunit tests | 413 passed ||
bd089ec56223fdd271660e07d341fb2f78d72a9f|datadog_flags_flutterunit tests | 30 passed ||
1674e2c7bd93c360820be4c3d30167ad77b68865| Native integration, iOS simulator | 5 passed |Review checklist