Awesome
<a href="https://opensource.newrelic.com/oss-category/#example-code"><picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Example_Code.png"><source media="(prefers-color-scheme: light)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Example_Code.png"><img alt="New Relic Open Source example project banner." src="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Example_Code.png"></picture></a>
New Relic Node.js Examples
This repository contains example applications and scripts that demonstrate functionality of the New Relic Node.js Agent.
- AI Monitoring - examples using supported 3rd party libraries to produce AI Monitoring (AIM) telemetry
- Logs in Context - examples using logging libraries to demonstrate agent log decoration and forwarding of logs to New Relic
- Code Level Metrics - example demonstrating span attributes that help drive the CodeStream integration
- Custom Instrumentation - examples demonstrating the use of the Node.js agent API
- Elasticsearch - example demonstrating elasticsearch with Node.js agent
- Error Fingerprinting - example using setErrorCallback and noticeError to group errors produced in Node.js applications
- ESM - example demonstrating how to load the agent in an ESM application. It also demonstrates how to register custom instrumentation for an ESM package.
- GraphQL Dataloader - example using Apollo Server, koa and GraphQL dataloader
- Kafkajs - example demonstrating kafkajs with the Node.js agent
- Knex - example demonstrating knex with the Node.js agent
- Mock Infinite Tracing Server - mock gRPC server to use to locally test infinite tracing with a Node.js applciation
- Nest - examples demonstrating Nestjs with the Node.js agent
- Next.js - examples demonstrating Next.js with the Node.js agent
- Prisma - example demonstrating Prisma with the Node.js agent
- Sequelize - example demonstrating sequelize with the Node.js agent
- Express - example demonstrating express with the Node.js agent
- Source Maps - typescript example using --enable-source-maps to demonstrate proper stack traces the Node.js agent produces
Contribute
We encourage your contributions to improve New Relic Node.js Examples. Please keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at opensource@newrelic.com.
A note about vulnerabilities
As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through our bug bounty program.
If you would like to contribute to this project, review these guidelines.
To all contributors, we thank you!
License
New Relic Node.js Examples is licensed under the Apache 2.0 License.