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
133 changes: 133 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8933,6 +8933,86 @@ export const RPC_SERVICE = 'rpc.service';
*/
export type RPC_SERVICE_TYPE = string;

// Path: model/attributes/runtime/runtime__build.json

/**
* The application build string, when it is separate from the version. `runtime.build`
*
* Attribute Value Type: `string` {@link RUNTIME_BUILD_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "stable"
*/
export const RUNTIME_BUILD = 'runtime.build';

/**
* Type for {@link RUNTIME_BUILD} runtime.build
*/
export type RUNTIME_BUILD_TYPE = string;

// Path: model/attributes/runtime/runtime__name.json

/**
* The name of the runtime. For example node, CPython, or rustc. `runtime.name`
*
* Attribute Value Type: `string` {@link RUNTIME_NAME_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "node"
*/
export const RUNTIME_NAME = 'runtime.name';

/**
* Type for {@link RUNTIME_NAME} runtime.name
*/
export type RUNTIME_NAME_TYPE = string;

// Path: model/attributes/runtime/runtime__raw_description.json

/**
* Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes. `runtime.raw_description`
*
* Attribute Value Type: `string` {@link RUNTIME_RAW_DESCRIPTION_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "Eclipse OpenJ9 VM openj9-0.21.0"
*/
export const RUNTIME_RAW_DESCRIPTION = 'runtime.raw_description';

/**
* Type for {@link RUNTIME_RAW_DESCRIPTION} runtime.raw_description
*/
export type RUNTIME_RAW_DESCRIPTION_TYPE = string;

// Path: model/attributes/runtime/runtime__version.json

/**
* The version of the runtime. `runtime.version`
*
* Attribute Value Type: `string` {@link RUNTIME_VERSION_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "18.04.2"
*/
export const RUNTIME_VERSION = 'runtime.version';

/**
* Type for {@link RUNTIME_VERSION} runtime.version
*/
export type RUNTIME_VERSION_TYPE = string;

// Path: model/attributes/score/score__[key].json

/**
Expand Down Expand Up @@ -12378,6 +12458,10 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[RPC_METHOD]: 'string',
[RPC_RESPONSE_STATUS_CODE]: 'string',
[RPC_SERVICE]: 'string',
[RUNTIME_BUILD]: 'string',
[RUNTIME_NAME]: 'string',
[RUNTIME_RAW_DESCRIPTION]: 'string',
[RUNTIME_VERSION]: 'string',
[SCORE_KEY]: 'double',
[SCORE_RATIO_KEY]: 'double',
[SCORE_TOTAL]: 'double',
Expand Down Expand Up @@ -12948,6 +13032,10 @@ export type AttributeName =
| typeof RPC_METHOD
| typeof RPC_RESPONSE_STATUS_CODE
| typeof RPC_SERVICE
| typeof RUNTIME_BUILD
| typeof RUNTIME_NAME
| typeof RUNTIME_RAW_DESCRIPTION
| typeof RUNTIME_VERSION
| typeof SCORE_KEY
| typeof SCORE_RATIO_KEY
| typeof SCORE_TOTAL
Expand Down Expand Up @@ -18463,6 +18551,47 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 'myService.BestService',
changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],
},
[RUNTIME_BUILD]: {
brief: 'The application build string, when it is separate from the version.',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: 'stable',
changelog: [{ version: 'next', prs: [383], description: 'Added runtime.build attribute' }],
},
[RUNTIME_NAME]: {
brief: 'The name of the runtime. For example node, CPython, or rustc.',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: 'node',
changelog: [{ version: 'next', prs: [383], description: 'Added runtime.name attribute' }],
},
[RUNTIME_RAW_DESCRIPTION]: {
brief:
'Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: 'Eclipse OpenJ9 VM openj9-0.21.0',
changelog: [{ version: 'next', prs: [383], description: 'Added runtime.raw_description attribute' }],
},
[RUNTIME_VERSION]: {
brief: 'The version of the runtime.',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: '18.04.2',
changelog: [{ version: 'next', prs: [383], description: 'Added runtime.version attribute' }],
},
[SCORE_KEY]: {
brief:
'The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.',
Expand Down Expand Up @@ -20494,6 +20623,10 @@ export type Attributes = {
[RPC_METHOD]?: RPC_METHOD_TYPE;
[RPC_RESPONSE_STATUS_CODE]?: RPC_RESPONSE_STATUS_CODE_TYPE;
[RPC_SERVICE]?: RPC_SERVICE_TYPE;
[RUNTIME_BUILD]?: RUNTIME_BUILD_TYPE;
[RUNTIME_NAME]?: RUNTIME_NAME_TYPE;
[RUNTIME_RAW_DESCRIPTION]?: RUNTIME_RAW_DESCRIPTION_TYPE;
[RUNTIME_VERSION]?: RUNTIME_VERSION_TYPE;
[SCORE_KEY]?: SCORE_KEY_TYPE;
[SCORE_RATIO_KEY]?: SCORE_RATIO_KEY_TYPE;
[SCORE_TOTAL]?: SCORE_TOTAL_TYPE;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/runtime/runtime__build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "runtime.build",
"brief": "The application build string, when it is separate from the version.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "stable",
"changelog": [
{
"version": "next",
"prs": [383],
"description": "Added runtime.build attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/runtime/runtime__name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "runtime.name",
"brief": "The name of the runtime. For example node, CPython, or rustc.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "node",
"changelog": [
{
"version": "next",
"prs": [383],
"description": "Added runtime.name attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/runtime/runtime__raw_description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "runtime.raw_description",
"brief": "Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "Eclipse OpenJ9 VM openj9-0.21.0",
"changelog": [
{
"version": "next",
"prs": [383],
"description": "Added runtime.raw_description attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/runtime/runtime__version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "runtime.version",
"brief": "The version of the runtime.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "18.04.2",
"changelog": [
{
"version": "next",
"prs": [383],
"description": "Added runtime.version attribute"
}
]
}
96 changes: 96 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5042,6 +5042,48 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "myService.BestService"
"""

# Path: model/attributes/runtime/runtime__build.json
RUNTIME_BUILD: Literal["runtime.build"] = "runtime.build"
"""The application build string, when it is separate from the version.

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

# Path: model/attributes/runtime/runtime__name.json
RUNTIME_NAME: Literal["runtime.name"] = "runtime.name"
"""The name of the runtime. For example node, CPython, or rustc.

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

# Path: model/attributes/runtime/runtime__raw_description.json
RUNTIME_RAW_DESCRIPTION: Literal["runtime.raw_description"] = (
"runtime.raw_description"
)
"""Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.

Type: str
Contains PII: maybe
Defined in OTEL: No
Example: "Eclipse OpenJ9 VM openj9-0.21.0"
"""

# Path: model/attributes/runtime/runtime__version.json
RUNTIME_VERSION: Literal["runtime.version"] = "runtime.version"
"""The version of the runtime.

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

# Path: model/attributes/score/score__[key].json
SCORE_KEY: Literal["score.<key>"] = "score.<key>"
"""The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.
Expand Down Expand Up @@ -12265,6 +12307,56 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.0.0"),
],
),
"runtime.build": AttributeMetadata(
brief="The application build string, when it is separate from the version.",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="stable",
changelog=[
ChangelogEntry(
version="next", prs=[383], description="Added runtime.build attribute"
),
],
),
"runtime.name": AttributeMetadata(
brief="The name of the runtime. For example node, CPython, or rustc.",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="node",
changelog=[
ChangelogEntry(
version="next", prs=[383], description="Added runtime.name attribute"
),
],
),
"runtime.raw_description": AttributeMetadata(
brief="Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="Eclipse OpenJ9 VM openj9-0.21.0",
changelog=[
ChangelogEntry(
version="next",
prs=[383],
description="Added runtime.raw_description attribute",
),
],
),
"runtime.version": AttributeMetadata(
brief="The version of the runtime.",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="18.04.2",
changelog=[
ChangelogEntry(
version="next", prs=[383], description="Added runtime.version attribute"
),
],
),
"score.<key>": AttributeMetadata(
brief="The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.",
type=AttributeType.DOUBLE,
Expand Down Expand Up @@ -14357,6 +14449,10 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"rpc.method": str,
"rpc.response.status_code": str,
"rpc.service": str,
"runtime.build": str,
"runtime.name": str,
"runtime.raw_description": str,
"runtime.version": str,
"score.<key>": float,
"score.ratio.<key>": float,
"score.total": float,
Expand Down
Loading