Repository navigation
ref!: remove hub API - #1407
Open
giortzisg wants to merge 1 commit into
Open
ref!: remove hub API#1407giortzisg wants to merge 1 commit into
giortzisg wants to merge 1 commit into
Conversation
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 1, 2026 09:13
1aeedf5 to
e4e938e
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 1, 2026 12:24
d85ead1 to
1b0d8cb
Compare
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 1b0d8cb. Configure here.
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 1, 2026 12:58
1b0d8cb to
d0a6cf0
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 2, 2026 07:59
d0a6cf0 to
3e956b7
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 4, 2026 13:12
3e956b7 to
9d5363a
Compare
giortzisg
changed the base branch from
scopes/examples-scopes
to
scopes/outbound-client-integrations
September 4, 2026 13:12
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 4, 2026 13:26
9d5363a to
ae66fa6
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 7, 2026 11:40
ae66fa6 to
ac5f8f8
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 7, 2026 11:50
ac5f8f8 to
359d83b
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 16, 2026 09:14
359d83b to
bb788f6
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 17, 2026 08:38
bb788f6 to
4558df4
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 17, 2026 09:09
4558df4 to
c6216c2
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 29, 2026 11:19
3cac2ab to
3e842f8
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 29, 2026 13:29
3e842f8 to
28ccb77
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
September 29, 2026 13:35
28ccb77 to
7cd1f9c
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 8, 2026 12:43
7cd1f9c to
1150171
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 8, 2026 14:17
1150171 to
33f5c56
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 9, 2026 08:36
33f5c56 to
9f788f5
Compare
giortzisg
removed this pull request from stack #1437
October 9, 2026 08:37
giortzisg
added this pull request to stack #1452
October 9, 2026 08:37
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 12, 2026 12:50
9f788f5 to
9ad62ee
Compare
giortzisg
removed this pull request from stack #1452
October 12, 2026 14:07
giortzisg
added this pull request to stack #1455
October 12, 2026 14:08
giortzisg
removed this pull request from stack #1455
October 12, 2026 14:09
giortzisg
added this pull request to stack #1456
October 12, 2026 14:11
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 12, 2026 15:45
9ad62ee to
7d165f3
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 12, 2026 15:57
7d165f3 to
894a5e2
Compare
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 13, 2026 10:18
894a5e2 to
c66e6b1
Compare
Complete the context-backed scope migration by removing Hub and routing global and contextual operations directly through scopes and clients. Remove the transitional fixture bridge and update compatibility coverage while retaining scope transaction fallback and context-based parenting. Hub, its constructors and context helpers, WithScope, ConfigureScope, PushScope, PopScope, Logrus Hook.SetHubProvider, and Zerolog NewWithHub are removed. Use ContextWithClient, WithIsolationScope, GlobalScope, SetContextProvider, and NewWithContext.
giortzisg
force-pushed
the
scopes/remove-hub-final
branch
from
October 13, 2026 15:23
c66e6b1 to
6061bef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This removes the hub API along with any final migrations to the scopes context model.
Issues
Changelog Entry Instructions
To add a custom changelog entry, uncomment the section above. Supports:
For more details: custom changelog entries
Reminders
feat:,fix:,ref:,meta:)Stack created with GitHub Stacks CLI • Give Feedback 💬
Changelog Entry
HubAPI. Scopes and clients are now carried oncontext.Context, so users need to pass the request or job context to Sentry functions instead of using a hub. See the migration guide for every replacement.CaptureException,CaptureMessage,CaptureEvent,CaptureCheckIn,AddBreadcrumb,RecoverandWithMonitornow take a context as their first argument. Hints and levels are passed as options, such assentry.WithEventHint(hint)andsentry.WithLevel(level).ctx, scope := sentry.WithScope(ctx)to isolate data for a request or job, instead of cloning a hub or callingPushScope. Usesentry.GlobalScope()for application-wide data, instead ofConfigureScope.sentry.ScopeFromContext(ctx)andsentry.ClientFromContext(ctx)to read the current scope and client, andsentry.ContextWithScopeandsentry.ContextWithClientto attach your own, instead ofNewHubandSetHubOnContext.GetContext(c)and pass the result to Sentry functions.GetHubFromContext,SetHubOnContextandGetSpanFromContextare removed.sentry.ContinueFromHeaders(trace, baggage)to continue a trace andsentry.SpanFromContext(ctx)to read the active span.ContinueTrace,ContinueFromTrace,Scope.GetSpanandScope.SetSpanare removed.EventModifierand theClient.EventFromMessage,EventFromExceptionandEventFromCheckInhelpers are removed. UseBeforeSendor an event processor to modify events.sentry.AddBreadcrumbandsentry.LastEventIDneed a context that carries a scope. On a bare context such ascontext.Background()the breadcrumb is dropped and the ID is empty. Users should create a scope withsentry.WithScopefirst.context.Background(), no longer propagates a trace.GetTraceparent,GetTraceparentW3CandGetBaggagereturn an empty string for it, outgoing HTTP and gRPC requests made with it carry no trace headers, and each event, log and metric captured with it gets its own trace ID. Requests handled by the middleware and contexts fromsentry.WithScopeare unaffected.