• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
gaprl

gaprl

sentry_crons_example

Public
Like
2
sentry_crons_example
Home
Code
2
README.md
C
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Sentry Crons monitoring for scheduled functions in val.town

Use this val to monitor your schedule jobs for any issues and report them directly to Sentry Crons.

How to configure

  1. After forking, find the DSN for your Sentry project by going to Settings > Projects > Select your project >Settings > Client Keys (DSN).
  2. Add your DSN to as a SENTRY_DSN in your val.town environment variables.
  3. Change the monitorConfig.schedule.value Crontab expression to match your job run.
  4. Replace the run() function with your scheduled function.
  5. Alter any other monitor config properties to better fit your scheduled function. Learn more.

Benefits

This val will automatically create and set up a Cron monitor in Sentry, and report all of your runs as check-ins. If your job ever misses a run or fails, Sentry will notify you.

CleanShot 2024-02-05 at 13.56.32@2x.png

Any errors that occur in your scheduled function will be reported directly into Sentry:

CleanShot 2024-02-05 at 13.53.11@2x.png

Cron
  • main.tsx
Code
README.md
C
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.