@taskcast/sentry
v1.1.0
Published
Sentry error monitoring hooks for Taskcast.
Readme
@taskcast/sentry
Sentry error monitoring hooks for Taskcast. Automatically captures task failures and timeouts.
Install
pnpm add @taskcast/sentry @sentry/nodeUsage
import { TaskEngine, MemoryBroadcastProvider, MemoryShortTermStore } from '@taskcast/core'
import * as Sentry from '@sentry/node'
import { createSentryHooks } from '@taskcast/sentry'
const engine = new TaskEngine({
broadcast: new MemoryBroadcastProvider(),
shortTermStore: new MemoryShortTermStore(),
hooks: createSentryHooks(Sentry, {
captureTaskFailures: true,
captureTaskTimeouts: true,
}),
})Features
- Captures task failures as Sentry exceptions
- Captures task timeouts as Sentry exceptions
@sentry/nodeis an optional peer dependency — hooks are no-ops if Sentry is not installed
Part of Taskcast
This is the Sentry integration package. See the Taskcast monorepo for the full project.
