DataDog / datadog-cdk-constructs

CDK construct library to automagically instrument your Lambda functions with Datadog
Apache License 2.0
65 stars 28 forks source link

feat: [Step Function] Set up logging #318

Closed lym953 closed 3 weeks ago

lym953 commented 3 weeks ago

What does this PR do?

Enables setting up logging for a given state machine:

  1. Set log level to ALL
  2. Set includeExecutionData to true
  3. Set destination log group (if not set already)
  4. Add permissions to the state machine role to log to CloudWatch Logs

Motivation

This is the first step of instrumenting a step function.

Testing Guidelines

Automated Testing

Passed the added tests.

Manual Testing

Successfully deployed the example app step-functions-typescript-stack, which contains two stacks.

Additional Notes

Types of Changes

Check all that apply

lym953 commented 3 weeks ago

/merge

dd-devflow[bot] commented 3 weeks ago

:steam_locomotive: MergeQueue: pull request added to the queue

The median merge time in main is 8m.

Use /merge -c to cancel this operation!