Skip to content

Support for AccessLogSetting and TracingEnabled from AWS::Serverless::Api #1753

@dreamorosi

Description

@dreamorosi

Currently Chalice allows for an xray key that according to the documentation is:

A boolean that turns on AWS XRay’s Active tracing configuration. This will turn on XRay for both Lambda functions and API Gateway stages.

What it actually does is to enable tracing only for the functions but not the API Gateway. The generated CloudFormation template has a "Tracing": "Active" property in the AWS::Serverless::Function resource but doesn't have the TracingEnabled needed in the AWS::Serverless::Api resources to enable tracing.

Also the access logs are not implemented at all and would be great to have them to implement best observability practices. AWS::Serverless::Api exposes a AccessLogSetting property that would allow to set CloudWatch access logging on the stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions