You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ref: simplify the IEventLike interface hierarchy #5893
IEventLike (which extends IHasTags and IHasExtra) is one public interface shared by very different types:
Scope, which holds state and is applied to telemetry
SentryEvent, which is sent
ITransactionData, and through it SentryTransaction and TransactionTracer, which need explicit IEventLike.TransactionName implementations
Every implementer has to expose the whole surface, including breadcrumbs, fingerprint, request, user and SDK. Logs and metrics don't use the interface at all, so it doesn't describe telemetry in general.
Raised here as a possible simplification while adding attributes to scopes in #4882.
Target
To be agreed. The original comment doesn't say what the simpler shape should be. A proposal should answer:
Which members do Scope, SentryEvent and the transaction types actually need to share?
Which callers need the shared interface rather than a concrete type? The main internal ones are Scope.Apply(IEventLike) and Enricher.Apply(IEventLike).
Should Scope keep implementing the same interface as the telemetry it's applied to?
Work
Agree the target shape.
Make the change on the version7 branch and update the API snapshots.
Add migration guidance.
Things to watch
Breaking change.IEventLike, EventLikeExtensions and Scope.Apply(IEventLike) are all public, so removing or moving members has to wait for the next major version.
sentry-unity. Check how it uses these types before changing them.
Related work.IHasExtra is part of this hierarchy, so this overlaps with Remove Obsolete Extra members #4640. If Enricher goes away in the root scope work, one of the callers above goes with it.
Activity
linear-code commentedon Nov 9, 2026
NET-913