Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 933 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 933 Bytes

Go CLM Demo

This demo app demonstrates several methods that generate code level metrics which can be viewed in the CodeStream Plugin

Running

To run the app, simply set the environment variables for your ingest key and run the docker-compose command.

export NEW_RELIC_LICENSE_KEY=<your license key> && export NEW_RELIC_HOST=staging-collector.newrelic.com
docker-compose up --build -d

This will build and run the go demo app and it will also send traffic to the app using the tester.sh script which runs simple curl commands.

Logs will be available in the logs subdirectory.

running locally

To run outside of Docker, first grab the develop branch of the newrelic golang agent.

export NEW_RELIC_LICENSE_KEY=<your license key> && export NEW_RELIC_HOST=staging-collector.newrelic.com
go get github.com/newrelic/go-agent/v3/newrelic@develop
go run server/*