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
33 changes: 33 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down Expand Up @@ -12444,6 +12464,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[SERVER_PORT]: 'integer',
[SERVICE_NAME]: 'string',
[SERVICE_VERSION]: 'string',
[STATE_TYPE]: 'string',
[THREAD_ID]: 'integer',
[THREAD_NAME]: 'string',
[TIMBER_TAG]: 'string',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -19193,6 +19215,16 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
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',
Expand Down Expand Up @@ -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;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/state/state__type.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
23 changes: 23 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading