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
66 changes: 66 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10415,6 +10415,46 @@ export const TRANSACTION = 'transaction';
*/
export type TRANSACTION_TYPE = string;

// Path: model/attributes/trpc/trpc__procedure_path.json

/**
* The path of the tRPC procedure being called `trpc.procedure_path`
*
* Attribute Value Type: `string` {@link TRPC_PROCEDURE_PATH_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "user.getById"
*/
export const TRPC_PROCEDURE_PATH = 'trpc.procedure_path';

/**
* Type for {@link TRPC_PROCEDURE_PATH} trpc.procedure_path
*/
export type TRPC_PROCEDURE_PATH_TYPE = string;

// Path: model/attributes/trpc/trpc__procedure_type.json

/**
* The type of the tRPC procedure `trpc.procedure_type`
*
* Attribute Value Type: `string` {@link TRPC_PROCEDURE_TYPE_TYPE}
*
* Contains PII: maybe
*
* Attribute defined in OTEL: No
*
* @example "query"
*/
export const TRPC_PROCEDURE_TYPE = 'trpc.procedure_type';

/**
* Type for {@link TRPC_PROCEDURE_TYPE} trpc.procedure_type
*/
export type TRPC_PROCEDURE_TYPE_TYPE = string;

// Path: model/attributes/ttfb.json

/**
Expand Down Expand Up @@ -12450,6 +12490,8 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[TIME_TO_FULL_DISPLAY]: 'double',
[TIME_TO_INITIAL_DISPLAY]: 'double',
[TRANSACTION]: 'string',
[TRPC_PROCEDURE_PATH]: 'string',
[TRPC_PROCEDURE_TYPE]: 'string',
[TTFB]: 'double',
[TTFB_REQUESTTIME]: 'double',
[TYPE]: 'string',
Expand Down Expand Up @@ -13020,6 +13062,8 @@ export type AttributeName =
| typeof TIME_TO_FULL_DISPLAY
| typeof TIME_TO_INITIAL_DISPLAY
| typeof TRANSACTION
| typeof TRPC_PROCEDURE_PATH
| typeof TRPC_PROCEDURE_TYPE
| typeof TTFB
| typeof TTFB_REQUESTTIME
| typeof TYPE
Expand Down Expand Up @@ -19284,6 +19328,26 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
{ version: '0.0.0' },
],
},
[TRPC_PROCEDURE_PATH]: {
brief: 'The path of the tRPC procedure being called',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: 'user.getById',
changelog: [{ version: 'next', prs: [363], description: 'Added trpc.procedure_path attribute' }],
},
[TRPC_PROCEDURE_TYPE]: {
brief: 'The type of the tRPC procedure',
type: 'string',
pii: {
isPii: 'maybe',
},
isInOtel: false,
example: 'query',
changelog: [{ version: 'next', prs: [363], description: 'Added trpc.procedure_type attribute' }],
},
[TTFB]: {
brief: 'The value of the recorded Time To First Byte (TTFB) web vital in milliseconds',
type: 'double',
Expand Down Expand Up @@ -20566,6 +20630,8 @@ export type Attributes = {
[TIME_TO_FULL_DISPLAY]?: TIME_TO_FULL_DISPLAY_TYPE;
[TIME_TO_INITIAL_DISPLAY]?: TIME_TO_INITIAL_DISPLAY_TYPE;
[TRANSACTION]?: TRANSACTION_TYPE;
[TRPC_PROCEDURE_PATH]?: TRPC_PROCEDURE_PATH_TYPE;
[TRPC_PROCEDURE_TYPE]?: TRPC_PROCEDURE_TYPE_TYPE;
[TTFB]?: TTFB_TYPE;
[TTFB_REQUESTTIME]?: TTFB_REQUESTTIME_TYPE;
[TYPE]?: TYPE_TYPE;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/trpc/trpc__procedure_path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "trpc.procedure_path",
"brief": "The path of the tRPC procedure being called",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "user.getById",
"changelog": [
{
"version": "next",
"prs": [363],
"description": "Added trpc.procedure_path attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/trpc/trpc__procedure_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "trpc.procedure_type",
"brief": "The type of the tRPC procedure",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "query",
"changelog": [
{
"version": "next",
"prs": [363],
"description": "Added trpc.procedure_type attribute"
}
]
}
50 changes: 50 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5824,6 +5824,26 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "GET /"
"""

# Path: model/attributes/trpc/trpc__procedure_path.json
TRPC_PROCEDURE_PATH: Literal["trpc.procedure_path"] = "trpc.procedure_path"
"""The path of the tRPC procedure being called

Type: str
Contains PII: maybe
Defined in OTEL: No
Example: "user.getById"
"""

# Path: model/attributes/trpc/trpc__procedure_type.json
TRPC_PROCEDURE_TYPE: Literal["trpc.procedure_type"] = "trpc.procedure_type"
"""The type of the tRPC procedure

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

# Path: model/attributes/ttfb/ttfb__requestTime.json
TTFB_REQUESTTIME: Literal["ttfb.requestTime"] = "ttfb.requestTime"
"""The time it takes for the server to process the initial request and send the first byte of a response to the user's browser
Expand Down Expand Up @@ -13113,6 +13133,34 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.0.0"),
],
),
"trpc.procedure_path": AttributeMetadata(
brief="The path of the tRPC procedure being called",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="user.getById",
changelog=[
ChangelogEntry(
version="next",
prs=[363],
description="Added trpc.procedure_path attribute",
),
],
),
"trpc.procedure_type": AttributeMetadata(
brief="The type of the tRPC procedure",
type=AttributeType.STRING,
pii=PiiInfo(isPii=IsPii.MAYBE),
is_in_otel=False,
example="query",
changelog=[
ChangelogEntry(
version="next",
prs=[363],
description="Added trpc.procedure_type attribute",
),
],
),
"ttfb.requestTime": AttributeMetadata(
brief="The time it takes for the server to process the initial request and send the first byte of a response to the user's browser",
type=AttributeType.DOUBLE,
Expand Down Expand Up @@ -14429,6 +14477,8 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"time_to_full_display": float,
"time_to_initial_display": float,
"transaction": str,
"trpc.procedure_path": str,
"trpc.procedure_type": str,
"ttfb.requestTime": float,
"ttfb": float,
"type": str,
Expand Down
Loading