-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Step Function] 3.3. Add class StepFunctionConfigLoader #151
Conversation
@@ -21,7 +22,7 @@ export async function instrumentStateMachines(event: InputEvent): Promise<Output | |||
}; | |||
} | |||
|
|||
function instrumentStateMachine(resources: Resources, stateMachine: StateMachine): void { | |||
function instrumentStateMachine(resources: Resources, config: Configuration, stateMachine: StateMachine): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config
will be used in future PRs.
fragment: { | ||
Mappings: {}, | ||
}, | ||
} as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
578ddba
to
2442c34
Compare
fragment: { | ||
Mappings: {}, | ||
}, | ||
} as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context of this PR series
Right now the Datadog Serverless CloudFormation Macro only supports instrumenting Lambda functions. This series of PRs makes it also support instrumenting Step Functions.
Instead of merging every PR into main branch, I'm going to merge them into a feature branch
yiming.luo/step-function
to avoid releasing partial support for step functions.What does this PR do?
Similar to the existing class
LambdaConfigLoader
created in #150, this PR adds a classStepFunctionConfigLoader
, which extends the same base classConfigLoader
.Motivation
To load step function config options set by the user, e.g.
env
.Testing Guidelines
step_function/env.spec.ts
Additional Notes
env.spec.ts
, I can only use theenv
field, which is the only field for now. One problem is that it doesn't have a default value, so I can't test the behavior around default values. I will change to another field once there is one.Types of changes
Check all that apply