Skip to content

fix(seer): Populate referrer field in agent_handoff analytics from launch path#112523

Merged
JoshFerge merged 1 commit intomasterfrom
jferg/feat/coding-agent-handoff-referrer
Apr 8, 2026
Merged

fix(seer): Populate referrer field in agent_handoff analytics from launch path#112523
JoshFerge merged 1 commit intomasterfrom
jferg/feat/coding-agent-handoff-referrer

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

@JoshFerge JoshFerge commented Apr 8, 2026

Summary

  • The ai.autofix.agent_handoff event added in feat(seer): Record agent_handoff analytics in launch_coding_agents_for_run #112516 hardcoded referrer=None in launch_coding_agents_for_run, causing BigQuery queries filtering on referrer to miss these events
  • Adds a referrer parameter and passes meaningful values from each caller: api.organization_coding_agents (UI) and seer_rpc.trigger_coding_agent_launch (Seer RPC)

Test plan

  • Verify existing tests pass
  • Confirm referrer is populated in BigQuery after deploy

Agent transcript: https://claudescope.sentry.dev/share/UfJcQt8YPjsSgB02byVDpbig1RWMFUY4oBpF9MbQjRI

…unch path

The agent_handoff event recorded in launch_coding_agents_for_run was
hardcoding referrer=None, making existing BigQuery queries that filter
on referrer silently miss these events. Pass a meaningful referrer from
each caller.

Agent transcript: https://claudescope.sentry.dev/share/IIXyFpJBudWIkdVKN1r9Zuex_oc_9hN1nUxhAi-tgF0
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 8, 2026
@JoshFerge JoshFerge marked this pull request as ready for review April 8, 2026 20:39
@JoshFerge JoshFerge requested a review from a team as a code owner April 8, 2026 20:39
@JoshFerge JoshFerge enabled auto-merge (squash) April 8, 2026 20:39
@JoshFerge JoshFerge merged commit c2663fe into master Apr 8, 2026
58 checks passed
@JoshFerge JoshFerge deleted the jferg/feat/coding-agent-handoff-referrer branch April 8, 2026 20:49
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
…unch path (#112523)

## Summary
- The `ai.autofix.agent_handoff` event added in #112516 hardcoded
`referrer=None` in `launch_coding_agents_for_run`, causing BigQuery
queries filtering on `referrer` to miss these events
- Adds a `referrer` parameter and passes meaningful values from each
caller: `api.organization_coding_agents` (UI) and
`seer_rpc.trigger_coding_agent_launch` (Seer RPC)

## Test plan
- [ ] Verify existing tests pass
- [ ] Confirm `referrer` is populated in BigQuery after deploy


Agent transcript:
https://claudescope.sentry.dev/share/UfJcQt8YPjsSgB02byVDpbig1RWMFUY4oBpF9MbQjRI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants