March 2020
Intermediate to advanced
406 pages
8h 39m
English
Once we have our application credentials all set up; we are off to the races to write our first trace that will be captured by our APM:
package mainimport ( "context" "fmt" "log" "net/http" "os" "time" "contrib.go.opencensus.io/exporter/stackdriver" "go.opencensus.io/trace")const server = ":1234"
func init() { exporter, err := stackdriver.NewExporter(stackdriver.Options{ ProjectID: os.Getenv("GOOGLE_CLOUD_PROJECT"), ...Read now
Unlock full access