Skip to content
Merged
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
64 changes: 59 additions & 5 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ export type AWS_CLOUDWATCH_LOGS_URL_TYPE = string;
* Attribute defined in OTEL: No
* Visibility: public
*
* Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`
* Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link FAAS_EXECUTION} `faas.execution`
*
* @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id
* @example "8476a536-e9f4-11e8-9739-2dfe598c3fcd"
Expand Down Expand Up @@ -5058,6 +5058,30 @@ export const FAAS_ENTRY_POINT = 'faas.entry_point';
*/
export type FAAS_ENTRY_POINT_TYPE = string;

// Path: model/attributes/faas/faas__execution.json

/**
* The execution ID of the current function execution. `faas.execution`
*
* Attribute Value Type: `string` {@link FAAS_EXECUTION_TYPE}
*
* Apply Scrubbing: manual
*
* Attribute defined in OTEL: No
* Visibility: public
*
* Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`
*
* @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.
* @example "af9d5aa4-a685-4c5f-a22b-444f80b3cc28"
*/
export const FAAS_EXECUTION = 'faas.execution';

/**
* Type for {@link FAAS_EXECUTION} faas.execution
*/
export type FAAS_EXECUTION_TYPE = string;

// Path: model/attributes/faas/faas__identity.json

/**
Expand Down Expand Up @@ -5091,7 +5115,7 @@ export type FAAS_IDENTITY_TYPE = string;
* Attribute defined in OTEL: Yes
* Visibility: public
*
* Aliases: {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`
* Aliases: {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`, {@link FAAS_EXECUTION} `faas.execution`
*
* @example "af9d5aa4-a685-4c5f-a22b-444f80b3cc28"
*/
Expand Down Expand Up @@ -15162,6 +15186,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
'faas.cron': 'string',
'faas.duration_in_ms': 'integer',
'faas.entry_point': 'string',
'faas.execution': 'string',
'faas.identity': 'string',
'faas.invocation_id': 'string',
'faas.name': 'string',
Expand Down Expand Up @@ -15841,6 +15866,7 @@ export type AttributeName =
| typeof FAAS_CRON
| typeof FAAS_DURATION_IN_MS
| typeof FAAS_ENTRY_POINT
| typeof FAAS_EXECUTION
| typeof FAAS_IDENTITY
| typeof FAAS_INVOCATION_ID
| typeof FAAS_NAME
Expand Down Expand Up @@ -17376,8 +17402,9 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
replacement: 'faas.invocation_id',
reason: 'This attribute is being deprecated in favor of faas.invocation_id',
},
aliases: ['faas.invocation_id'],
aliases: ['faas.invocation_id', 'faas.execution'],
changelog: [
{ version: 'next', prs: [473], description: 'Added faas.execution as an alias' },
{
version: '0.11.1',
prs: [414, 424],
Expand Down Expand Up @@ -19305,6 +19332,29 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 'my_main_function',
changelog: [{ version: '0.11.0', prs: [403, 415] }],
},
'faas.execution': {
brief: 'The execution ID of the current function execution.',
type: 'string',
applyScrubbing: {
key: 'manual',
},
isInOtel: false,
visibility: 'public',
example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',
deprecation: {
replacement: 'faas.invocation_id',
reason:
'This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.',
},
aliases: ['faas.invocation_id', 'aws.lambda.aws_request_id'],
changelog: [
{
version: 'next',
prs: [473],
description: 'Added faas.execution attribute, deprecated in favor of faas.invocation_id',
},
],
},
'faas.identity': {
brief:
'The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services',
Expand All @@ -19327,8 +19377,11 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
isInOtel: true,
visibility: 'public',
example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',
aliases: ['aws.lambda.aws_request_id'],
changelog: [{ version: '0.11.1', prs: [414, 424] }],
aliases: ['aws.lambda.aws_request_id', 'faas.execution'],
changelog: [
{ version: 'next', prs: [473], description: 'Added faas.execution as an alias' },
{ version: '0.11.1', prs: [414, 424] },
],
},
'faas.name': {
brief: 'The name of the serverless function',
Expand Down Expand Up @@ -25486,6 +25539,7 @@ export type Attributes = {
[FAAS_CRON]?: FAAS_CRON_TYPE;
[FAAS_DURATION_IN_MS]?: FAAS_DURATION_IN_MS_TYPE;
[FAAS_ENTRY_POINT]?: FAAS_ENTRY_POINT_TYPE;
[FAAS_EXECUTION]?: FAAS_EXECUTION_TYPE;
[FAAS_IDENTITY]?: FAAS_IDENTITY_TYPE;
[FAAS_INVOCATION_ID]?: FAAS_INVOCATION_ID_TYPE;
[FAAS_NAME]?: FAAS_NAME_TYPE;
Expand Down
7 changes: 6 additions & 1 deletion model/attributes/aws/aws__lambda__aws_request_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
},
"is_in_otel": false,
"example": "8476a536-e9f4-11e8-9739-2dfe598c3fcd",
"alias": ["faas.invocation_id"],
"alias": ["faas.invocation_id", "faas.execution"],
"deprecation": {
"_status": "backfill",
"replacement": "faas.invocation_id",
"reason": "This attribute is being deprecated in favor of faas.invocation_id"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [473],
"description": "Added faas.execution as an alias"
},
{
"version": "0.11.1",
"prs": [414, 424],
Expand Down
24 changes: 24 additions & 0 deletions model/attributes/faas/faas__execution.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "faas.execution",
"brief": "The execution ID of the current function execution.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"example": "af9d5aa4-a685-4c5f-a22b-444f80b3cc28",
"alias": ["faas.invocation_id", "aws.lambda.aws_request_id"],
"deprecation": {
"_status": "backfill",
"replacement": "faas.invocation_id",
"reason": "This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [473],
"description": "Added faas.execution attribute, deprecated in favor of faas.invocation_id"
}
]
}
7 changes: 6 additions & 1 deletion model/attributes/faas/faas__invocation_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
},
"is_in_otel": true,
"example": "af9d5aa4-a685-4c5f-a22b-444f80b3cc28",
"alias": ["aws.lambda.aws_request_id"],
"alias": ["aws.lambda.aws_request_id", "faas.execution"],
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [473],
"description": "Added faas.execution as an alias"
},
{
"version": "0.11.1",
"prs": [414, 424]
Expand Down
54 changes: 50 additions & 4 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class _AttributeNamesMeta(type):
"DEVICEMEMORY",
"EFFECTIVECONNECTIONTYPE",
"ENVIRONMENT",
"FAAS_EXECUTION",
"FCP",
"FP",
"FRAMES_DELAY",
Expand Down Expand Up @@ -1232,7 +1233,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Apply Scrubbing: manual
Defined in OTEL: No
Visibility: public
Aliases: faas.invocation_id
Aliases: faas.invocation_id, faas.execution
DEPRECATED: Use faas.invocation_id instead - This attribute is being deprecated in favor of faas.invocation_id
Example: "8476a536-e9f4-11e8-9739-2dfe598c3fcd"
"""
Expand Down Expand Up @@ -3111,6 +3112,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "my_main_function"
"""

# Path: model/attributes/faas/faas__execution.json
FAAS_EXECUTION: Literal["faas.execution"] = "faas.execution"
"""The execution ID of the current function execution.

Type: str
Apply Scrubbing: manual
Defined in OTEL: No
Visibility: public
Aliases: faas.invocation_id, aws.lambda.aws_request_id
DEPRECATED: Use faas.invocation_id instead - This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.
Example: "af9d5aa4-a685-4c5f-a22b-444f80b3cc28"
"""

# Path: model/attributes/faas/faas__identity.json
FAAS_IDENTITY: Literal["faas.identity"] = "faas.identity"
"""The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services
Expand All @@ -3130,7 +3144,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Apply Scrubbing: manual
Defined in OTEL: Yes
Visibility: public
Aliases: aws.lambda.aws_request_id
Aliases: aws.lambda.aws_request_id, faas.execution
Example: "af9d5aa4-a685-4c5f-a22b-444f80b3cc28"
"""

Expand Down Expand Up @@ -9749,8 +9763,13 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
reason="This attribute is being deprecated in favor of faas.invocation_id",
status=DeprecationStatus.BACKFILL,
),
aliases=["faas.invocation_id"],
aliases=["faas.invocation_id", "faas.execution"],
changelog=[
ChangelogEntry(
version="next",
prs=[473],
description="Added faas.execution as an alias",
),
ChangelogEntry(
version="0.11.1",
prs=[414, 424],
Expand Down Expand Up @@ -11919,6 +11938,27 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.11.0", prs=[403, 415]),
],
),
"faas.execution": AttributeMetadata(
brief="The execution ID of the current function execution.",
type=AttributeType.STRING,
apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.MANUAL),
is_in_otel=False,
visibility=Visibility.PUBLIC,
example="af9d5aa4-a685-4c5f-a22b-444f80b3cc28",
deprecation=DeprecationInfo(
replacement="faas.invocation_id",
reason="This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.",
status=DeprecationStatus.BACKFILL,
),
aliases=["faas.invocation_id", "aws.lambda.aws_request_id"],
changelog=[
ChangelogEntry(
version="next",
prs=[473],
description="Added faas.execution attribute, deprecated in favor of faas.invocation_id",
),
],
),
"faas.identity": AttributeMetadata(
brief="The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services",
type=AttributeType.STRING,
Expand All @@ -11937,8 +11977,13 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
is_in_otel=True,
visibility=Visibility.PUBLIC,
example="af9d5aa4-a685-4c5f-a22b-444f80b3cc28",
aliases=["aws.lambda.aws_request_id"],
aliases=["aws.lambda.aws_request_id", "faas.execution"],
changelog=[
ChangelogEntry(
version="next",
prs=[473],
description="Added faas.execution as an alias",
),
ChangelogEntry(version="0.11.1", prs=[414, 424]),
],
),
Expand Down Expand Up @@ -18364,6 +18409,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"faas.cron": str,
"faas.duration_in_ms": int,
"faas.entry_point": str,
"faas.execution": str,
"faas.identity": str,
"faas.invocation_id": str,
"faas.name": str,
Expand Down
Loading