Skip to content

[Question] how to make runtime exceptions visible in cloudwatch metrics? #307

Closed
@abrabah

Description

@abrabah

How do i tell aws-serverless-java-container to NOT catch all exceptions, but rather let the lambda fail ?

I need this behavior so that i can observe all unexpected exceptions in cloudwatch metrics (Error count and success rate).. Currently this metric show a success rate of 100% even though the lambda throws un-handled exceptions

I'm using the serverless container together with Jersey.

Edit; tried re-throwing the exception from an ExceptionMapper, but that didn't work either..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions