We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a548013 commit 3f9c2eeCopy full SHA for 3f9c2ee
1 file changed
packages/browser/src/integrations/culturecontext.ts
@@ -1,5 +1,5 @@
1
import type { CultureContext, IntegrationFn } from '@sentry/core';
2
-import { defineIntegration } from '@sentry/core';
+import { defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core';
3
import { WINDOW } from '../helpers';
4
5
const INTEGRATION_NAME = 'CultureContext';
@@ -21,12 +21,11 @@ const _cultureContextIntegration = (() => {
21
const culture = getCultureContext();
22
23
if (culture) {
24
- span.attributes = {
+ safeSetSpanJSONAttributes(span, {
25
'culture.locale': culture.locale,
26
'culture.timezone': culture.timezone,
27
'culture.calendar': culture.calendar,
28
- ...span.attributes,
29
- };
+ });
30
}
31
},
32
};
0 commit comments