Skip to content

Instrumentation for node-schedule library #9893

Closed

Description

@AbhiPrasad

Problem Statement

Auto-instrumentation for https://www.npmjs.com/package/node-schedule that wraps schedule.scheduleJob calls in a Sentry cron monitor.

Solution Brainstorm

needs to be opt-in, so an integration that they can add.

Activity

  1. timfish commented on Dec 18, 2023

    @timfish
    Collaborator

    scheduleJob takes:

    • Crontab string
    • Date object
    • RecurrenceRule (including support for non-UTC timezones!)
    • Object Literal Syntax

    Many of these are going to be tricky or impossible to translate to Sentrys CrontabSchedule | IntervalSchedule

  2. AbhiPrasad commented on Dec 18, 2023

    @AbhiPrasad
    ContributorAuthor

    IMO we can selectively support certain inputs to scheduleJob. To start we can only do the crontab syntax and and object literal syntax, we can expand afterwards based on feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions