newrelic / go-agent

New Relic Go Agent
Apache License 2.0
762 stars 297 forks source link

Dockerized example server for testing purposes #858

Closed nr-swilloughby closed 4 months ago

nr-swilloughby commented 5 months ago

Since the simple server example in v3/examples/server is often used for testing the Go Agent in various scenarios and under various loads (as well as a conveniently small example to demonstrate how to instrument code), this PR adds a Dockerfile which provides for the easy creation of a ready-to-run instance of this instrumented example server in a Docker container.

The instructions needed to build the image and use it in testing are included as comments in the Dockerfile itself.