feat: Add git commit SHAs to Sentry release

This commit is contained in:
Jesse Wierzbinski 2024-07-26 00:20:58 +02:00
parent 152e42fd30
commit 420a0d05dc
No known key found for this signature in database

View file

@ -13,7 +13,9 @@ const sentryInstance =
environment: config.logging.sentry.environment,
tracePropagationTargets:
config.logging.sentry.trace_propagation_targets,
release: pkg.version,
release: Bun.env.GIT_COMMIT
? `${pkg.version}-${Bun.env.GIT_COMMIT}`
: pkg.version,
});
export const sentry = sentryInstance || undefined;