It occurs if the build fails after the project was already running successfully:
[gaper] Building program
[gaper] Error building binary during a restart: exit status 2
[gaper] Building program
[gaper] Error building binary during a restart: exit status 2
[gaper] Building program
[gaper] Error building binary during a restart: exit status 2
Example message returned on building the project with go build directly:
make build
middleware.go:54:31: undefined: monitoring.KeyIgnoreMetricsForTransaction
middleware.go:63:31: undefined: monitoring.KeyRoutePathTemplate
middleware.go:125:16: undefined: monitoring.KeyIgnoreMetricsForTransaction
That is what we need to show for gaper as well.