-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Go docs #9992
base: master
Are you sure you want to change the base?
Update Go docs #9992
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bundle ReportChanges will increase total bundle size by 21.73kB ⬆️
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some copyedits but lgtm!
description: "Learn how to add Sentry instrumentation to programs using the Fiber package." | ||
--- | ||
|
||
This page shows how to add Sentry instrumentation to programs using the Fiber |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page shows how to add Sentry instrumentation to programs using the Fiber |
Already in the description which shows on the webpage now.
For a quick reference, there is a [complete | ||
example](https://github.com/getsentry/sentry-go/tree/master/_examples/fiber) | ||
available directly at the Go SDK source code repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a quick reference, there is a [complete | |
example](https://github.com/getsentry/sentry-go/tree/master/_examples/fiber) | |
available directly at the Go SDK source code repository. | |
The Sentry Go SDK repository has a [complete | |
example](https://github.com/getsentry/sentry-go/tree/master/_examples/fiber) | |
of how to set up Sentry for a Fiber app. |
[GoDoc-style API | ||
documentation](https://godoc.org/github.com/getsentry/sentry-go/fiber) is also | ||
available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[GoDoc-style API | |
documentation](https://godoc.org/github.com/getsentry/sentry-go/fiber) is also | |
available. | |
For additional reference, see the [`sentryfiber` API | |
documentation](https://godoc.org/github.com/getsentry/sentry-go/fiber). |
|
||
`sentryfiber` attaches an instance of `*sentry.Hub` (https://godoc.org/github.com/getsentry/sentry-go#Hub) to the request's context, which makes it available throughout the rest of the request's lifetime. | ||
You can access it by using the `sentryfiber.GetHubFromContext()` method on the context itself in any of your proceeding middleware and routes. | ||
And it 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it 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. | |
This method should be used instead of the global `sentry.CaptureMessage`, `sentry.CaptureException`, or any other calls, as it maintains the separation of data between the requests. |
No description provided.