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
120 changes: 120 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2794,6 +2794,30 @@ export const AWS_LAMBDA_FUNCTION_VERSION = 'aws.lambda.function_version';
*/
export type AWS_LAMBDA_FUNCTION_VERSION_TYPE = string;

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

/**
* How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE. `aws.lambda.initialization_type`
*
* Attribute Value Type: `string` {@link AWS_LAMBDA_INITIALIZATION_TYPE_TYPE}
*
* Apply Scrubbing: manual
*
* Attribute defined in OTEL: No
* Visibility: public
*
* @example "native-http"
* @example "on-demand"
* @example "provisioned-concurrency"
* @example "snap-start"
*/
export const AWS_LAMBDA_INITIALIZATION_TYPE = 'aws.lambda.initialization_type';

/**
* Type for {@link AWS_LAMBDA_INITIALIZATION_TYPE} aws.lambda.initialization_type
*/
export type AWS_LAMBDA_INITIALIZATION_TYPE_TYPE = string;

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

/**
Expand Down Expand Up @@ -2862,6 +2886,28 @@ 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__web__endpoint_name.json

/**
* The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header. `aws.lambda.web.endpoint_name`
*
* Attribute Value Type: `string` {@link AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE}
*
* Apply Scrubbing: manual
*
* Attribute defined in OTEL: No
* Visibility: public
*
* @example "prod"
* @example "canary"
*/
export const AWS_LAMBDA_WEB_ENDPOINT_NAME = 'aws.lambda.web.endpoint_name';

/**
* Type for {@link AWS_LAMBDA_WEB_ENDPOINT_NAME} aws.lambda.web.endpoint_name
*/
export type AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE = string;

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

/**
Expand Down Expand Up @@ -7081,6 +7127,28 @@ export const FAAS_INVOKED_REGION = 'faas.invoked_region';
*/
export type FAAS_INVOKED_REGION_TYPE = string;

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

/**
* The amount of memory available to the serverless function, in bytes. `faas.max_memory`
*
* Attribute Value Type: `number` {@link FAAS_MAX_MEMORY_TYPE}
*
* Apply Scrubbing: manual
*
* Attribute defined in OTEL: Yes
* Visibility: public
*
* @example 134217728
* @example 1073741824
*/
export const FAAS_MAX_MEMORY = 'faas.max_memory';

/**
* Type for {@link FAAS_MAX_MEMORY} faas.max_memory
*/
export type FAAS_MAX_MEMORY_TYPE = number;

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

/**
Expand Down Expand Up @@ -20566,9 +20634,11 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
'aws.lambda.execution_duration_in_millis': 'double',
'aws.lambda.function_name': 'string',
'aws.lambda.function_version': 'string',
'aws.lambda.initialization_type': 'string',
'aws.lambda.invoked_arn': 'string',
'aws.lambda.invoked_function_arn': 'string',
'aws.lambda.remaining_time_in_millis': 'double',
'aws.lambda.web.endpoint_name': 'string',
'aws.log.group.names': 'string[]',
'aws.log.stream.names': 'string[]',
'aws.operation_name': 'string',
Expand Down Expand Up @@ -20760,6 +20830,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
'faas.invoked_name': 'string',
'faas.invoked_provider': 'string',
'faas.invoked_region': 'string',
'faas.max_memory': 'integer',
'faas.name': 'string',
'faas.time': 'string',
'faas.trigger': 'string',
Expand Down Expand Up @@ -21475,9 +21546,11 @@ export type AttributeName =
| typeof AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS
| typeof AWS_LAMBDA_FUNCTION_NAME
| typeof AWS_LAMBDA_FUNCTION_VERSION
| typeof AWS_LAMBDA_INITIALIZATION_TYPE
| typeof AWS_LAMBDA_INVOKED_ARN
| typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN
| typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS
| typeof AWS_LAMBDA_WEB_ENDPOINT_NAME
| typeof AWS_LOG_GROUP_NAMES
| typeof AWS_LOG_STREAM_NAMES
| typeof AWS_OPERATION_NAME
Expand Down Expand Up @@ -21669,6 +21742,7 @@ export type AttributeName =
| typeof FAAS_INVOKED_NAME
| typeof FAAS_INVOKED_PROVIDER
| typeof FAAS_INVOKED_REGION
| typeof FAAS_MAX_MEMORY
| typeof FAAS_NAME
| typeof FAAS_TIME
| typeof FAAS_TRIGGER
Expand Down Expand Up @@ -24304,6 +24378,19 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
{ version: '0.7.0', prs: [369], description: 'Added aws.lambda.function_version attribute' },
],
},
'aws.lambda.initialization_type': {
brief: 'How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE.',
type: 'string',
keys: ['aws.lambda.initialization_type'],
applyScrubbing: {
key: 'manual',
},
isInOtel: false,
visibility: 'public',
example: 'native-http',
examples: ['native-http', 'on-demand', 'provisioned-concurrency', 'snap-start'],
changelog: [{ version: 'next', description: 'Added aws.lambda.initialization_type attribute' }],
},
'aws.lambda.invoked_arn': {
brief: 'The full ARN of the Lambda function that was invoked',
type: 'string',
Expand Down Expand Up @@ -24354,6 +24441,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.web.endpoint_name': {
brief:
'The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header.',
type: 'string',
keys: ['aws.lambda.web.endpoint_name'],
applyScrubbing: {
key: 'manual',
},
isInOtel: false,
visibility: 'public',
example: 'prod',
examples: ['prod', 'canary'],
changelog: [{ version: 'next', description: 'Added aws.lambda.web.endpoint_name 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 @@ -27191,6 +27292,22 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 'eu-central-1',
changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_region attribute' }],
},
'faas.max_memory': {
brief: 'The amount of memory available to the serverless function, in bytes.',
type: 'integer',
keys: ['faas.max_memory'],
applyScrubbing: {
key: 'manual',
},
isInOtel: true,
visibility: 'public',
example: 134217728,
examples: [134217728, 1073741824],
changelog: [{ version: 'next', description: 'Added faas.max_memory attribute' }],
additionalContext: [
'On AWS Lambda, multiply AWS_LAMBDA_FUNCTION_MEMORY_SIZE by 1,048,576 to convert the configured memory from MiB to bytes.',
],
},
'faas.name': {
brief: 'The name of the serverless function',
type: 'string',
Expand Down Expand Up @@ -37332,9 +37449,11 @@ export type Attributes = {
[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_INITIALIZATION_TYPE]?: AWS_LAMBDA_INITIALIZATION_TYPE_TYPE;
[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_WEB_ENDPOINT_NAME]?: AWS_LAMBDA_WEB_ENDPOINT_NAME_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 Expand Up @@ -37526,6 +37645,7 @@ export type Attributes = {
[FAAS_INVOKED_NAME]?: FAAS_INVOKED_NAME_TYPE;
[FAAS_INVOKED_PROVIDER]?: FAAS_INVOKED_PROVIDER_TYPE;
[FAAS_INVOKED_REGION]?: FAAS_INVOKED_REGION_TYPE;
[FAAS_MAX_MEMORY]?: FAAS_MAX_MEMORY_TYPE;
[FAAS_NAME]?: FAAS_NAME_TYPE;
[FAAS_TIME]?: FAAS_TIME_TYPE;
[FAAS_TRIGGER]?: FAAS_TRIGGER_TYPE;
Expand Down
37 changes: 37 additions & 0 deletions javascript/sentry-conventions/src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,11 @@ export const SEARCH_AWS__LAMBDA__FUNCTION_NAME = 'aws.lambda.function_name';
*/
export const SEARCH_AWS__LAMBDA__FUNCTION_VERSION = 'aws.lambda.function_version';

/**
* Search name for {@link attributes.AWS_LAMBDA_INITIALIZATION_TYPE}. `aws.lambda.initialization_type`
*/
export const SEARCH_AWS__LAMBDA__INITIALIZATION_TYPE = 'aws.lambda.initialization_type';

/**
* Search name for {@link attributes.AWS_LAMBDA_INVOKED_ARN}. `aws.lambda.invoked_arn`
*/
Expand All @@ -788,6 +793,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_WEB_ENDPOINT_NAME}. `aws.lambda.web.endpoint_name`
*/
export const SEARCH_AWS__LAMBDA__WEB__ENDPOINT_NAME = 'aws.lambda.web.endpoint_name';

/**
* Search name for {@link attributes.AWS_LOG_GROUP_NAMES}. `aws.log.group.names`
*/
Expand Down Expand Up @@ -1810,6 +1820,11 @@ export const SEARCH_FAAS__INVOKED_PROVIDER = 'faas.invoked_provider';
*/
export const SEARCH_FAAS__INVOKED_REGION = 'faas.invoked_region';

/**
* Search name for {@link attributes.FAAS_MAX_MEMORY}. `faas.max_memory`
*/
export const SEARCH_FAAS__MAX_MEMORY = 'faas.max_memory';

/**
* Search name for {@link attributes.FAAS_NAME}. `faas.name`
*/
Expand Down Expand Up @@ -5380,9 +5395,11 @@ export type AttributeSearchName =
| typeof SEARCH_AWS__LAMBDA__EXECUTION_DURATION_IN_MILLIS
| typeof SEARCH_AWS__LAMBDA__FUNCTION_NAME
| typeof SEARCH_AWS__LAMBDA__FUNCTION_VERSION
| typeof SEARCH_AWS__LAMBDA__INITIALIZATION_TYPE
| 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__WEB__ENDPOINT_NAME
| typeof SEARCH_AWS__LOG__GROUP__NAMES
| typeof SEARCH_AWS__LOG__STREAM__NAMES
| typeof SEARCH_AWS__OPERATION_NAME
Expand Down Expand Up @@ -5575,6 +5592,7 @@ export type AttributeSearchName =
| typeof SEARCH_FAAS__INVOKED_NAME
| typeof SEARCH_FAAS__INVOKED_PROVIDER
| typeof SEARCH_FAAS__INVOKED_REGION
| typeof SEARCH_FAAS__MAX_MEMORY
| typeof SEARCH_FAAS__NAME
| typeof SEARCH_FAAS__TIME
| typeof SEARCH_FAAS__TRIGGER
Expand Down Expand Up @@ -7050,6 +7068,12 @@ export const ATTRIBUTE_SEARCH_METADATA: Record<string, AttributeSearchMetadata>
brief: 'The version of the Lambda function',
deprecationChain: ['faas.version', 'aws.lambda.function_version'],
},
'aws.lambda.initialization_type': {
canonicalName: 'aws.lambda.initialization_type',
type: 'string',
brief: 'How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE.',
deprecationChain: ['aws.lambda.initialization_type'],
},
'aws.lambda.invoked_arn': {
canonicalName: 'aws.lambda.invoked_arn',
type: 'string',
Expand All @@ -7068,6 +7092,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.web.endpoint_name': {
canonicalName: 'aws.lambda.web.endpoint_name',
type: 'string',
brief:
'The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header.',
deprecationChain: ['aws.lambda.web.endpoint_name'],
},
'aws.log.group.names': {
canonicalName: 'aws.log.group.names',
type: 'string[]',
Expand Down Expand Up @@ -8263,6 +8294,12 @@ export const ATTRIBUTE_SEARCH_METADATA: Record<string, AttributeSearchMetadata>
brief: 'The cloud region of the invoked function.',
deprecationChain: ['faas.invoked_region'],
},
'faas.max_memory': {
canonicalName: 'faas.max_memory',
type: 'integer',
brief: 'The amount of memory available to the serverless function, in bytes.',
deprecationChain: ['faas.max_memory'],
},
'faas.name': {
canonicalName: 'faas.name',
type: 'string',
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/aws/aws__lambda__initialization_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "aws.lambda.initialization_type",
"brief": "How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"visibility": "public",
"examples": ["native-http", "on-demand", "provisioned-concurrency", "snap-start"],
"changelog": [
{
"version": "next",
"description": "Added aws.lambda.initialization_type attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/aws/aws__lambda__web__endpoint_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "aws.lambda.web.endpoint_name",
"brief": "The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"visibility": "public",
"examples": ["prod", "canary"],
"changelog": [
{
"version": "next",
"description": "Added aws.lambda.web.endpoint_name attribute"
}
]
}
20 changes: 20 additions & 0 deletions model/attributes/faas/faas__max_memory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"key": "faas.max_memory",
"brief": "The amount of memory available to the serverless function, in bytes.",
"type": "integer",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": true,
"visibility": "public",
"examples": [134217728, 1073741824],
"additional_context": [
"On AWS Lambda, multiply AWS_LAMBDA_FUNCTION_MEMORY_SIZE by 1,048,576 to convert the configured memory from MiB to bytes."
],
"changelog": [
{
"version": "next",
"description": "Added faas.max_memory attribute"
}
]
}
Loading
Loading