Right now NewAppStack() creates a stack and integrates it with Datadog. This PR splits into two functions:
NewAppStackWithoutDatadog(): creates a stack, without Datadog integration
NewAppStackWithDatadog(), which calls NewAppStackWithoutDatadog() and adds Datadog integration
Motivation
I'm going to rename the interfaces like I did in https://github.com/DataDog/datadog-cdk-constructs/pull/288. To make sure both the new API and old API work, I will need to to write two stacks for testing the two APIs. The two stacks will share the non-Datadog setup code, so I'm putting this part in the NewAppStackWithoutDatadog() function.
What does this PR do?
Right now
NewAppStack()
creates a stack and integrates it with Datadog. This PR splits into two functions:NewAppStackWithoutDatadog()
: creates a stack, without Datadog integrationNewAppStackWithDatadog()
, which callsNewAppStackWithoutDatadog()
and adds Datadog integrationMotivation
I'm going to rename the interfaces like I did in https://github.com/DataDog/datadog-cdk-constructs/pull/288. To make sure both the new API and old API work, I will need to to write two stacks for testing the two APIs. The two stacks will share the non-Datadog setup code, so I'm putting this part in the
NewAppStackWithoutDatadog()
function.Testing Guidelines
cdk deploy
successfully deploys the Go stack.Additional Notes
Types of Changes
Check all that apply