From ef575452219eebd33a1c38f95733b5ea965d3633 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 4 Jul 2023 12:12:44 -0500 Subject: [PATCH] Add package to Sentry release to ensure apps don't mix --- azure-pipelines.yml | 2 +- src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fc457594e..16f4e54c2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -382,7 +382,7 @@ stages: - bash: | echo "Uploading source maps to sentry" curl -sL https://sentry.io/get-cli/ | bash - RELEASENAME="${READARRVERSION}-${BUILD_SOURCEBRANCHNAME}" + RELEASENAME="Readarr@${READARRVERSION}-${BUILD_SOURCEBRANCHNAME}" sentry-cli releases new --finalize -p readarr -p readarr-ui -p readarr-update "${RELEASENAME}" sentry-cli releases -p readarr-ui files "${RELEASENAME}" upload-sourcemaps _output/UI/ --rewrite sentry-cli releases set-commits --auto "${RELEASENAME}" diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index cfc62ed2f..1f2fb09ce 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -100,7 +100,7 @@ namespace NzbDrone.Common.Instrumentation.Sentry o.Dsn = dsn; o.AttachStacktrace = true; o.MaxBreadcrumbs = 200; - o.Release = BuildInfo.Release; + o.Release = $"{BuildInfo.AppName}@{BuildInfo.Release}"; o.BeforeSend = x => SentryCleanser.CleanseEvent(x); o.BeforeBreadcrumb = x => SentryCleanser.CleanseBreadcrumb(x); o.Environment = BuildInfo.Branch;