apm-agent-go icon indicating copy to clipboard operation
apm-agent-go copied to clipboard

Set default service version to module version

Open axw opened this issue 7 years ago • 1 comments

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.

axw avatar Feb 26 '19 05:02 axw

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.

axw avatar Feb 26 '19 06:02 axw