Skip to content

Commit b6ea280

Browse files
authored
refactor: add service tag to be sent to sentry (#3759)
* refactor: add service tag to be sent to sentry * Create fresh-sheep-remain.md
1 parent 122126a commit b6ea280

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/fresh-sheep-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@commercetools-frontend/sentry": patch
3+
---
4+
5+
Add service tag to be sent to sentry.

packages/sentry/src/sentry.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ export const boot = () => {
110110
const sentryScope = Sentry.getCurrentScope();
111111
sentryScope.setTag('role', 'frontend');
112112
sentryScope.setTag('applicationName', window.app.applicationName);
113+
sentryScope.setTag(
114+
'service',
115+
`merchant-center-frontend-${window.app.applicationName}`
116+
);
113117
}
114118
};
115119

0 commit comments

Comments
 (0)