dep ensure
go build
export NEW_RELIC_STREAMING_LICENSE_KEY=key
export NEW_RELIC_APP_NAME="Your Heroku App Name"
export AUTH_SECRET=auth_secret
./herokunewrelic
To execute tests:
go test -v
NOTE: The commands above assumes that you have both [email protected]
and dep
installed. For further instructions on how to install the dependencies:
Supposed that:
- Your
herokunewrelic
instance is accessible via https://herokunewrelic.herokuapp.com. - You have a Heroku app name called
heroku-app
Simply execute the following command:
APP_HOST=herokunewrelic.herokuapp.com
HEROKU_APP_NAME=heroku-app
heroku drains:add https://$HEROKU_APP_NAME:$AUTH_SECRET@$APP_HOST -a HEROKU_APP_NAME
NOTE: The username for the basic auth part must will become the sourceAppName
property for the custom NewRelic events.
- NewRelic
- Parse arbitrary metrics in addition to dyno runtime metrics
- Honor env var LOG_LEVEL
- Tagged logs with Request ID
- Be idempotent (Logplex-Frame-Id)
- Support custom event backends
- Turn parseFrames into iterator to further reduce memory footprint
- Operations
- Memory/CPU usage
- GC times
- Go routines
- Support for multiple log drain tokens
- Logging for future debugging e.g.
User-Agent
since it maps to release version