https://github.com/notrab/sentry-integration-libsql-client
The Sentry integration for libSQL
https://github.com/notrab/sentry-integration-libsql-client
libsql sentry sentry-integration sqlite
Last synced: 5 months ago
JSON representation
The Sentry integration for libSQL
- Host: GitHub
- URL: https://github.com/notrab/sentry-integration-libsql-client
- Owner: notrab
- License: mit
- Created: 2024-07-10T13:10:13.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T14:19:56.000Z (7 months ago)
- Last Synced: 2024-09-17T15:26:28.962Z (7 months ago)
- Topics: libsql, sentry, sentry-integration, sqlite
- Language: TypeScript
- Homepage: https://docs.turso.tech/sdk/ts/integrations/sentry
- Size: 77.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sentry-integration-libsql-client
This is a Node integration for Sentry that adds support for `@libsql/client`.

## Install
```bash
npm install sentry-integration-libsql-client
```Make sure to install `@libsql/client` if you don't already have it.
## Quickstart
```ts
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?
1. [](https://sqlite.new)
2. Copy the Database URL, and create an auth token for your database
3. Install the libSQL SDK```bash
npm install @libsql/client
```