
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@inngest/middleware-sentry
Advanced tools
This package provides a middleware for Inngest to interface with Sentry.
npm install @inngest/middleware-sentry
[!NOTE] Requires
inngest@>=3.0.0 and
@sentry/*@>=8.0.0`
To use the middleware, import and initialize it. It assumes that Sentry has
already been initialized elsewhere in your code using Sentry.init()
.
import * as Sentry from "@sentry/node";
import { Inngest } from "inngest";
import { sentryMiddleware } from "@inngest/middleware-sentry";
// Initialize Sentry as usual wherever is appropriate
Sentry.init(...);
const inngest = new Inngest({
id: "my-app",
middleware: [sentryMiddleware()],
});
By default, the middleware will force Sentry to flush as part of the Inngest request, ensuring all events, execptions, and traces are sent before a response is returned.
This is important for serverless environments where the runtime doesn't wait for the event loop to be empty and background tasks such as sending exception data may be lost.
If you're not in a serverless runtime or otherwise wish to have Sentry handle
flushing itself, you can disable this behaviour by setting
disableAutomaticFlush: true
.
sentryMiddleware({
disableAutomaticFlush: true,
});
FAQs
Sentry middleware for Inngest.
The npm package @inngest/middleware-sentry receives a total of 16,935 weekly downloads. As such, @inngest/middleware-sentry popularity was classified as popular.
We found that @inngest/middleware-sentry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.