Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through version tag as sentry release #8102

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/workers-shared/asset-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default class extends WorkerEntrypoint<Env> {
this.env.SENTRY_ACCESS_CLIENT_ID,
this.env.SENTRY_ACCESS_CLIENT_SECRET,
this.env.COLO_METADATA,
this.env.VERSION_METADATA,
this.env.CONFIG?.account_id,
this.env.CONFIG?.script_id
);
Expand Down
1 change: 1 addition & 0 deletions packages/workers-shared/router-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default {
env.SENTRY_ACCESS_CLIENT_ID,
env.SENTRY_ACCESS_CLIENT_SECRET,
env.COLO_METADATA,
env.VERSION_METADATA,
env.CONFIG?.account_id,
env.CONFIG?.script_id
);
Expand Down
2 changes: 2 additions & 0 deletions packages/workers-shared/utils/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function setupSentry(
clientId: string,
clientSecret: string,
coloMetadata?: ColoMetadata,
versionMetadata?: WorkerVersionMetadata,
accountId?: number,
scriptId?: number
): Toucan | undefined {
Expand All @@ -20,6 +21,7 @@ export function setupSentry(
request,
context,
sampleRate: 1.0,
release: versionMetadata?.tag,
requestDataOptions: {
allowedHeaders: [
"user-agent",
Expand Down
Loading