,
}),
configurations: [
{
language: 'bash',
code: 'go get github.com/getsentry/sentry-go/fasthttp',
},
],
},
],
configure: params => [
{
type: StepType.CONFIGURE,
description: t(
"Import and initialize the Sentry SDK early in your application's setup:"
),
configurations: [
{
language: 'go',
code: getConfigureSnippet(params),
},
{
description: (
{tct(
'[code:sentryfasthttp] accepts a struct of [code:Options] that allows you to configure how the handler will behave.',
{code: }
)}
{tct(
"[code:sentryfasthttp] attaches an instance of [sentryHubLink:*sentry.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 [code:sentryfasthttp.GetHubFromContext()] method on the context itself in any of your proceeding middleware and routes. And it should be used instead of the global [code:sentry.CaptureMessage], [code:sentry.CaptureException], or any other calls, as it keeps the separation of data between the requests.",
{
sentryHubLink: (
,
}
)}
}
)}
,
})}
),
language: 'go',
code: getBeforeSendSnippet(params),
},
],
},
],
verify: () => [],
};
const crashReportOnboarding: OnboardingConfig = {
introduction: () => getCrashReportModalIntroduction(),
install: (params: Params) => getCrashReportGenericInstallStep(params),
configure: () => [
{
type: StepType.CONFIGURE,
description: getCrashReportModalConfigDescription({
link: 'https://docs.sentry.io/platforms/go/guides/fasthttp/user-feedback/configuration/#crash-report-modal',
}),
},
],
verify: () => [],
nextSteps: () => [],
};
const docs: Docs = {
onboarding,
replayOnboardingJsLoader,
crashReportOnboarding,
};
export default docs;
const AlertWithoutMarginBottom = styled(Alert)`
margin-bottom: 0;
`;