-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add Distributed Tracing Docs for Uptime #11911
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Bundle ReportChanges will increase total bundle size by 444 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
| ### Disabling Uptime Tracing of Errors | ||
|
|
||
| To disable error tracing for uptime checks, configure a [before send](/platform-redirect/?next=/configuration/filtering/) filter in your SDK to ignore errors from Sentry's `User-Agent`. Here's an example: | ||
|
|
||
| ```typescript {tabTitle: Node.js Express} {filename: instrument.mjs} | ||
| import * as Sentry from "@sentry/node"; | ||
|
|
||
| Sentry.init({ | ||
| dsn: "___PUBLIC_DSN___", | ||
| // Filtering example for a Node.js Express app | ||
| beforeSend(event) { | ||
| const userAgent = event.request?.headers?.["user-agent"]; | ||
|
|
||
| // Ignore events captured in a request from SentryUptimeBot | ||
| if (userAgent && userAgent.includes("SentryUptimeBot")) { | ||
| return null; | ||
| } | ||
|
|
||
| // Process other events | ||
| return event; | ||
| }, | ||
| }); | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section feels a little high, since I imagine most people don't want to disable error tracing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, let me see if I can move this lower or just put it in a toggle
| ## Billing Considerations | ||
| Captured errors and spans from uptime check requests are billed as regular events in Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a page we can link to for this?
lizokm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this!! I made some language tweaks :) Let me know if you'd like to chat through anything.
|
Gonna go ahead and merge, we can iterate on this later! |
Adds a new distributed tracing page for uptime that describes how it works, and how it can be enabled or disabled for errors and spans.