Skip to content

Commit

Permalink
Merge pull request #45 from hustlahusky/restore-client-getter
Browse files Browse the repository at this point in the history
core: restore `ClientGetter` interface
  • Loading branch information
TheZeroSlave authored Dec 30, 2023
2 parents 357843d + 84fda93 commit 9b78836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ var (
ErrInvalidBreadcrumbLevel = errors.New("breadcrumb level must be lower than or equal to error level")
)

type ClientGetter interface {
GetClient() *sentry.Client
}

func NewScopeFromScope(scope *sentry.Scope) zapcore.Field {
f := zap.Skip()
f.Interface = scope
Expand Down

0 comments on commit 9b78836

Please sign in to comment.