Skip to main content

Upgrade from 0.6.x to 0.7.0

Check these items when moving projects and servers from 0.6.x to 0.7.0. For a new installation, you do not need this guide.

Item0.6.x0.7.0
Go version1.18 or later1.26, 1.27
Installationgo install, go get, OS packagesExtract two installation files
Librarygithub.com/whatap/go-apigithub.com/whatap/golang-apm (added automatically)
Data relay agentwhatap-agentwhatap-go

Check for go-api usage​

Run the following command in the project directory.

grep -rn "github.com/whatap/go-api" .

If there are results, 0.7.0 automatic monitoring may not be applied. Projects that use go-api only show a warning and build like a regular go build. In this case, existing 0.6.x manual monitoring code keeps working.

To move to 0.7.0, clean up your code and dependencies in the following order.

  1. Remove go-api imports and calls from your source code. Replace custom tracing code with golang-apm by referring to the Manual instrumentation guide.
  2. In go.mod, remove the require and replace entries for github.com/whatap/go-api and github.com/whatap/golib added for monitoring.
  3. If a dependency such as a shared library uses go-api, replace or remove it the same way.
  4. Run go mod tidy. If you use a vendor directory, also run go mod vendor.

Check the existing whatap-agent​

On the application server, check which program uses port 6600.

sudo ss -lntp | grep ':6600'

Check whether other applications (PHP, Python, .NET, etc.) use whatap-agent. If other applications use it, do not stop whatap-agent and contact WhaTap. Stopping it prevents those applications from sending data.

If only the existing Go application uses whatap-agent, stop whatap-agent and disable its automatic start when switching to the new version.

sudo systemctl disable --now whatap-agent

Check the existing build tool​

Check that the old whatap-go-inst does not run before the new version in PATH.

which -a whatap-go-inst
whatap-go-inst version

The setup is correct if the first path is /opt/whatap-golang-apm-0.7.0-linux-... and the version is whatap-go-inst for golang-apm v0.7.0. Otherwise, delete the old file in /usr/local/bin or $(go env GOPATH)/bin.

Troubleshooting​

SymptomCauseSolution
Build succeeds but instrumented build complete does not appearMonitoring not appliedCheck the cause in the build warnings
instrumented build complete appears but the file with the main function is not in the ✅ listThat file imports golang-apmMove the import to a separate file as in the Manual instrumentation guide and rebuild
Build warnings mention github.com/whatap/go-apiThe project or a dependency uses the 0.6.x librarySee Check for go-api usage
checksum mismatch or SECURITY ERROR during build0.7.0 from before the December 1, 2026 replacement remains in the build server's module cacheClear the cache with the commands below and rebuild
whatap-daemon start shows port 6600 is already in useAnother program is using port 6600See Check the existing whatap-agent

To clear the cache of 0.7.0 from before the replacement, run the following commands on the build server.

M=$(go env GOMODCACHE)
chmod -R u+w "$M/github.com/whatap/golang-apm@v0.7.0"
rm -rf "$M/github.com/whatap/golang-apm@v0.7.0" "$M/cache/download/github.com/whatap/golang-apm/@v"