Skip to content
Open
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
4 changes: 2 additions & 2 deletions posts/2019-11-21-debugging-with-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ If you want to try tags in the explorer, you’ll first need to add some to your

If you’re using NodeJS, update serverless with npm update -g serverless

Add this code to your Serverless.yml file:
Add this code to your handler function:

```javascript
module.exports.hello = async event, context => {
context.serverlessSdk.tagEvent('customerId', 5, { newCustomer: true, isDemo: true, demoExpire: '2019-12-01' })
tagEvent('200 OK')
context.serverlessSdk.tagEvent('200 OK')
return {
statusCode: 200,
body: JSON.stringify(
Expand Down