Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/felixge/dd-trace-go-demo
- Owner: felixge
- Created: 2022-02-07T12:12:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-07T12:12:39.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T15:18:48.865Z (2 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.