Skip to content

(aws-stepfunctions): unnecessary log group definition in x-ray tracing example #16158

@benhawley7

Description

@benhawley7

https://docs.aws.amazon.com/cdk/api/latest/docs/aws-stepfunctions-readme.html#x-ray-tracing

The X-Ray Tracing code example includes an unnecessary instantiation of a LogGroup which is not used in the StateMachine definition.

const logGroup = new logs.LogGroup(stack, 'MyLogGroup'); // <--- unnecessary for the example

new sfn.StateMachine(stack, 'MyStateMachine', {
    definition: sfn.Chain.start(new sfn.Pass(stack, 'Pass')),
    tracingEnabled: true
});

This is a 📕 documentation issue

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-stepfunctionsRelated to AWS StepFunctionsdocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions