Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/felixge/dd-trace-go-demo

A simple application to show how to use dd-trace-go's tracer and profiler.
https://github.com/felixge/dd-trace-go-demo

Last synced: about 2 months ago
JSON representation

A simple application to show how to use dd-trace-go's tracer and profiler.

Awesome Lists containing this project

README

        

# dd-trace-go-demo

A simple application to show how to use [dd-trace-go](https://github.com/DataDog/dd-trace-go)'s tracer and profiler.

## Usage

To run this demo application, simply clone this repository and follow the steps outlined below:

```
# set the api key of your datadog account
export DD_API_KEY=...

# launch datadog agent and postgres
docker-compose up

# launch go application
go run ./cmd/dtgd/

# hit endpoints
curl localhost:9191/cpu-bound
curl localhost:9191/io-bound
```

Note: It might take a few seconds for traces to show up, and a little over 1 minute for the first profile to be uploaded.