DataDog/dd-opentracing-go

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Datadog Example

This repository contains an example Go app that is instrumented using the new OpenTracing API available in the Datadog Go Client.

Requirements
Initialize dependencies

This project uses dep to handle dependencies. To prepare your vendor folder, launch from your shell:

$ dep ensure
Run the example

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.