Unofficial port of the Sentry SDK for JavaScript to Deno.

Overview

Sentry_deno

This is an unofficial port of the Sentry SDK (@sentry/browser) to Deno.

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: "<your-sentry-dsn-here>",
  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

Note: Some code in this repository may not yet pass type-checking. Running this module with deno run --check may not always succeed.

You might also like...

Deno port of Gnome libraries (such as Gtk).

Deno GI Deno port of Gnome libraries (such as Gtk). Early Stage and Unstable Usage You must specify --allow-ffi and --unstable flags to run your progr

Dec 24, 2022

🦕 Deno port of Microsoft/vscode-textmate: A library that helps tokenize text using TextMate grammars.

TextMate A library that helps tokenize text using TextMate grammars. Deno port of Microsoft/vscode-textmate. See original license here. An interpreter

Sep 13, 2022

The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling rapid development of iofod extensions through the SDK.

iofod-sdk English | 简体中文 The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling

Oct 17, 2022

Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's `move-ts`.

Movehat Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's move-ts. Movehat aspires to b

Sep 30, 2022

This is a simple boilerplate for a Deno website, deployed with Deno Deploy.

Simple Deno Website Boilerplate This is a simple website boilerplate built using Deno and deployed using Deno Deploy. Demo at simple-deno-website-boil

Dec 3, 2022

Deno bindings for yoga, using Deno FFI.

deno_yoga Deno bindings for yoga, using Deno FFI. Usage flags: --allow-ffi: Requires ffi access to "yogacore.dll", "libyogacore.so", "libyogacore.dyli

Feb 11, 2022

🛣️ A tiny and fast http request router designed for use with deno and deno deploy

Rutt Rutt is a tiny http router designed for use with deno and deno deploy. It is written in about 200 lines of code and is pretty fast, using an exte

Dec 10, 2022

A small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity

A small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity

Wren Wren is a small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity. convenient aliases for HTTP responses au

Dec 12, 2022

deno-ja (Deno Japanese community) showcase

Showcase Deno本家よりも気軽に作ったものを公開できるようなShowcaseです。 スクリーンショットの撮影方法 短めのidを決めていただいて、下記のようにスクリプトを実行してください。 deno task screenshot [url] [id] ※エラーが出る場合は、下記を実行してみ

Oct 28, 2022
Comments
  • npm specifiers have not yet been implemented for this sub command error

    npm specifiers have not yet been implemented for this sub command error

    Hi! In your README you mention that it should now be possible to import Sentry using the following:

    import * as Sentry from "npm:@sentry/node";
    

    However, when I do this, I get the following error:

    error: npm specifiers have not yet been implemented for this sub command (https://github.com/denoland/deno/issues/15960). Found: npm:@sentry/node
    

    Am I doing something wrong? Thanks in advance for your help.

    opened by cayblood 5
Releases(v0.2.2)
  • v0.2.2(Aug 26, 2022)

    What's Changed

    • Update README.md by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/13

    Full Changelog: https://github.com/GJZwiers/sentry_deno/compare/v0.2.1...v0.2.2

    Source code(tar.gz)
    Source code(zip)
  • v0.2.1(Aug 26, 2022)

    What's Changed

    • chore: add deprecation notice by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/12

    Full Changelog: https://github.com/GJZwiers/sentry_deno/compare/v0.2.0...v0.2.1

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Jul 23, 2022)

  • v0.1.8(Jul 17, 2022)

    What's Changed

    • chore: fix type issues by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/10

    Full Changelog: https://github.com/GJZwiers/sentry_deno/compare/v0.1.7...v0.1.8

    Source code(tar.gz)
    Source code(zip)
  • v0.1.7(Jul 16, 2022)

    What's Changed

    • chore: remove config files by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/9

    Full Changelog: https://github.com/GJZwiers/sentry_deno/compare/v0.1.6...v0.1.7

    Source code(tar.gz)
    Source code(zip)
  • v0.1.6(Jul 16, 2022)

    What's Changed

    • update imports in wasm pkg by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/6
    • remove unnecessary checks by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/7
    • chore: more cleanups by @GJZwiers in https://github.com/GJZwiers/sentry_deno/pull/8

    Full Changelog: https://github.com/GJZwiers/sentry_deno/compare/v0.1.5...v0.1.6

    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Jul 11, 2022)

  • v0.1.2(Jul 10, 2022)

  • v0.1.0(Jul 10, 2022)

    This is an unofficial port of the Sentry SDK for JavaScript to Deno. Not all things may work, or work the same way, but it should be possible to initialize Sentry and send events in a Deno program.

    Source code(tar.gz)
    Source code(zip)
Owner
Geert-Jan Zwiers
Bug hunter-gatherer who is interested in TypeScript, Rust and Deno.
Geert-Jan Zwiers
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy

Atlas SDK atlas_sdk is a TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy Links Docs Import Replace LATEST_VERSION with current latest versi

Erfan Safari 20 Dec 26, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
solid material ui port (ported from blazor port)

solid-material-ui solid material ui port (porting from blazor port) In preparation for solid hack Turbo Mono-repository is used for component package

skclusive 18 Apr 30, 2022
Opinionated collection of TypeScript definitions and utilities for Deno and Deno Deploy. With complete types for Deno/NPM/TS config files, constructed from official JSON schemas.

Schemas Note: You can also import any type from the default module, ./mod.ts deno.json import { type DenoJson } from "https://deno.land/x/[email protected]

deno911 2 Oct 12, 2022
Unofficial Deno Module for Nekos.best

Nekos-Best-Deno Unofficial Deno module for nekos.best. If you're using Nodejs please use the official javascript wrapper. Usage Import the module in y

Yakiyo 3 Jan 4, 2023
Fluent for Deno. Port of @the-moebius/fluent.

Fluent for Deno [better_fluent] Deno port of the-moebius/fluent Better Fluent integration for TypeScript/JavaScript. See the original repository for m

Dunkan 5 May 29, 2022
Grm is an improved Deno port of GramJS, written in TypeScript

Grm is an improved Deno port of GramJS, written in TypeScript. GramJS is a popular MTProto API Telegram client library written in JavaScript for Node.js and browsers, with its core being based on Telethon.

Dunkan 26 Dec 31, 2022
Improved Deno port of GramJS — a MTProto API Telegram client library.

Warning Considered as unstable. But, most of the commonly used features are working as expected. Grm Grm is an improved Deno port of GramJS, written i

Dunkan 26 Dec 31, 2022