Skip to content

Commit

Permalink
ref(crons): Remove outdated connect errors section (#8165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py authored Oct 10, 2023
1 parent 553c8cf commit 6dd3a43
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/platforms/common/crons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -261,32 +261,6 @@ GET /api/___PROJECT_ID___/cron/<monitor_slug>/___PUBLIC_KEY___/?status=error HTT
Host: ___ORG_INGEST_DOMAIN___
```

## Connecting Errors to Cron Monitors

If you're capturing Sentry errors, you can link them to a Cron Monitor by using context.

```python {tabTitle: Python}
sentry_sdk.set_context("monitor", {
"slug": "<monitor_slug>",
})
```

```php
\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
$scope->setContext('monitor', [
'slug' => '<monitor_slug>',
]);
});
```

```javascript {tabTitle: JavaScript (Node.JS)}
Sentry.setContext("monitor", {
slug: "<monitor_slug>",
});
```

See [additional context examples](/platform-redirect/?next=/enriching-events/context/) for your platform.

</PlatformSection>

## Alerts
Expand Down

1 comment on commit 6dd3a43

@vercel
Copy link

@vercel vercel bot commented on 6dd3a43 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs-git-master.sentry.dev
docs.sentry.io
sentry-docs.sentry.dev

Please sign in to comment.