Name: dd-opentracing-go
Owner: Datadog, Inc.
Description: OpenTracing example with Datadog Go Tracer
Created: 2017-12-01 14:37:39.0
Updated: 2018-05-11 18:28:42.0
Pushed: 2017-12-05 17:53:42.0
Homepage: https://github.com/DataDog/dd-trace-go
Size: 12
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository contains an example Go app that is instrumented using the new OpenTracing API available in the Datadog Go Client.
docker
and docker-compose
on your system. Please, follow the instructions available
in the Docker websiteAPI_KEY
that you can create from the Datadog API page.
Remember to not share this key with anyone.This project uses dep
to handle dependencies. To prepare your vendor
folder,
launch from your shell:
$ dep ensure
You should have a running Datadog Agent to submit traces. To run a Datadog Agent, launch the following command:
$ DD_API_KEY=<API_KEY> docker-compose up
and then you can launch the Go server with:
$ go run main.go
To generate traces, you can simply call your endpoint from another shell:
$ curl localhost:3000/account/42