In order to run the examples in this chapter, we need to prepare the development environment for each of the three programming languages and run the tracing backend. This section provides instructions on setting up the required dependencies.
One third of the examples are written in Go, which expects the source code [2] to be placed in the specific directories relative to the GOPATH (this was written before Go 1.11 and modules support). The examples have been tested with Go version 1.10. Follow these steps to download the source code:
$ mkdir -p $GOPATH/src/github.com/PacktPublishing $ cd $GOPATH/src/github.com/PacktPublishing $ git clone https://github.com/PacktPublishing/Mastering-Distributed-Tracing.git Mastering-Distributed-Tracing
The last argument to the git clone
command is to ensure that the directory is not created with the .git
suffix, otherwise it will confuse the Go compiler. If you are not planning on running Go examples, then you can clone the...