Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GJZwiers/sentry_deno
Unofficial port of the Sentry SDK for JavaScript to Deno.
https://github.com/GJZwiers/sentry_deno
deno
Last synced: 25 days ago
JSON representation
Unofficial port of the Sentry SDK for JavaScript to Deno.
- Host: GitHub
- URL: https://github.com/GJZwiers/sentry_deno
- Owner: GJZwiers
- License: bsd-3-clause
- Created: 2022-07-03T12:23:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T12:27:14.000Z (over 2 years ago)
- Last Synced: 2024-11-17T14:12:16.601Z (26 days ago)
- Topics: deno
- Language: TypeScript
- Homepage: https://deno.land/x/sentry_deno
- Size: 27.7 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - sentry_deno - Unofficial port of the Sentry SDK for JavaScript to Deno. (Modules / Logging)
README
> **Note**
> As of Deno v1.25 it is possible to import the Sentry SDK for Node directly into Deno using npm URLs, e.g. `import * as Sentry from 'npm:@sentry/node'. Therefore I have deprecated this module. You are still welcome to use it, but I will no longer update it.# Sentry_deno
This is an unofficial port of the Sentry SDK (`@sentry/browser`) to Deno.
```ts
import * as Sentry from "https://deno.land/x/sentry_deno/main.ts";
import * as log from "https://deno.land/[email protected]/log/mod.ts";Sentry.init({
dsn: "",
tracesSampleRate: 1.0,
});async function testEvent() {
log.info("Sending test event to Sentry.");try {
throw new Error("Nope.");
} catch (e) {
Sentry.captureException(e);
// Sentry.captureMessage("Gotcha!");
await Sentry.flush();
}
}await testEvent();
```[Sentry Docs](https://docs.sentry.io/platforms/javascript/)
Note: Some code in this repository may not yet pass type-checking. Running this module with `deno run --check` may not always succeed.