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 @@ -8700,6 +8700,26 @@ export const QUERY_KEY = 'query.<key>';
*/
export type QUERY_KEY_TYPE = string;

// Path: model/attributes/react/react__version.json

/**
* The version of the React framework `react.version`
*
* Attribute Value Type: `string` {@link REACT_VERSION_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "18.2.0"
*/
export const REACT_VERSION = 'react.version';

/**
* Type for {@link REACT_VERSION} react.version
*/
export type REACT_VERSION_TYPE = string;

// Path: model/attributes/release.json

/**
Expand Down Expand Up @@ -12367,6 +12387,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[PROCESS_RUNTIME_NAME]: 'string',
[PROCESS_RUNTIME_VERSION]: 'string',
[QUERY_KEY]: 'string',
[REACT_VERSION]: 'string',
[RELEASE]: 'string',
[REMIX_ACTION_FORM_DATA_KEY]: 'string',
[REPLAY_ID]: 'string',
Expand Down Expand Up @@ -12937,6 +12958,7 @@ export type AttributeName =
| typeof PROCESS_RUNTIME_NAME
| typeof PROCESS_RUNTIME_VERSION
| typeof QUERY_KEY
| typeof REACT_VERSION
| typeof RELEASE
| typeof REMIX_ACTION_FORM_DATA_KEY
| typeof REPLAY_ID
Expand Down Expand Up @@ -18330,6 +18352,16 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
},
changelog: [{ version: '0.1.0', prs: [103] }],
},
[REACT_VERSION]: {
brief: 'The version of the React framework',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: '18.2.0',
changelog: [{ version: 'next', prs: [363], description: 'Added react.version attribute' }],
},
[RELEASE]: {
brief: 'The sentry release.',
type: 'string',
Expand Down Expand Up @@ -20483,6 +20515,7 @@ export type Attributes = {
[PROCESS_RUNTIME_NAME]?: PROCESS_RUNTIME_NAME_TYPE;
[PROCESS_RUNTIME_VERSION]?: PROCESS_RUNTIME_VERSION_TYPE;
[QUERY_KEY]?: QUERY_KEY_TYPE;
[REACT_VERSION]?: REACT_VERSION_TYPE;
[RELEASE]?: RELEASE_TYPE;
[REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;
[REPLAY_ID]?: REPLAY_ID_TYPE;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/react/react__version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "react.version",
"brief": "The version of the React framework",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "18.2.0",
"changelog": [
{
"version": "next",
"prs": [363],
"description": "Added react.version 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 @@ -4913,6 +4913,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "query.id='123'"
"""

# Path: model/attributes/react/react__version.json
REACT_VERSION: Literal["react.version"] = "react.version"
"""The version of the React framework

Type: str
Contains PII: maybe
Defined in OTEL: No
Example: "18.2.0"
"""

# Path: model/attributes/release.json
RELEASE: Literal["release"] = "release"
"""The sentry release.
Expand Down Expand Up @@ -12127,6 +12137,18 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.1.0", prs=[103]),
],
),
"react.version": AttributeMetadata(
brief="The version of the React framework",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="18.2.0",
changelog=[
ChangelogEntry(
version="next", prs=[363], description="Added react.version attribute"
),
],
),
"release": AttributeMetadata(
brief="The sentry release.",
type=AttributeType.STRING,
Expand Down Expand Up @@ -14346,6 +14368,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"process.runtime.name": str,
"process.runtime.version": str,
"query.<key>": str,
"react.version": str,
"release": str,
"remix.action_form_data.<key>": str,
"replay_id": str,
Expand Down
Loading