← Back to Pull requests

[RUM-20186] fix(webgl): report Unity SDK version in RUM and Logs #349

Closed
unknown closed this pull request without merging on Nov 18, 2026 15:55 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 17:54 UTC
Author

RUM-20186

WebGL RUM and Logs omitted sdkVersion during Browser SDK initialization, so sdk_version tags fell back to the Browser SDK version and configuration telemetry omitted the Unity SDK version. Pass DatadogSdk.SdkVersion to both initializers.

WebGL RUM also forwards the existing TelemetrySampleRate asset value in every build. Test-player initialization forces the extra configuration-telemetry sampler to 100% on Android, iOS, and WebGL; no asset setting is added for that sampler.

The SDK-version override matches Flutter's existing integration:

  • Flutter RUM initialization

  • Flutter Logs initialization
  • The same configuration-telemetry test runs on Android, iOS, and WebGL, asserting SDK source, SDK version, and the configured overall telemetry rate. The decoder handles the native telemetry envelope and Browser configuration fields. RUM and Logs scenarios also assert the Unity SDK version; the Logs decoder reads native logger.version and Browser sdk_version tags.

    Validation:

  • Unity 2022.3.76f1 with iOS active: 102 EditMode and 330 PlayMode unit tests passed, including both normal/test-player build-hook cases.

  • Focused player integration: configuration telemetry, Logs, and RUM passed on Android Emulator, iOS Simulator, and WebGL/Chrome (3 passed per platform, 0 failed, 0 skipped).

  • git diff --check passed.
  • [RUM-20186]: https://datadoghq.atlassian.net/browse/RUM-20186?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 241 lines (+180 / -61) across 3 files Reviewer: fuzzybinary Review duration: 1321m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 241 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #349"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.3% · Safe to merge
    15.3%