-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add Distributed Tracing Docs for Uptime #11911
base: master
Are you sure you want to change the base?
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
|
|
||
## How Uptime Tracing Works | ||
|
||
Sentry Uptime Tracing automatically appends a `sentry-trace` header to every outgoing request made to the configured URL in your Uptime Alert settings. This header propagates trace information. |
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.
Sentry Uptime Tracing automatically appends a `sentry-trace` header to every outgoing request made to the configured URL in your Uptime Alert settings. This header propagates trace information. | |
Sentry Uptime Tracing automatically appends a `sentry-trace` header to every outgoing request made to the configured URL in your Uptime Alert settings. This header propagates a trace identifier. |
maybe more obvious?
<Alert level="warning" title="Important"> | ||
|
||
Uptime check requests do not override your SDK's error sampling rate. If your SDK’s error sample rate is set below 1, some errors from uptime check requests may not appear in the trace. | ||
|
||
</Alert> |
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.
<Alert level="warning" title="Important"> | |
Uptime check requests do not override your SDK's error sampling rate. If your SDK’s error sample rate is set below 1, some errors from uptime check requests may not appear in the trace. | |
</Alert> | |
<Alert level="warning" title="Important"> | |
Uptime check requests do not override your SDK's error sampling rate. If your SDK’s error sample rate is set below 1, some errors from uptime check requests may not appear in the trace. | |
</Alert> |
I think you don't need these spaces anymore
### 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
<Alert level="warning" title="Important"> | ||
|
||
Uptime check requests do not override your SDK's trace sampling rate. If your SDK's trace sample rate is set below 1, some spans from uptime check requests may not appear in the trace. | ||
|
||
</Alert> |
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.
<Alert level="warning" title="Important"> | |
Uptime check requests do not override your SDK's trace sampling rate. If your SDK's trace sample rate is set below 1, some spans from uptime check requests may not appear in the trace. | |
</Alert> | |
<Alert level="warning" title="Important"> | |
Uptime check requests do not override your SDK's trace sampling rate. If your SDK's trace sample rate is set below 1, some spans from uptime check requests may not appear in the trace. | |
</Alert> |
|
||
## 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?
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.