apm-agent-go
apm-agent-go copied to clipboard
Set default service version to module version
Go 1.12 introduces https://golang.org/pkg/runtime/debug/#BuildInfo, which will report module information if the program was built using modules.
If no service version is specified, we should default to the main module version.
This doesn't really work, since there's no way to specify the main module's version, only the versions of dependencies. Relevant: https://github.com/golang/go/issues/29814.