diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e74c1197..8cfeb59b 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -10286,6 +10286,26 @@ export const SERVICE_VERSION = 'service.version'; */ export type SERVICE_VERSION_TYPE = string; +// Path: model/attributes/state/state__type.json + +/** + * The type of state management library `state.type` + * + * Attribute Value Type: `string` {@link STATE_TYPE_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "redux" + */ +export const STATE_TYPE = 'state.type'; + +/** + * Type for {@link STATE_TYPE} state.type + */ +export type STATE_TYPE_TYPE = string; + // Path: model/attributes/thread/thread__id.json /** @@ -12444,6 +12464,7 @@ export const ATTRIBUTE_TYPE: Record = { [SERVER_PORT]: 'integer', [SERVICE_NAME]: 'string', [SERVICE_VERSION]: 'string', + [STATE_TYPE]: 'string', [THREAD_ID]: 'integer', [THREAD_NAME]: 'string', [TIMBER_TAG]: 'string', @@ -13014,6 +13035,7 @@ export type AttributeName = | typeof SERVER_PORT | typeof SERVICE_NAME | typeof SERVICE_VERSION + | typeof STATE_TYPE | typeof THREAD_ID | typeof THREAD_NAME | typeof TIMBER_TAG @@ -19193,6 +19215,16 @@ export const ATTRIBUTE_METADATA: Record = { aliases: [SENTRY_RELEASE], changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }], }, + [STATE_TYPE]: { + brief: 'The type of state management library', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 'redux', + changelog: [{ version: 'next', prs: [363], description: 'Added state.type attribute' }], + }, [THREAD_ID]: { brief: 'Current “managed” thread ID.', type: 'integer', @@ -20560,6 +20592,7 @@ export type Attributes = { [SERVER_PORT]?: SERVER_PORT_TYPE; [SERVICE_NAME]?: SERVICE_NAME_TYPE; [SERVICE_VERSION]?: SERVICE_VERSION_TYPE; + [STATE_TYPE]?: STATE_TYPE_TYPE; [THREAD_ID]?: THREAD_ID_TYPE; [THREAD_NAME]?: THREAD_NAME_TYPE; [TIMBER_TAG]?: TIMBER_TAG_TYPE; diff --git a/model/attributes/state/state__type.json b/model/attributes/state/state__type.json new file mode 100644 index 00000000..3a9d88a9 --- /dev/null +++ b/model/attributes/state/state__type.json @@ -0,0 +1,17 @@ +{ + "key": "state.type", + "brief": "The type of state management library", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "redux", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added state.type attribute" + } + ] +} diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 5563bd91..67b8afa0 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -5756,6 +5756,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "5.0.0" """ + # Path: model/attributes/state/state__type.json + STATE_TYPE: Literal["state.type"] = "state.type" + """The type of state management library + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "redux" + """ + # Path: model/attributes/thread/thread__id.json THREAD_ID: Literal["thread.id"] = "thread.id" """Current “managed” thread ID. @@ -13009,6 +13019,18 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.0.0"), ], ), + "state.type": AttributeMetadata( + brief="The type of state management library", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="redux", + changelog=[ + ChangelogEntry( + version="next", prs=[363], description="Added state.type attribute" + ), + ], + ), "thread.id": AttributeMetadata( brief="Current “managed” thread ID.", type=AttributeType.INTEGER, @@ -14423,6 +14445,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "server.port": int, "service.name": str, "service.version": str, + "state.type": str, "thread.id": int, "thread.name": str, "timber.tag": str,