o11y(seer): Track block content copy in Seer Explorer#115900
Conversation
Register a new `seer.explorer.block_copied` analytics event so we can measure how often users copy block content in the Seer Explorer global panel. Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 58ec62c. Configure here.
| const handleCopyClick = (e: React.MouseEvent) => { | ||
| e.stopPropagation(); | ||
| copy(block.message.content ?? ''); | ||
| trackAnalytics('seer.explorer.block_copied', {organization}); |
There was a problem hiding this comment.
Analytics before copy succeeds
Medium Severity
The new trackAnalytics call for seer.explorer.block_copied runs right after copy(), which returns a Promise and can reject when clipboard access fails. The event label implies a successful copy, so failed attempts are still counted.
Reviewed by Cursor Bugbot for commit 58ec62c. Configure here.
There was a problem hiding this comment.
we'll incl failed, rarely happens
There was a problem hiding this comment.
failed copy attempt (if it somehow happens) is still relevant analytics event tbh
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.56% |
isaacwang-sentry
left a comment
There was a problem hiding this comment.
Worth taking a look to confirm bugbot is noise but LGTM!
## Summary - Register a new `seer.explorer.block_copied` analytics event mapped to **Seer Explorer: Block Content Copied**, so we can measure how often users copy block content from the Seer Explorer global panel. - Wire the event into the existing copy-to-clipboard handler in `BlockComponent`. ## Test plan - [ ] Open the Seer Explorer global panel and click the copy button on an assistant block; confirm the `Seer Explorer: Block Content Copied` event fires in analytics. Co-authored-by: Claude <noreply@anthropic.com>


Summary
seer.explorer.block_copiedanalytics event mapped to Seer Explorer: Block Content Copied, so we can measure how often users copy block content from the Seer Explorer global panel.BlockComponent.Test plan
Seer Explorer: Block Content Copiedevent fires in analytics.