diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 265983ae..c797b86a 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -9742,6 +9742,30 @@ export const REMIX_ACTION_FORM_DATA_KEY = 'remix.action_form_data.'; */ export type REMIX_ACTION_FORM_DATA_KEY_TYPE = string; +// Path: model/attributes/replayId.json + +/** + * The id of the sentry replay. `replayId` + * + * Attribute Value Type: `string` {@link REPLAYID_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * Visibility: public + * + * Aliases: {@link SENTRY_REPLAY_ID} `sentry.replay_id` + * + * @deprecated Use {@link SENTRY_REPLAY_ID} (sentry.replay_id) instead + * @example "123e4567e89b12d3a456426614174000" + */ +export const REPLAYID = 'replayId'; + +/** + * Type for {@link REPLAYID} replayId + */ +export type REPLAYID_TYPE = string; + // Path: model/attributes/replay_id.json /** @@ -10929,7 +10953,7 @@ export type SENTRY_RELEASE_TYPE = string; * Attribute defined in OTEL: No * Visibility: public * - * Aliases: {@link REPLAY_ID} `replay_id` + * Aliases: {@link REPLAY_ID} `replay_id`, {@link REPLAYID} `replayId` * * @example "123e4567e89b12d3a456426614174000" */ @@ -13676,6 +13700,7 @@ export const ATTRIBUTE_TYPE: Record = { [REACT_VERSION]: 'string', [RELEASE]: 'string', [REMIX_ACTION_FORM_DATA_KEY]: 'string', + [REPLAYID]: 'string', [REPLAY_ID]: 'string', [RESOURCE_DEPLOYMENT_ENVIRONMENT]: 'string', [RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]: 'string', @@ -14280,6 +14305,7 @@ export type AttributeName = | typeof REACT_VERSION | typeof RELEASE | typeof REMIX_ACTION_FORM_DATA_KEY + | typeof REPLAYID | typeof REPLAY_ID | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME @@ -20497,6 +20523,21 @@ export const ATTRIBUTE_METADATA: Record = { sdks: ['javascript-remix'], changelog: [{ version: '0.1.0', prs: [103] }], }, + [REPLAYID]: { + brief: 'The id of the sentry replay.', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + visibility: 'public', + example: '123e4567e89b12d3a456426614174000', + deprecation: { + replacement: 'sentry.replay_id', + }, + aliases: [SENTRY_REPLAY_ID], + changelog: [{ version: 'next' }], + }, [REPLAY_ID]: { brief: 'The id of the sentry replay.', type: 'string', @@ -21157,7 +21198,7 @@ export const ATTRIBUTE_METADATA: Record = { isInOtel: false, visibility: 'public', example: '123e4567e89b12d3a456426614174000', - aliases: [REPLAY_ID], + aliases: [REPLAY_ID, REPLAYID], changelog: [{ version: '0.0.0' }], }, [SENTRY_REPLAY_IS_BUFFERING]: { @@ -22874,6 +22915,7 @@ export type Attributes = { [REACT_VERSION]?: REACT_VERSION_TYPE; [RELEASE]?: RELEASE_TYPE; [REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE; + [REPLAYID]?: REPLAYID_TYPE; [REPLAY_ID]?: REPLAY_ID_TYPE; [RESOURCE_DEPLOYMENT_ENVIRONMENT]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE; [RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE; diff --git a/model/attributes/replayId.json b/model/attributes/replayId.json new file mode 100644 index 00000000..3674487a --- /dev/null +++ b/model/attributes/replayId.json @@ -0,0 +1,21 @@ +{ + "key": "replayId", + "brief": "The id of the sentry replay.", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "123e4567e89b12d3a456426614174000", + "alias": ["sentry.replay_id"], + "deprecation": { + "_status": null, + "replacement": "sentry.replay_id" + }, + "visibility": "public", + "changelog": [ + { + "version": "next" + } + ] +} diff --git a/model/attributes/sentry/sentry__replay_id.json b/model/attributes/sentry/sentry__replay_id.json index eea2329d..862cae2e 100644 --- a/model/attributes/sentry/sentry__replay_id.json +++ b/model/attributes/sentry/sentry__replay_id.json @@ -7,7 +7,7 @@ }, "is_in_otel": false, "example": "123e4567e89b12d3a456426614174000", - "alias": ["replay_id"], + "alias": ["replay_id", "replayId"], "visibility": "public", "changelog": [ { diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index ecf8a8a1..a930d2cd 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -233,6 +233,7 @@ class _AttributeNamesMeta(type): "PERFORMANCE_TIMEORIGIN", "QUERY_KEY", "RELEASE", + "REPLAYID", "REPLAY_ID", "RESOURCE_DEPLOYMENT_ENVIRONMENT", "RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME", @@ -5706,6 +5707,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "http.response.header.text='test'" """ + # Path: model/attributes/replayId.json + REPLAYID: Literal["replayId"] = "replayId" + """The id of the sentry replay. + + Type: str + Contains PII: false + Defined in OTEL: No + Visibility: public + Aliases: sentry.replay_id + DEPRECATED: Use sentry.replay_id instead + Example: "123e4567e89b12d3a456426614174000" + """ + # Path: model/attributes/replay_id.json REPLAY_ID: Literal["replay_id"] = "replay_id" """The id of the sentry replay. @@ -6364,7 +6378,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Contains PII: false Defined in OTEL: No Visibility: public - Aliases: replay_id + Aliases: replay_id, replayId Example: "123e4567e89b12d3a456426614174000" """ @@ -14038,6 +14052,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.1.0", prs=[103]), ], ), + "replayId": AttributeMetadata( + brief="The id of the sentry replay.", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + visibility=Visibility.PUBLIC, + example="123e4567e89b12d3a456426614174000", + deprecation=DeprecationInfo(replacement="sentry.replay_id"), + aliases=["sentry.replay_id"], + changelog=[ + ChangelogEntry(version="next"), + ], + ), "replay_id": AttributeMetadata( brief="The id of the sentry replay.", type=AttributeType.STRING, @@ -14706,7 +14733,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): is_in_otel=False, visibility=Visibility.PUBLIC, example="123e4567e89b12d3a456426614174000", - aliases=["replay_id"], + aliases=["replay_id", "replayId"], changelog=[ ChangelogEntry(version="0.0.0"), ], @@ -16502,6 +16529,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "react.version": str, "release": str, "remix.action_form_data.": str, + "replayId": str, "replay_id": str, "resource.deployment.environment": str, "resource.deployment.environment.name": str, diff --git a/shared/deprecated_attributes.json b/shared/deprecated_attributes.json index a2eb46b3..bac721d1 100644 --- a/shared/deprecated_attributes.json +++ b/shared/deprecated_attributes.json @@ -407,6 +407,27 @@ } ] }, + { + "key": "replayId", + "brief": "The id of the sentry replay.", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "123e4567e89b12d3a456426614174000", + "alias": ["sentry.replay_id"], + "deprecation": { + "_status": null, + "replacement": "sentry.replay_id" + }, + "visibility": "public", + "changelog": [ + { + "version": "next" + } + ] + }, { "key": "replay_id", "brief": "The id of the sentry replay.",