Skip to content

Commit 5d8deca

Browse files
committed
Merge branch 'ep/display-changelog-of-attributes-6su' of github.com:getsentry/sentry-conventions into ep/display-changelog-of-attributes-6su
2 parents 0f55098 + 2367cfd commit 5d8deca

6 files changed

Lines changed: 258 additions & 134 deletions

File tree

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@astrojs/tailwind": "^6.0.2",
1616
"astro": "^5.16.15",
1717
"dompurify": "^3.3.1",
18-
"svelte": "^5.51.5",
18+
"svelte": "^5.53.5",
1919
"tailwindcss": "^3.4.0"
2020
},
2121
"devDependencies": {

javascript/sentry-conventions/src/attributes.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6331,6 +6331,27 @@ export const REPLAY_ID = 'replay_id';
63316331
*/
63326332
export type REPLAY_ID_TYPE = string;
63336333

6334+
// Path: model/attributes/resource/resource__deployment__environment.json
6335+
6336+
/**
6337+
* The software deployment environment name. `resource.deployment.environment`
6338+
*
6339+
* Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE}
6340+
*
6341+
* Contains PII: false
6342+
*
6343+
* Attribute defined in OTEL: Yes
6344+
*
6345+
* @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead
6346+
* @example "production"
6347+
*/
6348+
export const RESOURCE_DEPLOYMENT_ENVIRONMENT = 'resource.deployment.environment';
6349+
6350+
/**
6351+
* Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT} resource.deployment.environment
6352+
*/
6353+
export type RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE = string;
6354+
63346355
// Path: model/attributes/resource/resource__deployment__environment__name.json
63356356

63366357
/**
@@ -9256,6 +9277,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
92569277
[RELEASE]: 'string',
92579278
[REMIX_ACTION_FORM_DATA_KEY]: 'string',
92589279
[REPLAY_ID]: 'string',
9280+
[RESOURCE_DEPLOYMENT_ENVIRONMENT]: 'string',
92599281
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]: 'string',
92609282
[RESOURCE_RENDER_BLOCKING_STATUS]: 'string',
92619283
[ROUTE]: 'string',
@@ -9686,6 +9708,7 @@ export type AttributeName =
96869708
| typeof RELEASE
96879709
| typeof REMIX_ACTION_FORM_DATA_KEY
96889710
| typeof REPLAY_ID
9711+
| typeof RESOURCE_DEPLOYMENT_ENVIRONMENT
96899712
| typeof RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME
96909713
| typeof RESOURCE_RENDER_BLOCKING_STATUS
96919714
| typeof ROUTE
@@ -13445,6 +13468,18 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1344513468
aliases: [SENTRY_REPLAY_ID],
1344613469
changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],
1344713470
},
13471+
[RESOURCE_DEPLOYMENT_ENVIRONMENT]: {
13472+
brief: 'The software deployment environment name.',
13473+
type: 'string',
13474+
pii: {
13475+
isPii: 'false',
13476+
},
13477+
isInOtel: true,
13478+
example: 'production',
13479+
deprecation: {
13480+
replacement: 'sentry.environment',
13481+
},
13482+
},
1344813483
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]: {
1344913484
brief: 'The software deployment environment name.',
1345013485
type: 'string',
@@ -15096,6 +15131,7 @@ export type Attributes = {
1509615131
[RELEASE]?: RELEASE_TYPE;
1509715132
[REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;
1509815133
[REPLAY_ID]?: REPLAY_ID_TYPE;
15134+
[RESOURCE_DEPLOYMENT_ENVIRONMENT]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE;
1509915135
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE;
1510015136
[RESOURCE_RENDER_BLOCKING_STATUS]?: RESOURCE_RENDER_BLOCKING_STATUS_TYPE;
1510115137
[ROUTE]?: ROUTE_TYPE;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"key": "resource.deployment.environment",
3+
"brief": "The software deployment environment name.",
4+
"type": "string",
5+
"pii": {
6+
"key": "false"
7+
},
8+
"is_in_otel": true,
9+
"example": "production",
10+
"deprecation": {
11+
"_status": "backfill",
12+
"replacement": "sentry.environment"
13+
}
14+
}

python/src/sentry_conventions/attributes.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ class _AttributeNamesMeta(type):
189189
"QUERY_KEY",
190190
"RELEASE",
191191
"REPLAY_ID",
192+
"RESOURCE_DEPLOYMENT_ENVIRONMENT",
192193
"RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME",
193194
"ROUTE",
194195
"SENTRY_BROWSER_NAME",
@@ -3588,6 +3589,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
35883589
Example: "123e4567e89b12d3a456426614174000"
35893590
"""
35903591

3592+
# Path: model/attributes/resource/resource__deployment__environment.json
3593+
RESOURCE_DEPLOYMENT_ENVIRONMENT: Literal["resource.deployment.environment"] = (
3594+
"resource.deployment.environment"
3595+
)
3596+
"""The software deployment environment name.
3597+
3598+
Type: str
3599+
Contains PII: false
3600+
Defined in OTEL: Yes
3601+
DEPRECATED: Use sentry.environment instead
3602+
Example: "production"
3603+
"""
3604+
35913605
# Path: model/attributes/resource/resource__deployment__environment__name.json
35923606
RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME: Literal[
35933607
"resource.deployment.environment.name"
@@ -8478,6 +8492,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
84788492
ChangelogEntry(version="0.0.0"),
84798493
],
84808494
),
8495+
"resource.deployment.environment": AttributeMetadata(
8496+
brief="The software deployment environment name.",
8497+
type=AttributeType.STRING,
8498+
pii=PiiInfo(isPii=IsPii.FALSE),
8499+
is_in_otel=True,
8500+
example="production",
8501+
deprecation=DeprecationInfo(
8502+
replacement="sentry.environment", status=DeprecationStatus.BACKFILL
8503+
),
8504+
),
84818505
"resource.deployment.environment.name": AttributeMetadata(
84828506
brief="The software deployment environment name.",
84838507
type=AttributeType.STRING,
@@ -10119,6 +10143,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
1011910143
"release": str,
1012010144
"remix.action_form_data.<key>": str,
1012110145
"replay_id": str,
10146+
"resource.deployment.environment": str,
1012210147
"resource.deployment.environment.name": str,
1012310148
"resource.render_blocking_status": str,
1012410149
"route": str,

shared/deprecated_attributes.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,20 @@
21562156
}
21572157
]
21582158
},
2159+
{
2160+
"key": "resource.deployment.environment",
2161+
"brief": "The software deployment environment name.",
2162+
"type": "string",
2163+
"pii": {
2164+
"key": "false"
2165+
},
2166+
"is_in_otel": true,
2167+
"example": "production",
2168+
"deprecation": {
2169+
"_status": "backfill",
2170+
"replacement": "sentry.environment"
2171+
}
2172+
},
21592173
{
21602174
"key": "resource.deployment.environment.name",
21612175
"brief": "The software deployment environment name.",

0 commit comments

Comments
 (0)