Skip to content

Conversation

@gaprl
Copy link
Member

@gaprl gaprl commented Nov 22, 2024

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.

@vercel
Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs 🛑 Canceled (Inspect) Dec 13, 2024 8:05pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Dec 13, 2024 8:05pm
develop-docs ⬜️ Ignored (Inspect) Visit Preview Dec 13, 2024 8:05pm

@codecov
Copy link

codecov bot commented Nov 22, 2024

Bundle Report

Changes will increase total bundle size by 444 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.28MB 450 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.29MB 6 bytes (-0.0%) ⬇️

Comment on lines 36 to 58
### 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;
},
});
```
Copy link
Member

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

Copy link
Member Author

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.
Copy link
Member

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?

Copy link
Contributor

@lizokm lizokm left a 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.

@evanpurkhiser
Copy link
Member

Gonna go ahead and merge, we can iterate on this later!

@evanpurkhiser evanpurkhiser merged commit 37cab66 into master Dec 16, 2024
11 checks passed
@evanpurkhiser evanpurkhiser deleted the gaprl/add-uptime-tracing-docs branch December 16, 2024 17:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants