Explorar o código

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
Tim Down %!s(int64=4) %!d(string=hai) anos
pai
achega
40bbaf168b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      services/web/frontend/js/infrastructure/error-reporter.js

+ 2 - 1
services/web/frontend/js/infrastructure/error-reporter.js

@@ -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())
           }
         }