Aws Attributes

12 attributes in this category. 8 stable · 4 deprecated

12 attributes

Stable Attributes

aws.cloudwatch.logs.log_group

string Scrub: Manual Visibility: Public OTel: False

The name of the CloudWatch Logs log group

Example /aws/lambda/my-function
Changelog
v0.7.0 #369 Added aws.cloudwatch.logs.log_group attribute
Raw JSON
{
  "key": "aws.cloudwatch.logs.log_group",
  "brief": "The name of the CloudWatch Logs log group",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "/aws/lambda/my-function",
  "changelog": [
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.cloudwatch.logs.log_group attribute"
    }
  ]
}

aws.cloudwatch.logs.log_stream

string Scrub: Manual Visibility: Public OTel: False

The name of the CloudWatch Logs log stream

Example 2024/01/01/[$LATEST]abcdef1234567890
Changelog
v0.7.0 #369 Added aws.cloudwatch.logs.log_stream attribute
Raw JSON
{
  "key": "aws.cloudwatch.logs.log_stream",
  "brief": "The name of the CloudWatch Logs log stream",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "2024/01/01/[$LATEST]abcdef1234567890",
  "changelog": [
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.cloudwatch.logs.log_stream attribute"
    }
  ]
}

aws.cloudwatch.logs.url

string Scrub: Manual Visibility: Public OTel: False

The URL to the CloudWatch Logs log group

Example https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group
Changelog
v0.7.0 #369 Added aws.cloudwatch.logs.url attribute
Raw JSON
{
  "key": "aws.cloudwatch.logs.url",
  "brief": "The URL to the CloudWatch Logs log group",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group",
  "changelog": [
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.cloudwatch.logs.url attribute"
    }
  ]
}

aws.lambda.execution_duration_in_millis

double Scrub: Manual Visibility: Public OTel: False

The execution duration of the Lambda function invocation in milliseconds

Example 1234.56
Changelog
v0.7.0 #369 Added aws.lambda.execution_duration_in_millis attribute
Raw JSON
{
  "key": "aws.lambda.execution_duration_in_millis",
  "brief": "The execution duration of the Lambda function invocation in milliseconds",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 1234.56,
  "changelog": [
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.execution_duration_in_millis attribute"
    }
  ]
}

aws.lambda.invoked_arn

string Scrub: Manual Visibility: Public OTel: True

The full ARN of the Lambda function that was invoked

Example arn:aws:lambda:us-east-1:123456789012:function:my-function
Changelog
v0.11.1 #414
Raw JSON
{
  "key": "aws.lambda.invoked_arn",
  "brief": "The full ARN of the Lambda function that was invoked",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "arn:aws:lambda:us-east-1:123456789012:function:my-function",
  "alias": [
    "aws.lambda.invoked_function_arn"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414
      ]
    }
  ]
}

aws.lambda.remaining_time_in_millis

double Scrub: Manual Visibility: Public OTel: False

The remaining time in milliseconds before the Lambda function times out

Example 5000
Changelog
v0.7.0 #369 Added aws.lambda.remaining_time_in_millis attribute
Raw JSON
{
  "key": "aws.lambda.remaining_time_in_millis",
  "brief": "The remaining time in milliseconds before the Lambda function times out",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 5000,
  "changelog": [
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.remaining_time_in_millis attribute"
    }
  ]
}

aws.log.group.names

string[] Scrub: Manual Visibility: Public OTel: True

The name(s) of the AWS log group(s) an application is writing to.

Example ["/aws/lambda/my-function","opentelemetry-service"]
Changelog
v0.11.1 #414
Raw JSON
{
  "key": "aws.log.group.names",
  "brief": "The name(s) of the AWS log group(s) an application is writing to.",
  "type": "string[]",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": [
    "/aws/lambda/my-function",
    "opentelemetry-service"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414
      ]
    }
  ]
}

aws.log.stream.names

string[] Scrub: Manual Visibility: Public OTel: True

The name(s) of the AWS log stream(s) an application is writing to.

Example ["logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"]
Changelog
v0.11.1 #414
Raw JSON
{
  "key": "aws.log.stream.names",
  "brief": "The name(s) of the AWS log stream(s) an application is writing to.",
  "type": "string[]",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": [
    "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414
      ]
    }
  ]
}

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

aws.lambda.aws_request_id Deprecated

string Scrub: Manual Visibility: Public OTel: False

The AWS request ID as received by the Lambda function runtime

Example 8476a536-e9f4-11e8-9739-2dfe598c3fcd

Use faas.invocation_id instead.

This attribute is being deprecated in favor of faas.invocation_id

Status: backfill

Changelog
v0.11.1 #414#424 Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id
v0.7.0 #369 Added aws.lambda.aws_request_id attribute
Raw JSON
{
  "key": "aws.lambda.aws_request_id",
  "brief": "The AWS request ID as received by the Lambda function runtime",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "8476a536-e9f4-11e8-9739-2dfe598c3fcd",
  "deprecation": {
    "replacement": "faas.invocation_id",
    "reason": "This attribute is being deprecated in favor of faas.invocation_id",
    "_status": "backfill"
  },
  "alias": [
    "faas.invocation_id"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414,
        424
      ],
      "description": "Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id"
    },
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.aws_request_id attribute"
    }
  ]
}

aws.lambda.function_name Deprecated

string Scrub: Manual Visibility: Public OTel: False

The name of the Lambda function

Example my-function
Aliases faas.name

Use faas.name instead.

Use the OTel-aligned faas.name attribute instead

Status: backfill

Changelog
v0.11.1 #414 Deprecated aws.lambda.function_name in favor of faas.name
v0.7.0 #369 Added aws.lambda.function_name attribute
Raw JSON
{
  "key": "aws.lambda.function_name",
  "brief": "The name of the Lambda function",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "my-function",
  "deprecation": {
    "replacement": "faas.name",
    "reason": "Use the OTel-aligned faas.name attribute instead",
    "_status": "backfill"
  },
  "alias": [
    "faas.name"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414
      ],
      "description": "Deprecated aws.lambda.function_name in favor of faas.name"
    },
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.function_name attribute"
    }
  ]
}

aws.lambda.function_version Deprecated

string Scrub: Manual Visibility: Public OTel: False

The version of the Lambda function

Example $LATEST
Aliases faas.version

Use faas.version instead.

Use the OTel-aligned faas.version attribute instead

Status: backfill

Changelog
v0.11.1 #414#424 Deprecated aws.lambda.function_version in favor of faas.version
v0.7.0 #369 Added aws.lambda.function_version attribute
Raw JSON
{
  "key": "aws.lambda.function_version",
  "brief": "The version of the Lambda function",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "$LATEST",
  "deprecation": {
    "replacement": "faas.version",
    "reason": "Use the OTel-aligned faas.version attribute instead",
    "_status": "backfill"
  },
  "alias": [
    "faas.version"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414,
        424
      ],
      "description": "Deprecated aws.lambda.function_version in favor of faas.version"
    },
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.function_version attribute"
    }
  ]
}

aws.lambda.invoked_function_arn Deprecated

string Scrub: Manual Visibility: Public OTel: False

The full ARN of the Lambda function that was invoked

Example arn:aws:lambda:us-east-1:123456789012:function:my-function

Use aws.lambda.invoked_arn instead.

This attribute is being deprecated in favor of aws.lambda.invoked_arn

Status: backfill

Changelog
v0.11.1 #414 Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn
v0.7.0 #369 Added aws.lambda.invoked_function_arn attribute
Raw JSON
{
  "key": "aws.lambda.invoked_function_arn",
  "brief": "The full ARN of the Lambda function that was invoked",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "arn:aws:lambda:us-east-1:123456789012:function:my-function",
  "deprecation": {
    "replacement": "aws.lambda.invoked_arn",
    "reason": "This attribute is being deprecated in favor of aws.lambda.invoked_arn",
    "_status": "backfill"
  },
  "alias": [
    "aws.lambda.invoked_arn"
  ],
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        414
      ],
      "description": "Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn"
    },
    {
      "version": "0.7.0",
      "prs": [
        369
      ],
      "description": "Added aws.lambda.invoked_function_arn attribute"
    }
  ]
}