You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a build ID is written to the ELF header (in .note.go.buildid) during compilation. This build-id can be read using the tool go tool buildid {binary}. It's not possible to read this build-id during runtime, without actually opening the binary again to read the ELF header. The code to do it is also in an internal package.
It could be very useful to have this build-id available during runtime. One of the use-cases for this is error tracking and mapping errors to debug symbols, see the following issue in Sentry: getsentry/sentry-cli#1979
If the build-id is available during runtime through debug.ReadBuildInfo(), the Go Sentry SDK could just extract this from the BuildInfo struct and send it together with the rest of the error information to that it can be matched to the debug symbols that are uploaded to Sentry.
The text was updated successfully, but these errors were encountered:
Proposal Details
Currently a build ID is written to the ELF header (in
.note.go.buildid
) during compilation. This build-id can be read using the toolgo tool buildid {binary}
. It's not possible to read this build-id during runtime, without actually opening the binary again to read the ELF header. The code to do it is also in an internal package.It could be very useful to have this build-id available during runtime. One of the use-cases for this is error tracking and mapping errors to debug symbols, see the following issue in Sentry: getsentry/sentry-cli#1979
If the build-id is available during runtime through
debug.ReadBuildInfo()
, the Go Sentry SDK could just extract this from theBuildInfo
struct and send it together with the rest of the error information to that it can be matched to the debug symbols that are uploaded to Sentry.The text was updated successfully, but these errors were encountered: