← Back to Pull requests

Document Feature Flags evaluation telemetry and exposures settings for server SDKs #42060

Open
unknown opened this pull request with 355 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 20, 2026 23:12 UTC
Author

<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->

What does this PR do? What is the motivation?

Documents two new per-provider options for the Feature Flags server SDKs in Java, Go, and Ruby. Both are enabled by default and apply only to the provider that you configure:

| SDK | Evaluation telemetry | Exposures |
| --- | --- | --- |
| Java | Provider.Options#evaluationTelemetryEnabled(false) | Provider.Options#exposuresEnabled(false) |
| Go | ProviderConfig.EvaluationTelemetryEnabled | ProviderConfig.ExposuresEnabled |
| Ruby | evaluation_telemetry_enabled: false | exposures_enabled: false |

  • With evaluation telemetry off, the provider sends no flag evaluation events, records no feature_flag.evaluations metric, and adds no flag evaluation data to APM spans.

  • With exposures off, evaluations through the provider are not recorded as exposures. None are sent to Datadog or reported to the exposure hook, and they don't count toward exposure deduplication for other providers.
  • Neither option changes flag values or assignment. Each language page gets a "Configure evaluation telemetry and exposures" section with a code example. For process-wide control, the section points to the existing settings:

  • DD_FEATURE_FLAGS_EXPOSURES_DATADOG_LOGGING_ENABLED=false stops sending exposures to Datadog, and exposure hooks still receive them.

  • DD_FLAGGING_EVALUATION_COUNTS_ENABLED=false stops only flag evaluation events.
  • Each section also has a "Record the exposure at a later evaluation" example for applications that assign a variant before the subject experiences it. The example registers a second provider with both options off under its own OpenFeature domain, and keeps the default provider for the evaluation that records the exposure. It notes that experiment results count only recorded exposures.

    The exposures guide gets a one-line pointer to the new sections.

    Merge readiness

  • Ready for merge
  • Do not merge until the Java, Go, and Ruby SDK releases that add these options ship. Before merge, replace the minimum-version placeholders <JAVA_RELEASE_VERSION>, <GO_RELEASE_VERSION>, and <RUBY_RELEASE_VERSION>.

    AI assistance

    For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.

  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.
  • Additional notes

    SDK changes: DataDog/dd-trace-java#12387, DataDog/dd-trace-go#5952, DataDog/dd-trace-rb#6733.

    Diff: 355 lines (+266 / -89) across 4 files Reviewer: joepeeples Review duration: 13964m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 355 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Diff Size diff_size
    0.351
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #42060"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.3% · Safe to merge
    24.3%