Error-tracking software helps developers resolve errors in their code faster by grouping similar errors together for easier analysis and triaging. However, error tracking tools are often stand-alone solutions that require switching between multiple apps to troubleshoot problems and communicate with team members. Developers also lose error context when switching between apps. This makes it difficult to triage errors and slows down the resolution process.
Fortunately, New Relic Errors Inbox allows you to integrate the tools you already use while taking advantage of the error tracking and rich context that New Relic One provides. You can triage grouped errors right in New Relic One’s APM UI and you can also integrate Errors Inbox with Slack. That way, your teams can continue to work and collaborate using the tools they are already familiar with, so errors can be resolved quickly.
What is Errors Inbox?
Errors Inbox is an error-tracking solution included with New Relic One’s Full Stack Observability license (including the free tier). This solution groups together the errors that New Relic is already monitoring and displays them on a single screen. This makes detecting, triaging, and taking action on errors seamless with all of the context in one place.
How to integrate Slack with Errors Inbox
Let’s start by setting up an Errors Inbox (if you haven’t already done so).
- From one.newrelic.com, select More in the top right and click Errors Inbox from the dropdown.
- If this is your first time accessing Errors Inbox, you will be prompted to select a workload in the top left corner of the UI.
- After you select your workload, your inbox should populate with error groups. If you have no workloads set up, you need to create one before you can use Errors Inbox.
After that’s complete, you can start setting up Slack by following the steps below:
- Your Slack workspace needs to have the New Relic application installed before you integrate Errors Inbox.
- Next, select the Errors Inbox (indicated by the Workload in the top left) that you want to integrate to Slack. From the inbox, select the Inbox Settings icon, which looks like a bell, in the top right corner.
- Toggle the Slack button to on.
- If no workspaces are available, click the + button to authenticate and enable Slack.
- After you are authenticated, you can select a Workspace and specific Channel for notifications.
- Click Test to ensure messages are being sent to the right channel.
All Slack notifications include links to the error details in Errors Inbox and to the entity that threw the error.
You can check out the following NerdByte to see a demo of the Slack integration.
How to triage errors in APM
No additional setup or workloads are needed to triage errors in APM. Just navigate to the APM service you want to view and follow the steps below:
- On the APM UI overview screen, click the Errors Inbox option in the left-hand navigation in the Triage section.
- This Errors Inbox view groups errors related specifically to the APM service you are looking at. You can see all error details and also triage the error right in the APM UI.
- Click an error group’s details to see the stack trace, logs in context attributes, and other information without navigating to other screens or services.
- Click Go to global inbox for the broader Errors Inbox experience, which groups errors across the entire stack, including browser and mobile errors. New Relic automatically finds a workload that includes the APM service you were looking at or prompts you to create a new workload.
Using Errors Inbox in APM gives you an added layer of convenience, allowing you to triage errors without switching screens.
Best practices for using Slack with Errors Inbox
Here are some best practices for using Slack with your current workflows.
Set up an Errors Inbox for each team
Setting up an Errors Inbox for each team ensures that your teams can proactively monitor new and recurring errors that affect their work. In Errors Inbox, create a separate workload for each team based on the apps and services that the team is responsible for. Then, tie the workload to a separate Slack channel for that specific team to monitor. The team will get notifications when a new error appears or when a resolved error is reopened.
For example, a mobile team can create a workload that includes their mobile app and all the backend services the mobile app uses. If there are any errors, the mobile team will get automatic notifications in Slack. If needed, the mobile team can send a notification to other affected teams via Slack.
Track your deployments
You can create separate workloads for your staging and production environments, then tie each environment to separate Slack channels. Any errors that occur during deployment windows will be grouped by environment and sent to the corresponding Slack channel, allowing you to see exactly when and where the error occurred. This helps you ensure your code is working properly before and after deployments so your customers have a great experience.
Start your Errors Inbox journey today
The views expressed on this blog are those of the author and do not necessarily reflect the views of New Relic. Any solutions offered by the author are environment-specific and not part of the commercial solutions or support offered by New Relic. Please join us exclusively at the Explorers Hub (discuss.newrelic.com) for questions and support related to this blog post. This blog may contain links to content on third-party sites. By providing such links, New Relic does not adopt, guarantee, approve or endorse the information, views or products available on such sites.