@goliapkg/sentori-react
v1.1.1
Published
React adapter for Sentori — Provider, ErrorBoundary (resetKeys + render-prop), Suspense, TraceRender, react-router breadcrumbs + auto-tracing.
Maintainers
Readme
@goliapkg/sentori-react
React 18 / 19 web SDK for Sentori —
SentoriProvider, SentoriErrorBoundary, and a Suspense-aware
fallback wrapper.
Install
bun add @goliapkg/sentori-react @goliapkg/sentori-javascriptUse
import { SentoriProvider, SentoriErrorBoundary } from '@goliapkg/sentori-react'
function Root() {
return (
<SentoriProvider
config={{
token: 'st_pk_…',
release: '[email protected]',
environment: 'prod',
}}
>
<SentoriErrorBoundary fallback={<p>Something broke.</p>}>
<App />
</SentoriErrorBoundary>
</SentoriProvider>
)
}Errors thrown in render or in effect cleanup get captured with the React component stack attached.
→ Full guide: sentori.golia.jp/docs/getting-started/react → Sentry drop-in: sentori.golia.jp/docs/sentry-compat
License
Dual-licensed under Apache-2.0 OR MIT.
