Skip to content

Commit

Permalink
Merge pull request #69 from DataDog/darcy.rayner/lowercase-function-arn
Browse files Browse the repository at this point in the history
Lowercases function arn on dd-trace spans
  • Loading branch information
DarcyRaynerDD authored Apr 9, 2020
2 parents 4a34b38 + a247dde commit 30263ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datadog-lambda-js",
"version": "2.21.0",
"version": "2.22.0",
"description": "Lambda client library that supports hybrid tracing in node js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/trace/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ export class TraceListener {
const options: TraceOptions = {};
if (this.context) {
logDebug("Applying lambda context to datadog traces");
const functionArn = (this.context.invokedFunctionArn ?? "").toLowerCase();
options.tags = {
cold_start: didFunctionColdStart(),
function_arn: this.context.invokedFunctionArn,
function_arn: functionArn,
request_id: this.context.awsRequestId,
resource_names: this.context.functionName,
};
Expand Down

0 comments on commit 30263ae

Please sign in to comment.