-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,6 @@ | |
- slug: bun | ||
type: framework | ||
name: Bun | ||
- slug: deno | ||
type: framework | ||
name: Deno |
20 changes: 20 additions & 0 deletions
20
src/platform-includes/getting-started-config/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
```javascript | ||
// Import from the Deno registry | ||
import * as Sentry from "https://deno.land/x/sentry/index.mjs"; | ||
|
||
// or import from npm registry | ||
import * as Sentry from 'npm:@sentry/deno'; | ||
|
||
Sentry.init({ | ||
dsn: '___PUBLIC_DSN___', | ||
// ... | ||
}); | ||
``` | ||
|
||
To ensure the SDK can send events, you should enable network access for your | ||
ingestion domain: | ||
|
||
```bash | ||
deno run index.ts --allow-net=___ORG_INGEST_DOMAIN___ | ||
``` |
5 changes: 5 additions & 0 deletions
5
src/platform-includes/getting-started-primer/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Note> | ||
|
||
The Deno SDK is currently in Beta. | ||
|
||
</Note> |
7 changes: 7 additions & 0 deletions
7
src/platform-includes/getting-started-sourcemaps/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Allow access to your source files | ||
|
||
To ensure the SDK can include your source code in stack traces, you should enable read access for your source files: | ||
|
||
```bash | ||
deno run index.ts --allow-read=./src | ||
``` |
7 changes: 7 additions & 0 deletions
7
src/platform-includes/getting-started-verify/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Verify your setup by adding the following snippet anywhere in your code and running it: | ||
|
||
```javascript | ||
setTimeout(() => { | ||
throw new Error(); | ||
}); | ||
``` |
20 changes: 20 additions & 0 deletions
20
src/platform-includes/performance/configure-sample-rate/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<SignInNote /> | ||
|
||
```javascript | ||
// Import from the Deno registry | ||
import * as Sentry from "https://deno.land/x/sentry/index.mjs"; | ||
|
||
// or import from npm registry | ||
import * as Sentry from 'npm:@sentry/deno'; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// We recommend adjusting this value in production, or using tracesSampler | ||
// for finer control | ||
tracesSampleRate: 1.0, | ||
|
||
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled | ||
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], | ||
}); | ||
``` |
1 change: 1 addition & 0 deletions
1
src/platform-includes/performance/enable-tracing/javascript.deno.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tracing is enabled by default in the Sentry Deno SDK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: Deno | ||
sdk: sentry.javascript.deno | ||
fallbackPlatform: javascript | ||
caseStyle: camelCase | ||
supportLevel: production | ||
icon: deno | ||
categories: | ||
- server |