Skip to content

Commit

Permalink
Update fiber/sentryfiber.go
Browse files Browse the repository at this point in the history
Co-authored-by: Michi Hoffmann <[email protected]>
  • Loading branch information
ribice and cleptric authored Dec 30, 2024
1 parent d48a537 commit 71ab3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fiber/sentryfiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (h *handler) recoverWithSentry(hub *sentry.Hub, ctx *fiber.Ctx) {
}
}

// GetHubFromContext retrieves the Hub instance from the *fiber.Ctx
// GetHubFromContext retrieves the Hub instance from the *fiber.Ctx.
func GetHubFromContext(ctx *fiber.Ctx) *sentry.Hub {
if hub, ok := ctx.Locals(valuesKey).(*sentry.Hub); ok {
return hub
Expand Down

0 comments on commit 71ab3a0

Please sign in to comment.