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 @@ -733,6 +733,26 @@ export const AI_WARNINGS = 'ai.warnings';
*/
export type AI_WARNINGS_TYPE = Array<string>;

// Path: model/attributes/angular/angular__version.json

/**
* The version of the Angular framework `angular.version`
*
* Attribute Value Type: `string` {@link ANGULAR_VERSION_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "17.1.0"
*/
export const ANGULAR_VERSION = 'angular.version';

/**
* Type for {@link ANGULAR_VERSION} angular.version
*/
export type ANGULAR_VERSION_TYPE = string;

// Path: model/attributes/app/app__app_build.json

/**
Expand Down Expand Up @@ -11989,6 +12009,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[AI_TOTAL_COST]: 'double',
[AI_TOTAL_TOKENS_USED]: 'integer',
[AI_WARNINGS]: 'string[]',
[ANGULAR_VERSION]: 'string',
[APP_APP_BUILD]: 'string',
[APP_APP_IDENTIFIER]: 'string',
[APP_APP_NAME]: 'string',
Expand Down Expand Up @@ -12559,6 +12580,7 @@ export type AttributeName =
| typeof AI_TOTAL_COST
| typeof AI_TOTAL_TOKENS_USED
| typeof AI_WARNINGS
| typeof ANGULAR_VERSION
| typeof APP_APP_BUILD
| typeof APP_APP_IDENTIFIER
| typeof APP_APP_NAME
Expand Down Expand Up @@ -13596,6 +13618,16 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
{ version: '0.1.0', prs: [55] },
],
},
[ANGULAR_VERSION]: {
brief: 'The version of the Angular framework',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: '17.1.0',
changelog: [{ version: 'next', prs: [363], description: 'Added angular.version attribute' }],
},
[APP_APP_BUILD]: {
brief: 'Internal build identifier, as it appears on the platform.',
type: 'string',
Expand Down Expand Up @@ -20105,6 +20137,7 @@ export type Attributes = {
[AI_TOTAL_COST]?: AI_TOTAL_COST_TYPE;
[AI_TOTAL_TOKENS_USED]?: AI_TOTAL_TOKENS_USED_TYPE;
[AI_WARNINGS]?: AI_WARNINGS_TYPE;
[ANGULAR_VERSION]?: ANGULAR_VERSION_TYPE;
[APP_APP_BUILD]?: APP_APP_BUILD_TYPE;
[APP_APP_IDENTIFIER]?: APP_APP_IDENTIFIER_TYPE;
[APP_APP_NAME]?: APP_APP_NAME_TYPE;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/angular/angular__version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "angular.version",
"brief": "The version of the Angular framework",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "17.1.0",
"changelog": [
{
"version": "next",
"prs": [363],
"description": "Added angular.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 @@ -641,6 +641,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: ["Token limit exceeded"]
"""

# Path: model/attributes/angular/angular__version.json
ANGULAR_VERSION: Literal["angular.version"] = "angular.version"
"""The version of the Angular framework

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

# Path: model/attributes/app/app__app_build.json
APP_APP_BUILD: Literal["app.app_build"] = "app.app_build"
"""Internal build identifier, as it appears on the platform.
Expand Down Expand Up @@ -7058,6 +7068,18 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.1.0", prs=[55]),
],
),
"angular.version": AttributeMetadata(
brief="The version of the Angular framework",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="17.1.0",
changelog=[
ChangelogEntry(
version="next", prs=[363], description="Added angular.version attribute"
),
],
),
"app.app_build": AttributeMetadata(
brief="Internal build identifier, as it appears on the platform.",
type=AttributeType.STRING,
Expand Down Expand Up @@ -13968,6 +13990,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"ai.total_cost": float,
"ai.total_tokens.used": int,
"ai.warnings": List[str],
"angular.version": str,
"app.app_build": str,
"app.app_identifier": str,
"app.app_name": str,
Expand Down
Loading