{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sentrycontext\n\n## Functions\n\n```go\nfunc NewSentryContext() middleware.Middleware\n```\nNewSentryContext returns a middleware that adds context to Sentry for the current request that will be sent along with the error if one occurs. It sets the scope of the request hub that NewSentryHub added, and adds that hub if it is missing.\n\n```go\nfunc NewSentryHub() middleware.Middleware\n```\nNewSentryHub returns a middleware that gives each request its own Sentry hub on its context, so concurrent requests do not share a scope. Put it before any middleware that reports to Sentry.\n\n","path":"github.com/chainloop-dev/chainloop/app/controlplane/internal/sentrycontext","name":"sentrycontext","synopsis":"","isRedistributable":true}
