Skip to content

Commit

Permalink
fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Mar 28, 2024
1 parent 9f6c821 commit 68d0ab8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sending-data/platforms/aws/aws-lambda/traces/node.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Using the [AWS CDK](https://aws.amazon.com/cdk/) manually propagate the _baselim
}),
payload: TaskInput.fromObject({
code: TaskInput.fromJsonPathAt("$.Payload.statusCode").value,
_baselime: TaskInput.fromJsonPathAt("$.['Payload._baselime', 'null']").value
_baselime: TaskInput.fromJsonPathAt("$.Payload._baselime").value
})
})
```
Expand All @@ -147,7 +147,7 @@ Using the [Amazon States Language](https://docs.aws.amazon.com/step-functions/la
"FunctionName": "arn:aws:lambda:us-east-1:123456789:function:prod-state-machine-lambda-time",
"Payload": {
"code.$": "$.Payload.statusCode",
"_baselime.$": "$.['Payload._baselime', 'null']"
"_baselime.$": "$.Payload._baselime"
}
}
}
Expand All @@ -169,7 +169,7 @@ const snsPublish = new SnsPublish(stack, "SnsPublish", {
message: TaskInput.fromObject({
...
}),
resultPath: "$.['Payload._baselime', 'null']",
resultPath: "$.Payload._baselime",
})
```

Expand All @@ -187,7 +187,7 @@ Using the [Amazon States Language](https://docs.aws.amazon.com/step-functions/la
"TopicArn": "arn:aws:sns::1249256823:topic:my-topic"
},
"Next": "TaskTwoA",
"ResultPath": "$.['Payload._baselime', 'null']"
"ResultPath": "$.Payload._baselime"
}
```
+++
Expand Down

0 comments on commit 68d0ab8

Please sign in to comment.