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.
| Item | 0.6.x | 0.7.0 |
|---|---|---|
| Go version | 1.18 or later | 1.26, 1.27 |
| Installation | go install, go get, OS packages | Extract two installation files |
| Library | github.com/whatap/go-api | github.com/whatap/golang-apm (added automatically) |
| Data relay agent | whatap-agent | whatap-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.
- Remove
go-apiimports and calls from your source code. Replace custom tracing code withgolang-apmby referring to the Manual instrumentation guide. - In
go.mod, remove therequireandreplaceentries forgithub.com/whatap/go-apiandgithub.com/whatap/golibadded for monitoring. - If a dependency such as a shared library uses
go-api, replace or remove it the same way. - Run
go mod tidy. If you use avendordirectory, also rungo 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
| Symptom | Cause | Solution |
|---|---|---|
Build succeeds but instrumented build complete does not appear | Monitoring not applied | Check the cause in the build warnings |
instrumented build complete appears but the file with the main function is not in the ✅ list | That file imports golang-apm | Move the import to a separate file as in the Manual instrumentation guide and rebuild |
Build warnings mention github.com/whatap/go-api | The project or a dependency uses the 0.6.x library | See Check for go-api usage |
checksum mismatch or SECURITY ERROR during build | 0.7.0 from before the December 1, 2026 replacement remains in the build server's module cache | Clear the cache with the commands below and rebuild |
whatap-daemon start shows port 6600 is already in use | Another program is using port 6600 | See 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"