Skip to content

Conversation

@evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Dec 2, 2025

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner December 2, 2025 20:54
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team December 2, 2025 20:54
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 2, 2025
@linear
Copy link

linear bot commented Dec 2, 2025

Comment on lines 26 to +48
CeleryBeatAutoDiscovery,
CLIUpsertPlatformGuide,
CurlUpsertPlatformGuide,
DenoUpsertPlatformGuide,
DotNetUpsertPlatformGuide,
ElixirObanPlatformGuide,
ElixirQuantumPlatformGuide,
ElixirUpsertPlatformGuide,
GoUpsertPlatformGuide,
JavaSpringBootUpsertPlatformGuide,
JavaUpsertPlatformGuide,
LaravelUpsertPlatformGuide,
NestJSUpsertPlatformGuide,
NextJSUpsertPlatformGuide,
NodeJsUpsertPlatformGuide,
PHPUpsertPlatformGuide,
PythonUpsertPlatformGuide,
RubyActiveJobPlatformGuide,
RubyRailsMixinPlatformGuide,
RubySidekiqAutoPlatformGuide,
RubySidekiqMixinPlatformGuide,
RubyUpsertPlatformGuide,
} from './quickStartEntries';
} from './upsertPlatformGuides';
Copy link
Member Author

Choose a reason for hiding this comment

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

These are what we added

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved the upsert guides out of here and into upsertPlatformGuides.tsx

Comment on lines 449 to 492
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_interval(10, :minute)
# define the monitor config with a crontab
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_crontab('5 * * * *')`;
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_crontab('*/10 * * * *')`;

return (
<Fragment>
<div>
{tct(
'[installLink:Install and configure] the Sentry Ruby and Rails SDKs (min v5.12.0), then instrument your job with our mixin module:',
{
installLink: (
<ExternalLink href="https://docs.sentry.io/platforms/ruby/guides/rails/" />
),
}
)}
</div>
<CodeBlock language="ruby">{mixinCode}</CodeBlock>
<div>{t('You can pass in optional attributes as follows:')}</div>
<CodeBlock language="ruby">{customCode}</CodeBlock>
</Fragment>
);
}

export function RubySidekiqCronQuickStart(props: QuickStartProps) {
const {slug} = withDefaultProps(props);

const mixinCode = `class ExampleJob
incude Sidekiq::Job
include Sidekiq::Job
include Sentry::Cron::MonitorCheckIns
# slug defaults to the job class name
sentry_monitor_check_ins slug: '${slug}'
def perform(*args)
# do stuff
end
end`;

const customCode = `# define the monitor config with an interval
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_interval(1, :minute)
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_interval(10, :minute)
# define the monitor config with a crontab
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_crontab('5 * * * *')`;
sentry_monitor_check_ins slug: '${slug}', monitor_config: Sentry::Cron::MonitorConfig.from_crontab('*/10 * * * *')`;
Copy link
Member Author

Choose a reason for hiding this comment

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

Changes for consistency

@evanpurkhiser evanpurkhiser merged commit e651259 into master Dec 3, 2025
51 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-crons-add-missing-guides-consistency branch December 3, 2025 18:59
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants