Skip to content

Commit

Permalink
docs(#979): coderabbit review
Browse files Browse the repository at this point in the history
  • Loading branch information
kohnalex committed Mar 27, 2024
1 parent dc645fc commit 1430e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibersentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fibersentry.New(config ...fibersentry.Config) fiber.Handler
You can access it by using the `fibersentry.GetHubFromContext()` or `fibersentry.MustGetHubFromContext()` method on the context itself in any of your proceeding middleware and routes.
Keep in mind that `*sentry.Hub` should be used instead of the global `sentry.CaptureMessage`, `sentry.CaptureException`, or any other calls, as it keeps the separation of data between the requests.

**Keep in mind that `*sentry.Hub` won't be available in middleware attached before to `fibersentry`! In this case `GetHubFromContext()` returns nil and `MustGetHubFromContext()` will panic.**
- **Keep in mind that `*sentry.Hub` won't be available in middleware attached before `fibersentry`. In this case, `GetHubFromContext()` returns nil, and `MustGetHubFromContext()` will panic.**

```go
package main
Expand Down

0 comments on commit 1430e7e

Please sign in to comment.