Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 47 additions & 1 deletion javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -15923,6 +15949,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
'device.thermal_state': 'string',
'device.timezone': 'string',
'device.usable_memory': 'integer',
dist: 'string',
effectiveConnectionType: 'string',
environment: 'string',
'error.type': 'string',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -20206,6 +20234,22 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
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',
Expand Down Expand Up @@ -24611,7 +24655,8 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
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:
Expand Down Expand Up @@ -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;
Expand Down
24 changes: 24 additions & 0 deletions model/attributes/dist.json
Original file line number Diff line number Diff line change
@@ -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"],
Comment thread
alexander-alderman-webb marked this conversation as resolved.
"deprecation": {
"_status": "backfill",
"replacement": "sentry.dist",
"reason": "This attribute is being deprecated in favor of sentry.dist."
Comment thread
cursor[bot] marked this conversation as resolved.
},
"changelog": [
{
"version": "next",
"prs": [489],
"description": "Added dist attribute"
}
]
}
5 changes: 5 additions & 0 deletions model/attributes/sentry/sentry__dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
37 changes: 37 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class _AttributeNamesMeta(type):
"DB_SYSTEM",
"DEVICE_CONNECTION_TYPE",
"DEVICEMEMORY",
"DIST",
"EFFECTIVECONNECTIONTYPE",
"ENVIRONMENT",
"FAAS_EXECUTION",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -7160,6 +7174,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Apply Scrubbing: never
Defined in OTEL: No
Visibility: public
Aliases: dist
Example: "1.0"
"""

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
],
),
Expand Down Expand Up @@ -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,
Expand Down
Loading