-
Notifications
You must be signed in to change notification settings - Fork 220
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
[Sentry] ModuleIntegration wasn't able to extract modules: module integration failed #197
Comments
The sentry-go SDK is version |
Hi @parasssh! Thanks for bringing this to our attention.
It means that the SDK could not get module information to attach to the error prior to reporting.
It will happen whenever the SDK doesn't find a Current implementationLines 42 to 68 in 81d3dd8
It can be totally ignored. The only consequence is that the event in Sentry will not include a list of modules/packages. In case of Whenever we fix #184, we'll likely be able to get a list of modules from the running binary itself, without a dependency on In the meantime, if the message is bothering and you'd like to get rid of it right now, one way to do so is to disable the Modules Integration: func main() {
err := sentry.Init(sentry.ClientOptions{
// ...
Integrations: func(integrations []sentry.Integration) []sentry.Integration {
filtered := integrations[:0]
for _, integration := range integrations {
if integration.Name() != "Modules" {
filtered = append(filtered, integration)
}
}
return filtered
},
})
// ...
} |
runtime/debug.ReadBuildInfo is more reliable than manually parsing a `go.mod` file, specially without assistance from golang.org/x/mod/modfile. Another advantage is that it doesn't require `go.mod` and source code to be available. We also now include the current module (the module with package main) in the list of modules. runtime/debug.ReadBuildInfo requires go 1.12, which is already the minimum supported Go version. Thus bump the language version in go.mod. Drop support for reading dependencies from govendor's `vendor/vendor.json`. Fixes #184. Fixes #197. Co-authored-by: Rodolfo Carvalho <[email protected]>
hypermodeinc/dgraph#5166
A user is seeing this log message from Sentry when using our application. More details at the link above.
[Sentry] ModuleIntegration wasn't able to extract modules: module integration failed
Questions:
FWIW, this user's sentry event with ID
cc19eb68a1de4cdc8f4808283e9d17ea
was indeed reported on our Sentry Dashboard.The text was updated successfully, but these errors were encountered: