File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # sentry-integration-libsql-client
2+
3+ This is a Node integration for Sentry that adds support for ` @libsql/client ` .
4+
5+ ![ NPM] ( https://img.shields.io/npm/v/sentry-integration-libsql-client )
6+
7+ ## Install
8+
9+ ``` bash
10+ npm install sentry-integration-libsql-client
11+ ```
12+
13+ Make sure to install ` @libsql/client ` if you don't already have it.
14+
15+ ## Quickstart
16+
17+ ``` ts
18+ import { createClient } from " @libsql/client" ;
19+ import * as Sentry from " @sentry/node" ;
20+
21+ const libsqlClient = createClient ({
22+ url: " ..." ,
23+ authToken: " ..." ,
24+ });
25+
26+ Sentry .init ({
27+ dsn: " ..." ,
28+ tracesSampleRate: 1 ,
29+ profilesSampleRate: 1 ,
30+ integrations: [libsqlIntegration (libsqlClient , Sentry )],
31+ });
32+
33+ await libsqlClient .execute (" SELECT * FROM users" );
34+ ```
You can’t perform that action at this time.
0 commit comments