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
38 changes: 38 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2862,6 +2862,27 @@ export const AWS_LAMBDA_REMAINING_TIME_IN_MILLIS = 'aws.lambda.remaining_time_in
*/
export type AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE = number;

// Path: model/attributes/aws/aws__lambda__resource_mapping__id.json

/**
* The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping. `aws.lambda.resource_mapping.id`
*
* Attribute Value Type: `string` {@link AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE}
*
* Apply Scrubbing: manual
*
* Attribute defined in OTEL: Yes
* Visibility: public
*
* @example "587ad24b-03b9-4413-8202-bbd56b36e5b7"
*/
export const AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id';

/**
* Type for {@link AWS_LAMBDA_RESOURCE_MAPPING_ID} aws.lambda.resource_mapping.id
*/
export type AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE = string;

// Path: model/attributes/aws/aws__log__group__names.json

/**
Expand Down Expand Up @@ -20569,6 +20590,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
'aws.lambda.invoked_arn': 'string',
'aws.lambda.invoked_function_arn': 'string',
'aws.lambda.remaining_time_in_millis': 'double',
'aws.lambda.resource_mapping.id': 'string',
'aws.log.group.names': 'string[]',
'aws.log.stream.names': 'string[]',
'aws.operation_name': 'string',
Expand Down Expand Up @@ -21478,6 +21500,7 @@ export type AttributeName =
| typeof AWS_LAMBDA_INVOKED_ARN
| typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN
| typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS
| typeof AWS_LAMBDA_RESOURCE_MAPPING_ID
| typeof AWS_LOG_GROUP_NAMES
| typeof AWS_LOG_STREAM_NAMES
| typeof AWS_OPERATION_NAME
Expand Down Expand Up @@ -24354,6 +24377,20 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 5000,
changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.lambda.remaining_time_in_millis attribute' }],
},
'aws.lambda.resource_mapping.id': {
brief:
"The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.",
type: 'string',
keys: ['aws.lambda.resource_mapping.id'],
applyScrubbing: {
key: 'manual',
},
isInOtel: true,
visibility: 'public',
example: '587ad24b-03b9-4413-8202-bbd56b36e5b7',
examples: ['587ad24b-03b9-4413-8202-bbd56b36e5b7'],
changelog: [{ version: 'next', description: 'Added aws.lambda.resource_mapping.id attribute' }],
},
'aws.log.group.names': {
brief: 'The name(s) of the AWS log group(s) an application is writing to.',
type: 'string[]',
Expand Down Expand Up @@ -37335,6 +37372,7 @@ export type Attributes = {
[AWS_LAMBDA_INVOKED_ARN]?: AWS_LAMBDA_INVOKED_ARN_TYPE;
[AWS_LAMBDA_INVOKED_FUNCTION_ARN]?: AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE;
[AWS_LAMBDA_REMAINING_TIME_IN_MILLIS]?: AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE;
[AWS_LAMBDA_RESOURCE_MAPPING_ID]?: AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE;
[AWS_LOG_GROUP_NAMES]?: AWS_LOG_GROUP_NAMES_TYPE;
[AWS_LOG_STREAM_NAMES]?: AWS_LOG_STREAM_NAMES_TYPE;
[AWS_OPERATION_NAME]?: AWS_OPERATION_NAME_TYPE;
Expand Down
13 changes: 13 additions & 0 deletions javascript/sentry-conventions/src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,11 @@ export const SEARCH_AWS__LAMBDA__INVOKED_FUNCTION_ARN = 'aws.lambda.invoked_func
*/
export const SEARCH_AWS__LAMBDA__REMAINING_TIME_IN_MILLIS = 'aws.lambda.remaining_time_in_millis';

/**
* Search name for {@link attributes.AWS_LAMBDA_RESOURCE_MAPPING_ID}. `aws.lambda.resource_mapping.id`
*/
export const SEARCH_AWS__LAMBDA__RESOURCE_MAPPING__ID = 'aws.lambda.resource_mapping.id';

/**
* Search name for {@link attributes.AWS_LOG_GROUP_NAMES}. `aws.log.group.names`
*/
Expand Down Expand Up @@ -5383,6 +5388,7 @@ export type AttributeSearchName =
| typeof SEARCH_AWS__LAMBDA__INVOKED_ARN
| typeof SEARCH_AWS__LAMBDA__INVOKED_FUNCTION_ARN
| typeof SEARCH_AWS__LAMBDA__REMAINING_TIME_IN_MILLIS
| typeof SEARCH_AWS__LAMBDA__RESOURCE_MAPPING__ID
| typeof SEARCH_AWS__LOG__GROUP__NAMES
| typeof SEARCH_AWS__LOG__STREAM__NAMES
| typeof SEARCH_AWS__OPERATION_NAME
Expand Down Expand Up @@ -7068,6 +7074,13 @@ export const ATTRIBUTE_SEARCH_METADATA: Record<string, AttributeSearchMetadata>
brief: 'The remaining time in milliseconds before the Lambda function times out',
deprecationChain: ['aws.lambda.remaining_time_in_millis'],
},
'aws.lambda.resource_mapping.id': {
canonicalName: 'aws.lambda.resource_mapping.id',
type: 'string',
brief:
"The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.",
deprecationChain: ['aws.lambda.resource_mapping.id'],
},
'aws.log.group.names': {
canonicalName: 'aws.log.group.names',
type: 'string[]',
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/aws/aws__lambda__resource_mapping__id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "aws.lambda.resource_mapping.id",
"brief": "The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": true,
"examples": ["587ad24b-03b9-4413-8202-bbd56b36e5b7"],
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added aws.lambda.resource_mapping.id attribute"
}
]
}
30 changes: 30 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,6 +2070,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: 5000
"""

# Path: model/attributes/aws/aws__lambda__resource_mapping__id.json
AWS_LAMBDA_RESOURCE_MAPPING_ID: Literal["aws.lambda.resource_mapping.id"] = (
"aws.lambda.resource_mapping.id"
)
"""The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.

Type: str
Apply Scrubbing: manual
Defined in OTEL: Yes
Visibility: public
Example: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
"""

# Path: model/attributes/aws/aws__log__group__names.json
AWS_LOG_GROUP_NAMES: Literal["aws.log.group.names"] = "aws.log.group.names"
"""The name(s) of the AWS log group(s) an application is writing to.
Expand Down Expand Up @@ -14493,6 +14506,22 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
),
],
),
"aws.lambda.resource_mapping.id": AttributeMetadata(
brief="The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.",
type=AttributeType.STRING,
keys=("aws.lambda.resource_mapping.id",),
apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.MANUAL),
is_in_otel=True,
visibility=Visibility.PUBLIC,
example="587ad24b-03b9-4413-8202-bbd56b36e5b7",
examples=["587ad24b-03b9-4413-8202-bbd56b36e5b7"],
changelog=[
ChangelogEntry(
version="next",
description="Added aws.lambda.resource_mapping.id attribute",
),
],
),
"aws.log.group.names": AttributeMetadata(
brief="The name(s) of the AWS log group(s) an application is writing to.",
type=AttributeType.STRING_ARRAY,
Expand Down Expand Up @@ -29368,6 +29397,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"aws.lambda.invoked_arn": str,
"aws.lambda.invoked_function_arn": str,
"aws.lambda.remaining_time_in_millis": float,
"aws.lambda.resource_mapping.id": str,
"aws.log.group.names": List[str],
"aws.log.stream.names": List[str],
"aws.operation_name": str,
Expand Down
Loading