We have moved our examples and tutorials over to newrelic-node-examples as more robust applications. Here are some quick links for implementing custom instrumentation and using our shim API:
- instrument - example application that uses the newrelic.instrument API and associated shim API to instrument a toy queue library called Job Queue
- instrumentDatastore - example application that uses the newrelic.instrumentDatastore API and datastore shim API to instrument a toy datastore called Simple Datastore
- instrumentMessages - example application that uses the newrelic.instrumentMessages API and associated messaging shim API to instrument a toy messaging library called Nifty Messages
- instrumentWebframework - example application that uses the newrelic.instrumentWebframework API and associated WebFramework shim API to instrument a hypothetical web framework
- attributesAndEvents - example application that demonstrates how to share custom attributes and events
- backgroundTransactions - example application that uses the newrelic API to create background transactions
- segments - example application that demonstrates how to use the newrelic.startSegment API in a variety of cases: callback-based, promise-based, asyncronously, and syncronously
- distributed tracing - example application that demonstrates distributed tracing
To request additional examples, please file an issue!