Skip to content

feat: add context capture API - #1378

Open
giortzisg wants to merge 1 commit into
scopes/scope-mergefrom
scopes/context-capture
Open

feat: add context capture API#1378
giortzisg wants to merge 1 commit into
scopes/scope-mergefrom
scopes/context-capture

Conversation

@giortzisg

@giortzisg giortzisg commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Issues

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/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/context-capture branch from c6716f7 to 5af8a98 Compare August 4, 2026 15:25
Comment thread sentry.go Outdated
@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/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/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

@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 1 potential issue.

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 066ed7c. Configure here.

Comment thread sentry.go
@giortzisg
giortzisg force-pushed the scopes/context-capture branch from 066ed7c to 6cf3963 Compare August 31, 2026 10:50

@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

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