Merge pull request #7744 from overleaf/td-sentry-tag-name-change

Ensure split test Sentry tag names are within the 32-character limit

GitOrigin-RevId: cc5cc5629b8b7e988d3ca6471892c8f90cf5171b
This commit is contained in:
Tim Down 2022-04-26 10:37:22 +01:00 committed by Copybot
parent 998b4393e6
commit 40bbaf168b

View file

@ -57,7 +57,8 @@ function sentryReporter() {
const splitTestAssignments = getMeta('ol-splitTestVariants')
if (splitTestAssignments) {
for (const [name, value] of Object.entries(splitTestAssignments)) {
Sentry.setTag(`ol.splitTest.${name}`, value.toString())
// Ensure Sentry tag name is within the 32-character limit
Sentry.setTag(`ol.${name}`.slice(0, 32), value.toString())
}
}