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 d7853f3 commit d48a537
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 @@ -131,7 +131,7 @@ func SetHubOnContext(ctx *fiber.Ctx, hub *sentry.Hub) {
ctx.Locals(valuesKey, hub)
}

// GetSpanFromContext retrieves the Span instance from the *fiber.Ctx
// GetSpanFromContext retrieves the Span instance from the *fiber.Ctx.
func GetSpanFromContext(ctx *fiber.Ctx) *sentry.Span {
if span, ok := ctx.Locals(transactionKey).(*sentry.Span); ok {
return span
Expand Down

0 comments on commit d48a537

Please sign in to comment.