sentry-integration-libsql-client
v1.3.0
Published
Sentry integration for @libsql/client
Downloads
297
Maintainers
Readme
sentry-integration-libsql-client
This is a Node integration for Sentry that adds support for @libsql/client
.
Install
npm install sentry-integration-libsql-client
Make sure to install @libsql/client
if you don't already have it.
Quickstart
import { createClient } from "@libsql/client";
import * as Sentry from "@sentry/node";
import { libsqlIntegration } from "sentry-integration-libsql-client";
const libsqlClient = createClient({
url: "libsql://...",
authToken: "...",
});
Sentry.init({
dsn: "...",
integrations: [
libsqlIntegration(libsqlClient, Sentry, {
tracing: true,
breadcrumbs: true,
errors: true,
}),
],
});
await libsqlClient.execute("SELECT * FROM users");
Not yet got a database?
npm install @libsql/client