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
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// THIS FILE IS AUTOGENERATED, DO NOT MANUALLY EDIT

export const LAMBDA_LAYER_VERSIONS = {
extension: 90,
extension: 91,
dotnet: 23,
java: 24,
java: 25,
node: 132,
python: 120,
ruby: 27,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ You can pass the following arguments to `instrument` to specify its behavior. Th
| `--config` | | Path to the configuration file | |
| `--dry` or `--dry-run` | `-d` | Preview changes running command would apply | `false` |
| `--env` | | Use --env to separate out your staging, development, and production environments. Learn more about the env tag here: https://docs.datadoghq.com/serverless/troubleshooting/serverless_tagging/#the-env-tag | |
| `--extension-version` or `--extensionVersion` | `-e` | Version of the Datadog Lambda Extension layer to apply. Setting this to 'latest' will use version 90. When using the extension, make sure to export DATADOG_API_KEY (or if encrypted, DATADOG_KMS_API_KEY or DATADOG_API_KEY_SECRET_ARN) in your environment as well. Mutually exclusive with the forwarder. Set to 'none' to explicitly disable adding the extension layer. Learn more about the Lambda Extension here: https://docs.datadoghq.com/serverless/libraries_integrations/extension | `latest` |
| `--extension-version` or `--extensionVersion` | `-e` | Version of the Datadog Lambda Extension layer to apply. Setting this to 'latest' will use version 91. When using the extension, make sure to export DATADOG_API_KEY (or if encrypted, DATADOG_KMS_API_KEY or DATADOG_API_KEY_SECRET_ARN) in your environment as well. Mutually exclusive with the forwarder. Set to 'none' to explicitly disable adding the extension layer. Learn more about the Lambda Extension here: https://docs.datadoghq.com/serverless/libraries_integrations/extension | `latest` |
| `--extra-tags` or `--extraTags` | | Add custom tags to your Lambda function in Datadog. Must be a list of <key>:<value> separated by commas such as: layer:api,team:intake | |
| `--flush-metrics-to-logs` or `--flushMetricsToLogs` | | Whether to send metrics via the Datadog Forwarder asynchronously (https://docs.datadoghq.com/serverless/custom_metrics?tab=python#enabling-asynchronous-custom-metrics). If you disable this parameter, it's required to export DATADOG_API_KEY (or if encrypted, DATADOG_KMS_API_KEY or DATADOG_API_KEY_SECRET_ARN). | `true` |
| `--forwarder` | | The ARN of the datadog forwarder (https://docs.datadoghq.com/logs/guide/forwarder/) to attach this function's LogGroup to | |
| `--function` | `-f` | The ARN of the Lambda function to be instrumented, or the name of the Lambda function (--region must be defined) | |
| `--interactive` | `-i` | Allows the user to interactively choose how their function gets instrumented. There is no need to provide any other flags if you choose to use interactive mode since you will be prompted for the information instead | `false` |
| `--layer-version` or `--layerVersion` | `-v` | Version of the Datadog Lambda Library layer to apply. Setting this to 'latest' will use one of the following versions based on your runtime: dotnet - 23, java - 24, node - 132, python - 120, ruby - 27. Setting to 'none' will disable adding the language layer. | `latest` |
| `--layer-version` or `--layerVersion` | `-v` | Version of the Datadog Lambda Library layer to apply. Setting this to 'latest' will use one of the following versions based on your runtime: dotnet - 23, java - 25, node - 132, python - 120, ruby - 27. Setting to 'none' will disable adding the language layer. | `latest` |
| `--logging` | | Whether to collect logs using the Lambda Extension. | `true` |
| `--log-level` or `--logLevel` | | Set to debug to see additional output from the Datadog Lambda Library and/or Lambda Extension for troubleshooting purposes | |
| `--merge-xray-traces` or `--mergeXrayTraces` | | Whether to join dd-trace traces to AWS X-Ray traces. Useful for tracing API Gateway spans. | `false` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:us-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node24-x:10"
]
}
Expand Down Expand Up @@ -132,7 +132,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:us-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node24-x:10"
]
}
Expand Down Expand Up @@ -181,7 +181,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node16-x:132"
]
}
Expand All @@ -205,7 +205,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node18-x:132"
]
}
Expand Down Expand Up @@ -256,7 +256,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node16-x:132"
]
}
Expand All @@ -280,7 +280,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node18-x:132"
]
}
Expand Down Expand Up @@ -562,7 +562,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:us-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:us-east-1:464622532012:layer:dd-trace-dotnet:129"
]
}
Expand Down Expand Up @@ -854,7 +854,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node24-x:132"
]
}
Expand Down Expand Up @@ -904,7 +904,7 @@ UpdateFunctionConfiguration -> arn:aws:lambda:sa-east-1:123456789012:function:la
}
},
"Layers": [
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:90",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Extension:91",
"arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node24-x:132"
]
}
Expand Down