diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 8f1b5432..e10ad62d 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -5239,6 +5239,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 /** @@ -12282,6 +12306,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'; @@ -15923,6 +15949,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', @@ -16633,6 +16660,7 @@ export type AttributeName = | typeof DEVICE_THERMAL_STATE | typeof DEVICE_TIMEZONE | typeof DEVICE_USABLE_MEMORY + | typeof DIST | typeof EFFECTIVECONNECTIONTYPE | typeof ENVIRONMENT | typeof ERROR_TYPE @@ -20206,6 +20234,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', @@ -24611,7 +24655,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: @@ -26721,6 +26766,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 9bf49710..937f47fd 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -170,6 +170,7 @@ class _AttributeNamesMeta(type): "DB_SYSTEM", "DEVICE_CONNECTION_TYPE", "DEVICEMEMORY", + "DIST", "EFFECTIVECONNECTIONTYPE", "ENVIRONMENT", "FAAS_EXECUTION", @@ -3232,6 +3233,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" @@ -7160,6 +7174,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Apply Scrubbing: never Defined in OTEL: No Visibility: public + Aliases: dist Example: "1.0" """ @@ -12482,6 +12497,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, @@ -17110,7 +17144,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"), ], ), @@ -19278,6 +19314,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "device.timezone": str, "device.usable_memory": int, "deviceMemory": str, + "dist": str, "effectiveConnectionType": str, "environment": str, "error.type": str,