← Back to Pull requests

debugger: snapshot correlation tests #7330

Closed
unknown closed this pull request without merging on Jul 30, 2026 18:30 UTC
View on GitHub
unknown unknown commented on Jul 16, 2026 20:55 UTC
Author

Motivation

The Live Debugger lets an engineer drop logpoints into running code and see snapshots of what happened. Those snapshots are supposed to tell a complete story of a request from start to finish, but today the related snapshots often arrive in pieces, with no signal that anything is missing. There is now an approved plan for how every language's tracer should behave so the story stays whole, but there was no automated way to say whether each language actually follows it.

This adds that check, so we can track, per language, who meets the standard and who does not yet.

Changes

Adds end-to-end tests that hold each language's tracer to the agreed snapshot-correlation standard:

  • Related snapshots from a single request stay together: either the whole chain arrives or none of it does, never a partial chain, and they share one request id.

  • A logpoint inside a loop records once per request instead of flooding.

  • Each snapshot reports which process and which thread it came from.
  • The tests run for all six languages (Go, Java, .NET, Node, Python, Ruby). Because no tracer has built this behavior yet, every language is currently marked "not yet implemented," so the tests run without failing the build and will turn green automatically once a language implements the standard. The change also adds the test endpoints to each language's sample app, Go included.

    Workflow

    1. ⚠️ Create your PR as draft ⚠️
    2. Work on you PR until the CI passes
    3. Mark it as ready for review
    Test logic is modified? -> Get a review from RFC owner.
    Framework is modified, or non obvious usage of it -> get a review from R&P team

    :rocket: Once your PR is reviewed and the CI green, you can merge it!

    🛟 #apm-shared-testing 🛟

    Reviewer checklist

    [ ] Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
    [ ] A docker base image is modified?
    [ ] the relevant build-XXX-image label is present
    [ ] A scenario is added, removed or renamed?
    * [ ] Get a review from R&P team

    Diff: 288 lines (+216 / -72) across 3 files Reviewer: grantseltzer Review duration: 20015m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 288 lines diff across 3 files
    0.40
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7330"
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.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.7% · Safe to merge
    15.7%