Aws-cdk: X-Ray support for AppSync CDK construct

Created on 28 Apr 2020  路  4Comments  路  Source: aws/aws-cdk


Now that X-Ray exists as a feature that can be enabled on AppSync since February 2020 (https://aws.amazon.com/about-aws/whats-new/2020/02/aws-appsync-releases-integration-with-aws-x-ray-and-graphql-info-object-support/) it makes sense to allow it to be enabled through the CDK constructs, similarly to how it's enabled for Lambda constructs for example.

In other words, something like this should be possible:

new GraphQLApi(this, `graphql`, {
            name: `graphql`,
            tracing: Tracing.ACTIVE,
};
  • [X] :wave: I may be able to implement this feature request
  • [ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

@aws-cdaws-appsync efforsmall feature-request good first issue in-progress p2

Most helpful comment

I may be able to implement this feature request.

All 4 comments

This should be a good first issue to tackle for first time contributors!

  • [ ] Adding a boolean prop for xrayEnabled
  • [ ] Linking it to the xrayEnabled prop in class CfnGraphQLApi from appsync.generated.ts file that is generated on yarn build
  • [ ] Writing a unit test to check whether that the boolean property is set in the CloudFormation Template

I may be able to implement this feature request.

@tomoki10 fantastic! whenever you start please feel free to label the issue as in-progress :)

Was this page helpful?
0 / 5 - 0 ratings