Skip to content

feat: add context capture API - #1378

Closed
giortzisg wants to merge 7 commits into
scopes/scope-mergefrom
scopes/context-capture
Closed

giortzisg wants to merge 7 commits into
scopes/scope-mergefrom
scopes/context-capture

Conversation

@giortzisg

@giortzisg giortzisg commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

@giortzisg
giortzisg marked this pull request as ready for review July 30, 2026 19:04
@giortzisg
giortzisg requested a review from Litarnus July 30, 2026 19:05
Comment thread client.go
Comment thread client.go Outdated
@giortzisg
giortzisg force-pushed the scopes/scope-merge branch from e509cb6 to 5ea0d02 Compare July 30, 2026 20:45
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from efccd51 to c6716f7 Compare July 30, 2026 20:45
Comment thread scope.go
Comment thread hub.go Outdated
@linear-code

linear-code Bot commented Aug 3, 2026

Copy link
Copy Markdown

GO-156

@giortzisg
giortzisg force-pushed the scopes/scope-merge branch from 5ea0d02 to 2905cce Compare August 4, 2026 15:25
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from c6716f7 to 5af8a98 Compare August 4, 2026 15:25
Comment thread sentry.go Outdated
@giortzisg
giortzisg force-pushed the scopes/scope-merge branch from 2905cce to 8b46a73 Compare August 4, 2026 15:42
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 5af8a98 to de7d759 Compare August 4, 2026 15:42
Comment thread client.go
@giortzisg
giortzisg force-pushed the scopes/scope-merge branch from 8b46a73 to b3bd79f Compare August 5, 2026 09:59
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from de7d759 to 545c0ef Compare August 5, 2026 09:59
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 545c0ef to 4997f79 Compare August 10, 2026 11:28
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 4997f79 to 180fcc5 Compare August 10, 2026 11:36
Comment thread sentry.go
@giortzisg
giortzisg force-pushed the scopes/scope-merge branch 5 times, most recently from 2e3f4c5 to bf26935 Compare August 13, 2026 12:51
@giortzisg
giortzisg force-pushed the scopes/context-capture branch 2 times, most recently from 26a5f90 to 148a75b Compare August 13, 2026 12:54
Comment thread hub.go
Comment thread hub.go
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 148a75b to 066ed7c Compare August 24, 2026 10:17
Comment thread sentry.go

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general the changes look good to me (though I am also not super familiar with everything being changed).

The one point that is unclear to me is what the context itself is meant to do, as the linked issues do not really describe it.

Is the new API documented somewhere in more detail? If yes, please link, if not, let's discuss it.

Comment thread client.go
return client.CaptureException(err, opts.hint, scope)
}

func (client *Client) processEvent(event *Event, scope *Scope, opts captureOptions) (*EventID, bool) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: What does the bool indicate here?

I think it would be worth adding a documentation comment to explain what the bool means

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8f3aec5. Configure here.

Comment thread hub.go
Comment thread client.go
This PR changes the client boundaries so that we always return a non nil
client.
    This PR makes it easier to clear the current scope, by just
    initializing
    a new scopeData field
Comment thread hub.go
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 709abf4 to 1bf4b1d Compare September 2, 2026 07:58
@giortzisg giortzisg closed this Sep 4, 2026
@giortzisg
giortzisg deleted the scopes/context-capture branch September 8, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants