Skip to content

(synthetics): add tracing #14086

@thomasklinger1234

Description

@thomasklinger1234

Enable active tracing (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-runconfig.html#cfn-synthetics-canary-runconfig-activetracing) for a canary.

Use Case

End-to-end tracing from Canary to API Gateway to Lambda.

Proposed Solution

Add a new property to synthetics.CanaryProps:

new synthetics.Canary(this, 'MyCanary', {
  ...,
  activeTracing: true,
})

By default, it will be false. When set to true, it will also append XRay permissions to the IAM role (e.g. the managed policy arn:aws:iam::aws:policy/AWSXrayWriteOnlyAccess).

Other

Similar PR: #11865.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-syntheticsRelated to Amazon CloudWatch Syntheticsfeature-requestA feature should be added or improved.feature/coverage-gapGaps in CloudFormation coverage by L2 constructsp3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions