DocsSentry for Node.js on Azure
Using Sentry with Azure and Node.js makes debugging as painless as possible, so you can keep everything up and running.
200k+ organizations trust us to monitor their apps
- GitHub
- Atlassian
- Disney
- Cloudflare
- Microsoft
- Cursor
Code-Level Visibility

Quickly Identify Function Latencies

Fill in the Gaps

Getting Started is Simple
Add @sentry/node as a dependency:
npm install --save @sentry/nodeThen set up Sentry error logging for an Azure Function:
"use strict";
const Sentry = require("@sentry/node");
Sentry.init({
dsn: "https://<key>@sentry.io/<project>",
tracesSampleRate: 1.0,
});
module.exports = async function(context, req) {
try {
await notExistFunction();
} catch (e) {
Sentry.captureException(e);
await Sentry.flush(2000);
}
context.res = {
status: 200,
body: "Hello from Azure Cloud Function!",
};
};FAQs
How does Sentry differentiate from CloudWatch or Stackdriver?
Sentry uses run-time instrumentation to capture errors. This allows users to get to the root of the problems using stack traces, breadcrumbs, function context and environment context.
CloudWatch/Stackdriver logs and metrics are hard to use to debug issues. The information is limited to some log statements and usually don't have the context needed to debug issues.
What's the difference between run-time instrumentation versus Log Forwarding?
Sentry uses run-time instrumentation to get real time visibility into execution environment and report all relevant info to be able to quickly debug issues. For example source code visibility when issues occur.
CloudWatch or Stackdriver log forwarding requires parsing through logs and usually are limited to details that already exist in logs.
Does Sentry captures anything other than errors?
Sentry supports distributed tracing in addition to error monitoring for serverless functions.
How much does Sentry cost?
You can get started for free. Pricing is based on the errors, spans, logs, replays and other data you send. For more details, visit our pricing page.
Supporting resources
Docs



