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
36 changes: 36 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6273,6 +6273,27 @@ export const REPLAY_ID = 'replay_id';
*/
export type REPLAY_ID_TYPE = string;

// Path: model/attributes/resource/resource__deployment__environment.json

/**
* The software deployment environment name. `resource.deployment.environment`
*
* Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE}
*
* Contains PII: false
*
* Attribute defined in OTEL: Yes
*
* @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead
* @example "production"
*/
export const RESOURCE_DEPLOYMENT_ENVIRONMENT = 'resource.deployment.environment';

/**
* Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT} resource.deployment.environment
*/
export type RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE = string;

// Path: model/attributes/resource/resource__deployment__environment__name.json

/**
Expand Down Expand Up @@ -9186,6 +9207,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[RELEASE]: 'string',
[REMIX_ACTION_FORM_DATA_KEY]: 'string',
[REPLAY_ID]: 'string',
[RESOURCE_DEPLOYMENT_ENVIRONMENT]: 'string',
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]: 'string',
[RESOURCE_RENDER_BLOCKING_STATUS]: 'string',
[ROUTE]: 'string',
Expand Down Expand Up @@ -9615,6 +9637,7 @@ export type AttributeName =
| typeof RELEASE
| typeof REMIX_ACTION_FORM_DATA_KEY
| typeof REPLAY_ID
| typeof RESOURCE_DEPLOYMENT_ENVIRONMENT
| typeof RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME
| typeof RESOURCE_RENDER_BLOCKING_STATUS
| typeof ROUTE
Expand Down Expand Up @@ -12898,6 +12921,18 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
},
aliases: [SENTRY_REPLAY_ID],
},
[RESOURCE_DEPLOYMENT_ENVIRONMENT]: {
brief: 'The software deployment environment name.',
type: 'string',
pii: {
isPii: 'false',
},
isInOtel: true,
example: 'production',
deprecation: {
replacement: 'sentry.environment',
},
},
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]: {
brief: 'The software deployment environment name.',
type: 'string',
Expand Down Expand Up @@ -14407,6 +14442,7 @@ export type Attributes = {
[RELEASE]?: RELEASE_TYPE;
[REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;
[REPLAY_ID]?: REPLAY_ID_TYPE;
[RESOURCE_DEPLOYMENT_ENVIRONMENT]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE;
[RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE;
[RESOURCE_RENDER_BLOCKING_STATUS]?: RESOURCE_RENDER_BLOCKING_STATUS_TYPE;
[ROUTE]?: ROUTE_TYPE;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"key": "resource.deployment.environment",
"brief": "The software deployment environment name.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "production",
"deprecation": {
"_status": "backfill",
"replacement": "sentry.environment"
}
}
25 changes: 25 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class _AttributeNamesMeta(type):
"QUERY_KEY",
"RELEASE",
"REPLAY_ID",
"RESOURCE_DEPLOYMENT_ENVIRONMENT",
"RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME",
"ROUTE",
"SENTRY_BROWSER_NAME",
Expand Down Expand Up @@ -3516,6 +3517,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "123e4567e89b12d3a456426614174000"
"""

# Path: model/attributes/resource/resource__deployment__environment.json
RESOURCE_DEPLOYMENT_ENVIRONMENT: Literal["resource.deployment.environment"] = (
"resource.deployment.environment"
)
"""The software deployment environment name.

Type: str
Contains PII: false
Defined in OTEL: Yes
DEPRECATED: Use sentry.environment instead
Example: "production"
"""

# Path: model/attributes/resource/resource__deployment__environment__name.json
RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME: Literal[
"resource.deployment.environment.name"
Expand Down Expand Up @@ -7248,6 +7262,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
deprecation=DeprecationInfo(replacement="sentry.replay_id"),
aliases=["sentry.replay_id"],
),
"resource.deployment.environment": AttributeMetadata(
brief="The software deployment environment name.",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.FALSE),
is_in_otel=True,
example="production",
deprecation=DeprecationInfo(
replacement="sentry.environment", status=DeprecationStatus.BACKFILL
),
),
"resource.deployment.environment.name": AttributeMetadata(
brief="The software deployment environment name.",
type=AttributeType.STRING,
Expand Down Expand Up @@ -8483,6 +8507,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"release": str,
"remix.action_form_data.<key>": str,
"replay_id": str,
"resource.deployment.environment": str,
"resource.deployment.environment.name": str,
"resource.render_blocking_status": str,
"route": str,
Expand Down
14 changes: 14 additions & 0 deletions shared/deprecated_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,20 @@
},
"example": "query.id='123'"
},
{
"key": "resource.deployment.environment",
"brief": "The software deployment environment name.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "production",
"deprecation": {
"_status": "backfill",
"replacement": "sentry.environment"
}
},
{
"key": "resource.deployment.environment.name",
"brief": "The software deployment environment name.",
Expand Down
Loading