@@ -897,6 +897,30 @@ export const BROWSER_VERSION = 'browser.version';
897897 */
898898export type BROWSER_VERSION_TYPE = string ;
899899
900+ // Path: model/attributes/browser/browser__web_vital__cls__source__[key].json
901+
902+ /**
903+ * The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N `browser.web_vital.cls.source.<key>`
904+ *
905+ * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE}
906+ *
907+ * Contains PII: maybe
908+ *
909+ * Attribute defined in OTEL: No
910+ *
911+ * Has Dynamic Suffix: true
912+ *
913+ * Aliases: {@link CLS_SOURCE_KEY} `cls.source.<key>`
914+ *
915+ * @example "body > div#app"
916+ */
917+ export const BROWSER_WEB_VITAL_CLS_SOURCE_KEY = 'browser.web_vital.cls.source.<key>' ;
918+
919+ /**
920+ * Type for {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} browser.web_vital.cls.source.<key>
921+ */
922+ export type BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE = string ;
923+
900924// Path: model/attributes/browser/browser__web_vital__cls__value.json
901925
902926/**
@@ -1208,6 +1232,31 @@ export const CLS = 'cls';
12081232 */
12091233export type CLS_TYPE = number ;
12101234
1235+ // Path: model/attributes/cls/cls__source__[key].json
1236+
1237+ /**
1238+ * The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N `cls.source.<key>`
1239+ *
1240+ * Attribute Value Type: `string` {@link CLS_SOURCE_KEY_TYPE}
1241+ *
1242+ * Contains PII: maybe
1243+ *
1244+ * Attribute defined in OTEL: No
1245+ *
1246+ * Has Dynamic Suffix: true
1247+ *
1248+ * Aliases: {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} `browser.web_vital.cls.source.<key>`
1249+ *
1250+ * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} (browser.web_vital.cls.source.<key>) instead - The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.
1251+ * @example "body > div#app"
1252+ */
1253+ export const CLS_SOURCE_KEY = 'cls.source.<key>' ;
1254+
1255+ /**
1256+ * Type for {@link CLS_SOURCE_KEY} cls.source.<key>
1257+ */
1258+ export type CLS_SOURCE_KEY_TYPE = string ;
1259+
12111260// Path: model/attributes/code/code__filepath.json
12121261
12131262/**
@@ -9173,6 +9222,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
91739222 [ BROWSER_SCRIPT_INVOKER_TYPE ] : 'string' ,
91749223 [ BROWSER_SCRIPT_SOURCE_CHAR_POSITION ] : 'integer' ,
91759224 [ BROWSER_VERSION ] : 'string' ,
9225+ [ BROWSER_WEB_VITAL_CLS_SOURCE_KEY ] : 'string' ,
91769226 [ BROWSER_WEB_VITAL_CLS_VALUE ] : 'double' ,
91779227 [ BROWSER_WEB_VITAL_INP_VALUE ] : 'double' ,
91789228 [ BROWSER_WEB_VITAL_LCP_VALUE ] : 'double' ,
@@ -9188,6 +9238,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
91889238 [ CLOUDFLARE_D1_ROWS_READ ] : 'integer' ,
91899239 [ CLOUDFLARE_D1_ROWS_WRITTEN ] : 'integer' ,
91909240 [ CLS ] : 'double' ,
9241+ [ CLS_SOURCE_KEY ] : 'string' ,
91919242 [ CODE_FILEPATH ] : 'string' ,
91929243 [ CODE_FILE_PATH ] : 'string' ,
91939244 [ CODE_FUNCTION ] : 'string' ,
@@ -9611,6 +9662,7 @@ export type AttributeName =
96119662 | typeof BROWSER_SCRIPT_INVOKER_TYPE
96129663 | typeof BROWSER_SCRIPT_SOURCE_CHAR_POSITION
96139664 | typeof BROWSER_VERSION
9665+ | typeof BROWSER_WEB_VITAL_CLS_SOURCE_KEY
96149666 | typeof BROWSER_WEB_VITAL_CLS_VALUE
96159667 | typeof BROWSER_WEB_VITAL_INP_VALUE
96169668 | typeof BROWSER_WEB_VITAL_LCP_VALUE
@@ -9626,6 +9678,7 @@ export type AttributeName =
96269678 | typeof CLOUDFLARE_D1_ROWS_READ
96279679 | typeof CLOUDFLARE_D1_ROWS_WRITTEN
96289680 | typeof CLS
9681+ | typeof CLS_SOURCE_KEY
96299682 | typeof CODE_FILEPATH
96309683 | typeof CODE_FILE_PATH
96319684 | typeof CODE_FUNCTION
@@ -10593,6 +10646,19 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1059310646 aliases : [ SENTRY_BROWSER_VERSION ] ,
1059410647 changelog : [ { version : '0.1.0' , prs : [ 59 , 127 , 139 ] } ] ,
1059510648 } ,
10649+ [ BROWSER_WEB_VITAL_CLS_SOURCE_KEY ] : {
10650+ brief : 'The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N' ,
10651+ type : 'string' ,
10652+ pii : {
10653+ isPii : 'maybe' ,
10654+ } ,
10655+ isInOtel : false ,
10656+ hasDynamicSuffix : true ,
10657+ example : 'body > div#app' ,
10658+ aliases : [ CLS_SOURCE_KEY ] ,
10659+ sdks : [ 'javascript-browser' ] ,
10660+ changelog : [ { version : 'next' , prs : [ 234 ] } ] ,
10661+ } ,
1059610662 [ BROWSER_WEB_VITAL_CLS_VALUE ] : {
1059710663 brief : 'The value of the recorded Cumulative Layout Shift (CLS) web vital' ,
1059810664 type : 'double' ,
@@ -10771,6 +10837,23 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1077110837 } ,
1077210838 ] ,
1077310839 } ,
10840+ [ CLS_SOURCE_KEY ] : {
10841+ brief : 'The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N' ,
10842+ type : 'string' ,
10843+ pii : {
10844+ isPii : 'maybe' ,
10845+ } ,
10846+ isInOtel : false ,
10847+ hasDynamicSuffix : true ,
10848+ example : 'body > div#app' ,
10849+ deprecation : {
10850+ replacement : 'browser.web_vital.cls.source.<key>' ,
10851+ reason : 'The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.' ,
10852+ } ,
10853+ aliases : [ BROWSER_WEB_VITAL_CLS_SOURCE_KEY ] ,
10854+ sdks : [ 'javascript-browser' ] ,
10855+ changelog : [ { version : 'next' , prs : [ 234 ] } ] ,
10856+ } ,
1077410857 [ CODE_FILEPATH ] : {
1077510858 brief :
1077610859 'The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).' ,
@@ -15225,6 +15308,7 @@ export type Attributes = {
1522515308 [ BROWSER_SCRIPT_INVOKER_TYPE ] ?: BROWSER_SCRIPT_INVOKER_TYPE_TYPE ;
1522615309 [ BROWSER_SCRIPT_SOURCE_CHAR_POSITION ] ?: BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE ;
1522715310 [ BROWSER_VERSION ] ?: BROWSER_VERSION_TYPE ;
15311+ [ BROWSER_WEB_VITAL_CLS_SOURCE_KEY ] ?: BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE ;
1522815312 [ BROWSER_WEB_VITAL_CLS_VALUE ] ?: BROWSER_WEB_VITAL_CLS_VALUE_TYPE ;
1522915313 [ BROWSER_WEB_VITAL_INP_VALUE ] ?: BROWSER_WEB_VITAL_INP_VALUE_TYPE ;
1523015314 [ BROWSER_WEB_VITAL_LCP_VALUE ] ?: BROWSER_WEB_VITAL_LCP_VALUE_TYPE ;
@@ -15240,6 +15324,7 @@ export type Attributes = {
1524015324 [ CLOUDFLARE_D1_ROWS_READ ] ?: CLOUDFLARE_D1_ROWS_READ_TYPE ;
1524115325 [ CLOUDFLARE_D1_ROWS_WRITTEN ] ?: CLOUDFLARE_D1_ROWS_WRITTEN_TYPE ;
1524215326 [ CLS ] ?: CLS_TYPE ;
15327+ [ CLS_SOURCE_KEY ] ?: CLS_SOURCE_KEY_TYPE ;
1524315328 [ CODE_FILEPATH ] ?: CODE_FILEPATH_TYPE ;
1524415329 [ CODE_FILE_PATH ] ?: CODE_FILE_PATH_TYPE ;
1524515330 [ CODE_FUNCTION ] ?: CODE_FUNCTION_TYPE ;
0 commit comments