@goliapkg/sentori-javascript
v1.3.0
Published
Sentori SDK for browsers and Node — error capture, breadcrumbs, distributed-tracing fetch hook (W3C traceparent), and HTTP transport.
Downloads
233
Maintainers
Readme
@goliapkg/sentori-javascript
Vanilla JavaScript / Node SDK for Sentori — error tracking with sub-millisecond startup and a NEVER-burden-host budget.
Install
bun add @goliapkg/sentori-javascript
# npm install @goliapkg/sentori-javascriptUse
import { sentori } from '@goliapkg/sentori-javascript'
sentori.init({
token: 'st_pk_…',
release: '[email protected]',
environment: 'prod',
})
try {
doWork()
} catch (err) {
sentori.captureException(err)
}Global window.onerror + unhandledrejection hooks are wired
automatically; you only need to call captureException when you
want to attach extra context (tags / fingerprint / user).
Sentry compat drop-in
// Replace `import * as Sentry from '@sentry/browser'` with:
import * as Sentry from '@goliapkg/sentori-javascript/compat'
Sentry.init({ dsn: 'st_pk_…' })
Sentry.captureException(err)→ Full docs: sentori.golia.jp/docs/getting-started/node → Sentry translation: sentori.golia.jp/docs/sentry-compat
License
Dual-licensed under Apache-2.0 OR MIT.
