Overview
@saflib/vendors-sentry-node wires Sentry as the production backend for @saflib/errors-service on Node services.
What this package provides
configureSentry()— idempotent startup helper; registersSentryErrorServicewhenSENTRY_DSNis set (skipped for missing/mockDSN)SentryErrorService— implementsErrorService; forwards reported errors to Sentry and hooks@saflib/nodeerror collectorsresetErrorsForTests— clears the configured service in tests
Integration
Call configureSentry() at process startup before servers start, after setServiceName. In development use configureMockErrors() from @saflib/errors-service instead.
Environment (see env.schema.json):
SENTRY_DSN— project DSN; omit or set tomockto skip SentrySENTRY_AUTH_TOKEN— build-time token for release/source-map upload (CI only)
Further setup
Sentry org/project configuration and GitHub secrets are outside the repo. See manual setup.