-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: Set DD_TRACE_ENABLED tag on state machine #338
Conversation
@@ -24,6 +24,10 @@ | |||
"Key": "custom-tag-2", | |||
"Value": "tag-value-2" | |||
}, | |||
{ | |||
"Key": "DD_STEP_FUNCTIONS_TRACE_ENABLED", |
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.
DD_STEP_FUNCTIONS_TRACE_ENABLED
is used at the DD Forwarder, to enable Forwarder level trace enablement for SFs. For each individual SF, you need to use DD_TRACE_ENABLED
instead of DD_STEP_FUNCTIONS_TRACE_ENABLED
. In addition, we probably should only allow customer to enable DD_STEP_FUNCTIONS_TRACE_ENABLED
at the DD forwarder manually instead of via any ci/plugin/cdk tools when deploying an individual Step Functions.
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.
You are right. I set a wrong tag. Will fix.
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.
@nine5two7 Fixed!
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.
Later, we need to mention in the public documentation that this value is set to "true" by default. Customers can manually disable it in the AWS console. @lym953
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.
Good point. I will add it to README first. I'll mention @cswatt in that PR so she knows to also add it to public doc.
43568dd
to
6e22a20
Compare
6e22a20
to
e190c49
Compare
/merge |
Devflow running:
|
What does this PR do?
When instrumenting a state machine, sets
DD_TRACE_ENABLED
tag totrue
. This is needed to enable tracing.Aligned with @nine5two7 that we always set it to true for now. If any customer wants to customize it, we can support it later.
Motivation
Testing Guidelines
Automated testing
UPDATE_SNAPSHOTS=true aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/run_integration_tests.sh
, and the snapshots in the snapshot tests are updated.Manual testing
Steps
step-functions-typescript-stack
.Result
Additional Notes
Types of Changes
Check all that apply