Skip to content

Add Hono guide #12710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/best-practices/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
---
Expand Down
28 changes: 16 additions & 12 deletions docs/platforms/javascript/common/best-practices/micro-frontends.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
keywords:
Expand Down Expand Up @@ -131,6 +132,7 @@ init({
},
});
```

```html {tabTitle:CDN/Loader Bundle}{filename:index.html}
<script
src="https://browser.sentry-cdn.com/{{@inject packages.version('sentry.javascript.browser') }}/bundle.min.js"
Expand All @@ -150,22 +152,24 @@ init({
crossorigin="anonymous"
></script>


<script>
const EXTRA_KEY = "ROUTE_TO";

const transport = Sentry.makeMultiplexedTransport(Sentry.makeFetchTransport, (args) => {
const event = args.getEvent();
if (
event &&
event.extra &&
EXTRA_KEY in event.extra &&
Array.isArray(event.extra[EXTRA_KEY])
) {
return event.extra[EXTRA_KEY];
const transport = Sentry.makeMultiplexedTransport(
Sentry.makeFetchTransport,
(args) => {
const event = args.getEvent();
if (
event &&
event.extra &&
EXTRA_KEY in event.extra &&
Array.isArray(event.extra[EXTRA_KEY])
) {
return event.extra[EXTRA_KEY];
}
return [];
}
return [];
});
);

Sentry.init({
dsn: "__DEFAULT_DSN__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
keywords: ["multiple clients", "BrowserClient", "NodeClient", "monorepo"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
---
Expand All @@ -48,7 +49,6 @@ pnpm add @sentry/browser

Then you can use it:


```javascript {filename:index.js}
import * as Sentry from "@sentry/browser";

Expand Down Expand Up @@ -85,7 +85,6 @@ self.onmessage = (message) => {

#### Usage With Worker-Level Initialization


```javascript {filename:worker.js}
import * as Sentry from "@sentry/browser";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.electron
- javascript.nestjs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down Expand Up @@ -52,5 +53,3 @@ If set to `true`, the integration will include the arguments used to start child
_Type: `boolean`_

By default, this option is `true`. If set to `false`, the integration will not capture errors from worker threads.


Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.bun
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.electron
- javascript.nestjs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- javascript.fastify
- javascript.gcp-functions
- javascript.hapi
- javascript.hono
- javascript.koa
- javascript.nestjs
- javascript.electron
Expand Down
Loading
Loading