diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index b8f62a34..df287d1f 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -5485,6 +5485,30 @@ export const DEVICE_USABLE_MEMORY = 'device.usable_memory'; */ export type DEVICE_USABLE_MEMORY_TYPE = number; +// Path: model/attributes/dist.json + +/** + * The sentry dist. `dist` + * + * Attribute Value Type: `string` {@link DIST_TYPE} + * + * Apply Scrubbing: never + * + * Attribute defined in OTEL: No + * Visibility: public + * + * Aliases: {@link SENTRY_DIST} `sentry.dist` + * + * @deprecated Use {@link SENTRY_DIST} (sentry.dist) instead - This attribute is being deprecated in favor of sentry.dist. + * @example "1.0" + */ +export const DIST = 'dist'; + +/** + * Type for {@link DIST} dist + */ +export type DIST_TYPE = string; + // Path: model/attributes/effectiveConnectionType.json /** @@ -12617,6 +12641,8 @@ export type SENTRY_DESCRIPTION_TYPE = string; * Attribute defined in OTEL: No * Visibility: public * + * Aliases: {@link DIST} `dist` + * * @example "1.0" */ export const SENTRY_DIST = 'sentry.dist'; @@ -16363,6 +16389,7 @@ export const ATTRIBUTE_TYPE: Record = { 'device.thermal_state': 'string', 'device.timezone': 'string', 'device.usable_memory': 'integer', + dist: 'string', effectiveConnectionType: 'string', environment: 'string', 'error.type': 'string', @@ -17092,6 +17119,7 @@ export type AttributeName = | typeof DEVICE_THERMAL_STATE | typeof DEVICE_TIMEZONE | typeof DEVICE_USABLE_MEMORY + | typeof DIST | typeof EFFECTIVECONNECTIONTYPE | typeof ENVIRONMENT | typeof ERROR_TYPE @@ -20833,6 +20861,22 @@ export const ATTRIBUTE_METADATA: Record = { example: 2147483648, changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.usable_memory attribute' }], }, + dist: { + brief: 'The sentry dist.', + type: 'string', + applyScrubbing: { + key: 'never', + }, + isInOtel: false, + visibility: 'public', + example: '1.0', + deprecation: { + replacement: 'sentry.dist', + reason: 'This attribute is being deprecated in favor of sentry.dist.', + }, + aliases: ['sentry.dist'], + changelog: [{ version: 'next', prs: [489], description: 'Added dist attribute' }], + }, effectiveConnectionType: { brief: 'Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).', type: 'string', @@ -25294,7 +25338,8 @@ export const ATTRIBUTE_METADATA: Record = { isInOtel: false, visibility: 'public', example: '1.0', - changelog: [{ version: '0.0.0' }], + aliases: ['dist'], + changelog: [{ version: 'next', description: 'Added dist as an alias' }, { version: '0.0.0' }], }, 'sentry.domain': { brief: @@ -27478,6 +27523,7 @@ export type Attributes = { [DEVICE_THERMAL_STATE]?: DEVICE_THERMAL_STATE_TYPE; [DEVICE_TIMEZONE]?: DEVICE_TIMEZONE_TYPE; [DEVICE_USABLE_MEMORY]?: DEVICE_USABLE_MEMORY_TYPE; + [DIST]?: DIST_TYPE; [EFFECTIVECONNECTIONTYPE]?: EFFECTIVECONNECTIONTYPE_TYPE; [ENVIRONMENT]?: ENVIRONMENT_TYPE; [ERROR_TYPE]?: ERROR_TYPE_TYPE; diff --git a/model/attributes/dist.json b/model/attributes/dist.json new file mode 100644 index 00000000..bbec1e46 --- /dev/null +++ b/model/attributes/dist.json @@ -0,0 +1,24 @@ +{ + "key": "dist", + "brief": "The sentry dist.", + "type": "string", + "apply_scrubbing": { + "key": "never" + }, + "is_in_otel": false, + "visibility": "public", + "example": "1.0", + "alias": ["sentry.dist"], + "deprecation": { + "_status": "backfill", + "replacement": "sentry.dist", + "reason": "This attribute is being deprecated in favor of sentry.dist." + }, + "changelog": [ + { + "version": "next", + "prs": [489], + "description": "Added dist attribute" + } + ] +} diff --git a/model/attributes/sentry/sentry__dist.json b/model/attributes/sentry/sentry__dist.json index 55498713..4c6a1d88 100644 --- a/model/attributes/sentry/sentry__dist.json +++ b/model/attributes/sentry/sentry__dist.json @@ -7,8 +7,13 @@ }, "is_in_otel": false, "example": "1.0", + "alias": ["dist"], "visibility": "public", "changelog": [ + { + "version": "next", + "description": "Added dist as an alias" + }, { "version": "0.0.0" } diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 3d84f611..75d1aa9e 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -173,6 +173,7 @@ class _AttributeNamesMeta(type): "DB_SYSTEM", "DEVICE_CONNECTION_TYPE", "DEVICEMEMORY", + "DIST", "EFFECTIVECONNECTIONTYPE", "ENVIRONMENT", "FAAS_EXECUTION", @@ -3384,6 +3385,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "8 GB" """ + # Path: model/attributes/dist.json + DIST: Literal["dist"] = "dist" + """The sentry dist. + + Type: str + Apply Scrubbing: never + Defined in OTEL: No + Visibility: public + Aliases: sentry.dist + DEPRECATED: Use sentry.dist instead - This attribute is being deprecated in favor of sentry.dist. + Example: "1.0" + """ + # Path: model/attributes/effectiveConnectionType.json EFFECTIVECONNECTIONTYPE: Literal["effectiveConnectionType"] = ( "effectiveConnectionType" @@ -7359,6 +7373,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Apply Scrubbing: never Defined in OTEL: No Visibility: public + Aliases: dist Example: "1.0" """ @@ -12920,6 +12935,25 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ), ], ), + "dist": AttributeMetadata( + brief="The sentry dist.", + type=AttributeType.STRING, + apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.NEVER), + is_in_otel=False, + visibility=Visibility.PUBLIC, + example="1.0", + deprecation=DeprecationInfo( + replacement="sentry.dist", + reason="This attribute is being deprecated in favor of sentry.dist.", + status=DeprecationStatus.BACKFILL, + ), + aliases=["sentry.dist"], + changelog=[ + ChangelogEntry( + version="next", prs=[489], description="Added dist attribute" + ), + ], + ), "effectiveConnectionType": AttributeMetadata( brief="Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).", type=AttributeType.STRING, @@ -17613,7 +17647,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): is_in_otel=False, visibility=Visibility.PUBLIC, example="1.0", + aliases=["dist"], changelog=[ + ChangelogEntry(version="next", description="Added dist as an alias"), ChangelogEntry(version="0.0.0"), ], ), @@ -19872,6 +19908,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "device.timezone": str, "device.usable_memory": int, "deviceMemory": str, + "dist": str, "effectiveConnectionType": str, "environment": str, "error.type": str,