diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e74c1197..32ec79ec 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -1285,6 +1285,186 @@ export const APP_VITALS_TTID_VALUE = 'app.vitals.ttid.value'; */ export type APP_VITALS_TTID_VALUE_TYPE = number; +// Path: model/attributes/aws/aws__cloudwatch__logs__log_group.json + +/** + * The name of the CloudWatch Logs log group `aws.cloudwatch.logs.log_group` + * + * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "/aws/lambda/my-function" + */ +export const AWS_CLOUDWATCH_LOGS_LOG_GROUP = 'aws.cloudwatch.logs.log_group'; + +/** + * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP} aws.cloudwatch.logs.log_group + */ +export type AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE = string; + +// Path: model/attributes/aws/aws__cloudwatch__logs__log_stream.json + +/** + * The name of the CloudWatch Logs log stream `aws.cloudwatch.logs.log_stream` + * + * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "2024/01/01/[$LATEST]abcdef1234567890" + */ +export const AWS_CLOUDWATCH_LOGS_LOG_STREAM = 'aws.cloudwatch.logs.log_stream'; + +/** + * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM} aws.cloudwatch.logs.log_stream + */ +export type AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE = string; + +// Path: model/attributes/aws/aws__cloudwatch__logs__url.json + +/** + * The URL to the CloudWatch Logs log group `aws.cloudwatch.logs.url` + * + * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_URL_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group" + */ +export const AWS_CLOUDWATCH_LOGS_URL = 'aws.cloudwatch.logs.url'; + +/** + * Type for {@link AWS_CLOUDWATCH_LOGS_URL} aws.cloudwatch.logs.url + */ +export type AWS_CLOUDWATCH_LOGS_URL_TYPE = string; + +// Path: model/attributes/aws/aws__lambda__aws_request_id.json + +/** + * The AWS request ID as received by the Lambda function runtime `aws.lambda.aws_request_id` + * + * Attribute Value Type: `string` {@link AWS_LAMBDA_AWS_REQUEST_ID_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "8476a536-e9f4-11e8-9739-2dfe598c3fcd" + */ +export const AWS_LAMBDA_AWS_REQUEST_ID = 'aws.lambda.aws_request_id'; + +/** + * Type for {@link AWS_LAMBDA_AWS_REQUEST_ID} aws.lambda.aws_request_id + */ +export type AWS_LAMBDA_AWS_REQUEST_ID_TYPE = string; + +// Path: model/attributes/aws/aws__lambda__execution_duration_in_millis.json + +/** + * The execution duration of the Lambda function invocation in milliseconds `aws.lambda.execution_duration_in_millis` + * + * Attribute Value Type: `number` {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example 1234.56 + */ +export const AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS = 'aws.lambda.execution_duration_in_millis'; + +/** + * Type for {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS} aws.lambda.execution_duration_in_millis + */ +export type AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE = number; + +// Path: model/attributes/aws/aws__lambda__function_name.json + +/** + * The name of the Lambda function `aws.lambda.function_name` + * + * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_NAME_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "my-function" + */ +export const AWS_LAMBDA_FUNCTION_NAME = 'aws.lambda.function_name'; + +/** + * Type for {@link AWS_LAMBDA_FUNCTION_NAME} aws.lambda.function_name + */ +export type AWS_LAMBDA_FUNCTION_NAME_TYPE = string; + +// Path: model/attributes/aws/aws__lambda__function_version.json + +/** + * The version of the Lambda function `aws.lambda.function_version` + * + * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_VERSION_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "$LATEST" + */ +export const AWS_LAMBDA_FUNCTION_VERSION = 'aws.lambda.function_version'; + +/** + * Type for {@link AWS_LAMBDA_FUNCTION_VERSION} aws.lambda.function_version + */ +export type AWS_LAMBDA_FUNCTION_VERSION_TYPE = string; + +// Path: model/attributes/aws/aws__lambda__invoked_function_arn.json + +/** + * The full ARN of the Lambda function that was invoked `aws.lambda.invoked_function_arn` + * + * Attribute Value Type: `string` {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "arn:aws:lambda:us-east-1:123456789012:function:my-function" + */ +export const AWS_LAMBDA_INVOKED_FUNCTION_ARN = 'aws.lambda.invoked_function_arn'; + +/** + * Type for {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN} aws.lambda.invoked_function_arn + */ +export type AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE = string; + +// Path: model/attributes/aws/aws__lambda__remaining_time_in_millis.json + +/** + * The remaining time in milliseconds before the Lambda function times out `aws.lambda.remaining_time_in_millis` + * + * Attribute Value Type: `number` {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example 5000 + */ +export const AWS_LAMBDA_REMAINING_TIME_IN_MILLIS = 'aws.lambda.remaining_time_in_millis'; + +/** + * Type for {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS} aws.lambda.remaining_time_in_millis + */ +export type AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE = number; + // Path: model/attributes/blocked_main_thread.json /** @@ -12014,6 +12194,15 @@ export const ATTRIBUTE_TYPE: Record = { [APP_VITALS_START_WARM_VALUE]: 'double', [APP_VITALS_TTFD_VALUE]: 'double', [APP_VITALS_TTID_VALUE]: 'double', + [AWS_CLOUDWATCH_LOGS_LOG_GROUP]: 'string', + [AWS_CLOUDWATCH_LOGS_LOG_STREAM]: 'string', + [AWS_CLOUDWATCH_LOGS_URL]: 'string', + [AWS_LAMBDA_AWS_REQUEST_ID]: 'string', + [AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS]: 'double', + [AWS_LAMBDA_FUNCTION_NAME]: 'string', + [AWS_LAMBDA_FUNCTION_VERSION]: 'string', + [AWS_LAMBDA_INVOKED_FUNCTION_ARN]: 'string', + [AWS_LAMBDA_REMAINING_TIME_IN_MILLIS]: 'double', [BLOCKED_MAIN_THREAD]: 'boolean', [BROWSER_NAME]: 'string', [BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START]: 'double', @@ -12584,6 +12773,15 @@ export type AttributeName = | typeof APP_VITALS_START_WARM_VALUE | typeof APP_VITALS_TTFD_VALUE | typeof APP_VITALS_TTID_VALUE + | typeof AWS_CLOUDWATCH_LOGS_LOG_GROUP + | typeof AWS_CLOUDWATCH_LOGS_LOG_STREAM + | typeof AWS_CLOUDWATCH_LOGS_URL + | typeof AWS_LAMBDA_AWS_REQUEST_ID + | typeof AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS + | typeof AWS_LAMBDA_FUNCTION_NAME + | typeof AWS_LAMBDA_FUNCTION_VERSION + | typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN + | typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS | typeof BLOCKED_MAIN_THREAD | typeof BROWSER_NAME | typeof BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START @@ -13975,6 +14173,98 @@ export const ATTRIBUTE_METADATA: Record = { sdks: ['sentry.cocoa', 'sentry.java.android', 'sentry.javascript.react-native', 'sentry.dart.flutter'], changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.ttid.value attribute' }], }, + [AWS_CLOUDWATCH_LOGS_LOG_GROUP]: { + brief: 'The name of the CloudWatch Logs log group', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: '/aws/lambda/my-function', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.cloudwatch.logs.log_group attribute' }], + }, + [AWS_CLOUDWATCH_LOGS_LOG_STREAM]: { + brief: 'The name of the CloudWatch Logs log stream', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: '2024/01/01/[$LATEST]abcdef1234567890', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.cloudwatch.logs.log_stream attribute' }], + }, + [AWS_CLOUDWATCH_LOGS_URL]: { + brief: 'The URL to the CloudWatch Logs log group', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 'https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.cloudwatch.logs.url attribute' }], + }, + [AWS_LAMBDA_AWS_REQUEST_ID]: { + brief: 'The AWS request ID as received by the Lambda function runtime', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: '8476a536-e9f4-11e8-9739-2dfe598c3fcd', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.lambda.aws_request_id attribute' }], + }, + [AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS]: { + brief: 'The execution duration of the Lambda function invocation in milliseconds', + type: 'double', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 1234.56, + changelog: [ + { version: 'next', prs: [363], description: 'Added aws.lambda.execution_duration_in_millis attribute' }, + ], + }, + [AWS_LAMBDA_FUNCTION_NAME]: { + brief: 'The name of the Lambda function', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 'my-function', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.lambda.function_name attribute' }], + }, + [AWS_LAMBDA_FUNCTION_VERSION]: { + brief: 'The version of the Lambda function', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: '$LATEST', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.lambda.function_version attribute' }], + }, + [AWS_LAMBDA_INVOKED_FUNCTION_ARN]: { + brief: 'The full ARN of the Lambda function that was invoked', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 'arn:aws:lambda:us-east-1:123456789012:function:my-function', + changelog: [{ version: 'next', prs: [363], description: 'Added aws.lambda.invoked_function_arn attribute' }], + }, + [AWS_LAMBDA_REMAINING_TIME_IN_MILLIS]: { + brief: 'The remaining time in milliseconds before the Lambda function times out', + type: 'double', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 5000, + changelog: [{ version: 'next', prs: [363], description: 'Added aws.lambda.remaining_time_in_millis attribute' }], + }, [BLOCKED_MAIN_THREAD]: { brief: 'Whether the main thread was blocked by the span.', type: 'boolean', @@ -20130,6 +20420,15 @@ export type Attributes = { [APP_VITALS_START_WARM_VALUE]?: APP_VITALS_START_WARM_VALUE_TYPE; [APP_VITALS_TTFD_VALUE]?: APP_VITALS_TTFD_VALUE_TYPE; [APP_VITALS_TTID_VALUE]?: APP_VITALS_TTID_VALUE_TYPE; + [AWS_CLOUDWATCH_LOGS_LOG_GROUP]?: AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE; + [AWS_CLOUDWATCH_LOGS_LOG_STREAM]?: AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE; + [AWS_CLOUDWATCH_LOGS_URL]?: AWS_CLOUDWATCH_LOGS_URL_TYPE; + [AWS_LAMBDA_AWS_REQUEST_ID]?: AWS_LAMBDA_AWS_REQUEST_ID_TYPE; + [AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS]?: AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE; + [AWS_LAMBDA_FUNCTION_NAME]?: AWS_LAMBDA_FUNCTION_NAME_TYPE; + [AWS_LAMBDA_FUNCTION_VERSION]?: AWS_LAMBDA_FUNCTION_VERSION_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; [BLOCKED_MAIN_THREAD]?: BLOCKED_MAIN_THREAD_TYPE; [BROWSER_NAME]?: BROWSER_NAME_TYPE; [BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START]?: BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE; diff --git a/model/attributes/aws/aws__cloudwatch__logs__log_group.json b/model/attributes/aws/aws__cloudwatch__logs__log_group.json new file mode 100644 index 00000000..4f31139c --- /dev/null +++ b/model/attributes/aws/aws__cloudwatch__logs__log_group.json @@ -0,0 +1,17 @@ +{ + "key": "aws.cloudwatch.logs.log_group", + "brief": "The name of the CloudWatch Logs log group", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "/aws/lambda/my-function", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.cloudwatch.logs.log_group attribute" + } + ] +} diff --git a/model/attributes/aws/aws__cloudwatch__logs__log_stream.json b/model/attributes/aws/aws__cloudwatch__logs__log_stream.json new file mode 100644 index 00000000..6a178657 --- /dev/null +++ b/model/attributes/aws/aws__cloudwatch__logs__log_stream.json @@ -0,0 +1,17 @@ +{ + "key": "aws.cloudwatch.logs.log_stream", + "brief": "The name of the CloudWatch Logs log stream", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "2024/01/01/[$LATEST]abcdef1234567890", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.cloudwatch.logs.log_stream attribute" + } + ] +} diff --git a/model/attributes/aws/aws__cloudwatch__logs__url.json b/model/attributes/aws/aws__cloudwatch__logs__url.json new file mode 100644 index 00000000..01338532 --- /dev/null +++ b/model/attributes/aws/aws__cloudwatch__logs__url.json @@ -0,0 +1,17 @@ +{ + "key": "aws.cloudwatch.logs.url", + "brief": "The URL to the CloudWatch Logs log group", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.cloudwatch.logs.url attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__aws_request_id.json b/model/attributes/aws/aws__lambda__aws_request_id.json new file mode 100644 index 00000000..0d5ddd68 --- /dev/null +++ b/model/attributes/aws/aws__lambda__aws_request_id.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.aws_request_id", + "brief": "The AWS request ID as received by the Lambda function runtime", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "8476a536-e9f4-11e8-9739-2dfe598c3fcd", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.aws_request_id attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__execution_duration_in_millis.json b/model/attributes/aws/aws__lambda__execution_duration_in_millis.json new file mode 100644 index 00000000..e51fa8b2 --- /dev/null +++ b/model/attributes/aws/aws__lambda__execution_duration_in_millis.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.execution_duration_in_millis", + "brief": "The execution duration of the Lambda function invocation in milliseconds", + "type": "double", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": 1234.56, + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.execution_duration_in_millis attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__function_name.json b/model/attributes/aws/aws__lambda__function_name.json new file mode 100644 index 00000000..19b52381 --- /dev/null +++ b/model/attributes/aws/aws__lambda__function_name.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.function_name", + "brief": "The name of the Lambda function", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "my-function", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.function_name attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__function_version.json b/model/attributes/aws/aws__lambda__function_version.json new file mode 100644 index 00000000..27172405 --- /dev/null +++ b/model/attributes/aws/aws__lambda__function_version.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.function_version", + "brief": "The version of the Lambda function", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "$LATEST", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.function_version attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__invoked_function_arn.json b/model/attributes/aws/aws__lambda__invoked_function_arn.json new file mode 100644 index 00000000..05b8c662 --- /dev/null +++ b/model/attributes/aws/aws__lambda__invoked_function_arn.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.invoked_function_arn", + "brief": "The full ARN of the Lambda function that was invoked", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "arn:aws:lambda:us-east-1:123456789012:function:my-function", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.invoked_function_arn attribute" + } + ] +} diff --git a/model/attributes/aws/aws__lambda__remaining_time_in_millis.json b/model/attributes/aws/aws__lambda__remaining_time_in_millis.json new file mode 100644 index 00000000..889ef13f --- /dev/null +++ b/model/attributes/aws/aws__lambda__remaining_time_in_millis.json @@ -0,0 +1,17 @@ +{ + "key": "aws.lambda.remaining_time_in_millis", + "brief": "The remaining time in milliseconds before the Lambda function times out", + "type": "double", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": 5000, + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added aws.lambda.remaining_time_in_millis attribute" + } + ] +} diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 5563bd91..eb1c4967 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -937,6 +937,114 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: 1234.56 """ + # Path: model/attributes/aws/aws__cloudwatch__logs__log_group.json + AWS_CLOUDWATCH_LOGS_LOG_GROUP: Literal["aws.cloudwatch.logs.log_group"] = ( + "aws.cloudwatch.logs.log_group" + ) + """The name of the CloudWatch Logs log group + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "/aws/lambda/my-function" + """ + + # Path: model/attributes/aws/aws__cloudwatch__logs__log_stream.json + AWS_CLOUDWATCH_LOGS_LOG_STREAM: Literal["aws.cloudwatch.logs.log_stream"] = ( + "aws.cloudwatch.logs.log_stream" + ) + """The name of the CloudWatch Logs log stream + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "2024/01/01/[$LATEST]abcdef1234567890" + """ + + # Path: model/attributes/aws/aws__cloudwatch__logs__url.json + AWS_CLOUDWATCH_LOGS_URL: Literal["aws.cloudwatch.logs.url"] = ( + "aws.cloudwatch.logs.url" + ) + """The URL to the CloudWatch Logs log group + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group" + """ + + # Path: model/attributes/aws/aws__lambda__aws_request_id.json + AWS_LAMBDA_AWS_REQUEST_ID: Literal["aws.lambda.aws_request_id"] = ( + "aws.lambda.aws_request_id" + ) + """The AWS request ID as received by the Lambda function runtime + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "8476a536-e9f4-11e8-9739-2dfe598c3fcd" + """ + + # Path: model/attributes/aws/aws__lambda__execution_duration_in_millis.json + AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS: Literal[ + "aws.lambda.execution_duration_in_millis" + ] = "aws.lambda.execution_duration_in_millis" + """The execution duration of the Lambda function invocation in milliseconds + + Type: float + Contains PII: maybe + Defined in OTEL: No + Example: 1234.56 + """ + + # Path: model/attributes/aws/aws__lambda__function_name.json + AWS_LAMBDA_FUNCTION_NAME: Literal["aws.lambda.function_name"] = ( + "aws.lambda.function_name" + ) + """The name of the Lambda function + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "my-function" + """ + + # Path: model/attributes/aws/aws__lambda__function_version.json + AWS_LAMBDA_FUNCTION_VERSION: Literal["aws.lambda.function_version"] = ( + "aws.lambda.function_version" + ) + """The version of the Lambda function + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "$LATEST" + """ + + # Path: model/attributes/aws/aws__lambda__invoked_function_arn.json + AWS_LAMBDA_INVOKED_FUNCTION_ARN: Literal["aws.lambda.invoked_function_arn"] = ( + "aws.lambda.invoked_function_arn" + ) + """The full ARN of the Lambda function that was invoked + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "arn:aws:lambda:us-east-1:123456789012:function:my-function" + """ + + # Path: model/attributes/aws/aws__lambda__remaining_time_in_millis.json + AWS_LAMBDA_REMAINING_TIME_IN_MILLIS: Literal[ + "aws.lambda.remaining_time_in_millis" + ] = "aws.lambda.remaining_time_in_millis" + """The remaining time in milliseconds before the Lambda function times out + + Type: float + Contains PII: maybe + Defined in OTEL: No + Example: 5000 + """ + # Path: model/attributes/blocked_main_thread.json BLOCKED_MAIN_THREAD: Literal["blocked_main_thread"] = "blocked_main_thread" """Whether the main thread was blocked by the span. @@ -7608,6 +7716,132 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ), ], ), + "aws.cloudwatch.logs.log_group": AttributeMetadata( + brief="The name of the CloudWatch Logs log group", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="/aws/lambda/my-function", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.cloudwatch.logs.log_group attribute", + ), + ], + ), + "aws.cloudwatch.logs.log_stream": AttributeMetadata( + brief="The name of the CloudWatch Logs log stream", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="2024/01/01/[$LATEST]abcdef1234567890", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.cloudwatch.logs.log_stream attribute", + ), + ], + ), + "aws.cloudwatch.logs.url": AttributeMetadata( + brief="The URL to the CloudWatch Logs log group", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.cloudwatch.logs.url attribute", + ), + ], + ), + "aws.lambda.aws_request_id": AttributeMetadata( + brief="The AWS request ID as received by the Lambda function runtime", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="8476a536-e9f4-11e8-9739-2dfe598c3fcd", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.aws_request_id attribute", + ), + ], + ), + "aws.lambda.execution_duration_in_millis": AttributeMetadata( + brief="The execution duration of the Lambda function invocation in milliseconds", + type=AttributeType.DOUBLE, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example=1234.56, + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.execution_duration_in_millis attribute", + ), + ], + ), + "aws.lambda.function_name": AttributeMetadata( + brief="The name of the Lambda function", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="my-function", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.function_name attribute", + ), + ], + ), + "aws.lambda.function_version": AttributeMetadata( + brief="The version of the Lambda function", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="$LATEST", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.function_version attribute", + ), + ], + ), + "aws.lambda.invoked_function_arn": AttributeMetadata( + brief="The full ARN of the Lambda function that was invoked", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="arn:aws:lambda:us-east-1:123456789012:function:my-function", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.invoked_function_arn attribute", + ), + ], + ), + "aws.lambda.remaining_time_in_millis": AttributeMetadata( + brief="The remaining time in milliseconds before the Lambda function times out", + type=AttributeType.DOUBLE, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example=5000, + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added aws.lambda.remaining_time_in_millis attribute", + ), + ], + ), "blocked_main_thread": AttributeMetadata( brief="Whether the main thread was blocked by the span.", type=AttributeType.BOOLEAN, @@ -13993,6 +14227,15 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "app_start_cold": float, "app_start_type": str, "app_start_warm": float, + "aws.cloudwatch.logs.log_group": str, + "aws.cloudwatch.logs.log_stream": str, + "aws.cloudwatch.logs.url": str, + "aws.lambda.aws_request_id": str, + "aws.lambda.execution_duration_in_millis": float, + "aws.lambda.function_name": str, + "aws.lambda.function_version": str, + "aws.lambda.invoked_function_arn": str, + "aws.lambda.remaining_time_in_millis": float, "blocked_main_thread": bool, "browser.name": str, "browser.performance.navigation.activation_start": float,