- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
DD_TRACE_ENABLED
tag is set to true
on the Step Function in your AWS console.ALL
, and that Include execution data is selected.DEBUG
logs on the Datadog Lambda Forwarder by setting the environment variable DD_LOG_LEVEL
to debug
.In Datadog, go to Logs > Log Stream. Search for source:stepfunction
. You may need to trigger the state machine a few times. If you need to upgrade Datadog Lambda Forwarder from an older version, check that after the upgrade, the Forwarder has the DD_FETCH_STEP_FUNCTIONS_TAGS
tag set to true
. If the upgraded Forwarder does not have the DD_FETCH_STEP_FUNCTIONS_TAGS
tag, your Forwarder may not be upgraded correctly.
If the Forwarder and state machine tags are set up correctly with the previous steps, the logs are tagged with DD_TRACE_ENABLED:true
.
To enable searching historic logs, add a temporary index to the forwarded logs. In Datadog, open the Logs Indexes tab. Click the New Index button in the upper right.
Choose a name, set the index filter to Source:stepfunction
, leave everything else with default values, and save.
If your organization has an existing all-encompassing index with a low limit, place your new index at the top.
Note: Indexing logs is not a requirement for getting traces and may incur additional cost. If you are troubleshooting a specific issue, you may wish to temporarily send logs to an index, debug, and delete the index afterwards. See Indexes for more information.
"Payload.$": "States.JsonMerge($$, $, false)"
on the Lambda steps.TaskScheduled
event log of the Lambda step has the payload containing data from the Step Function context object. If you do not have a TaskScheduled
event and only have a LambdaFunctionScheduled
event, update the task in Step Functions definition to use the recommended Lambda integration. See the AWS documentation for instructions on how to do this.aws.stepfunctions
root span but I cannot see any step spansPlease enable the Include execution data
option on the state machine’s logging. After enabling this option, log execution input, data passed between states, and execution output is logged. The Datadog backend uses the logs to construct these step spans for you.
When searching traces, select the Live Search option in the upper right corner. If Live Search shows your trace, add “@trace_type:stepfunctions” to the retention filter and set the desired retention rate. For debugging, Datadog recommends setting the retention rate to 100%. The filter can be disabled after debugging is done.
Wait
, Choice
, Success
, Fail
, Pass
, Inline MapState
, and Parallel
are supported, while Distributed MapState
is not supported.If you are using your customized way to deploy Datadog Lambda Forwarder, here are some tips that can help you debug enabling Step Functions tracing:
DD_FETCH_STEP_FUNCTIONS_TAGS
to true
.DD_TRACE_ENABLED
tag.DD_STEP_FUNCTIONS_TRACE_ENABLED
tag at the Forwarder-level to enable tracing for all Step Functions using that Forwarder on v3.121.0+.tags:getResources
permission.source:stepfunction
with the Live
search timeframe (which shows all logs going into Datadog’s logs intake). If you cannot see any logs, check if there are any error logs on the Datadog Forwarder such as wrong/invalid API key. Adding the environment variable DD_LOG_LEVEL
of DEBUG
helps you debug the Forwarder issue. If you see Step Functions logs, verify that the logs have the dd_trace_enable:true
tag (all tags are normalized) and you should see Step Function traces associated with the log in a few minutes.If your Lambda has the DD_TRACE_EXTRACTOR
environment variable set, its traces cannot be merged.