Skip to content

brentm5/datadog-trace-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datadog Trace Examples

This just goes through the example of setting up datadog trace on a simple sinatra application

How to run the server

# Install bundler and then run it on the project
gem install bundler
bundle install

# start up the server
bundle exec start

# Then hit the server
curl http://localhost:3000/

# or to get more data
siege http://localhost:3000/

Setting up the agent (this has been tested to work on a mac)

Do the following to setup the agent (taken from datadog help page)

# Copy the dockerfile from datadog to the /tracer dir then run the following:

# Build the image
docker build tracer/ . -t dd_trace_agent

# Run the agent
docker run --name dd_trace_agent -d -p 7777:7777 -e DD_API_KEY=<api-key> -e DD_BIND_HOST=0.0.0.0 dd_trace_agent

About

I just wanted to try out some datadog tracing with sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published