Skip to content

Commit

Permalink
Add package to Sentry release to ensure apps don't mix
Browse files Browse the repository at this point in the history
  • Loading branch information
Qstick committed Jul 3, 2023
1 parent 418aac0 commit 1217533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Expand Up @@ -363,7 +363,7 @@ stages:
- bash: |
echo "Uploading source maps to sentry"
curl -sL https://sentry.io/get-cli/ | bash
RELEASENAME="${LIDARRVERSION}-${BUILD_SOURCEBRANCHNAME}"
RELEASENAME="$Lidarr@{LIDARRVERSION}-${BUILD_SOURCEBRANCHNAME}"
sentry-cli releases new --finalize -p lidarr -p lidarr-ui -p lidarr-update "${RELEASENAME}"
sentry-cli releases -p lidarr-ui files "${RELEASENAME}" upload-sourcemaps _output/UI/ --rewrite
sentry-cli releases set-commits --auto "${RELEASENAME}"
Expand Down
2 changes: 1 addition & 1 deletion src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs
Expand Up @@ -100,7 +100,7 @@ public SentryTarget(string dsn)
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;
Expand Down

0 comments on commit 1217533

Please sign in to comment.