Skip to content

AWS lambda using layer not sending errors to Sentry #13663

Closed
@fdx-caio

Description

@fdx-caio

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/aws-serverless

SDK Version

arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryNodeServerlessSDK:271

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

I am integrating an serveless app with Sentry and encountered the following problem: I can't seem to find any errors thrown by my lambda in Sentry discovery or elsewhere, can confirm the lambda is throwing a bad request error but not appearing on Sentry. However other logs such as transactions does seem to appear.

For context I am not using the library wrapper or any dependency as I am expecting the layer to integrate and primarily emit any logs from my lambdas.

I have followed the setup strictly from this page and my app is running in CommonJS (CJS): https://docs.sentry.io/platforms/javascript/guides/aws-lambda/install/cjs-layer/

Layer: arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryNodeServerlessSDK:271

Environment variables:
NODE_OPTIONS: "-r @sentry/aws-serverless/awslambda-auto"
SENTRY_DSN: "***"
SENTRY_TRACES_SAMPLE_RATE: "1.0"
SENTRY_ENVIRONMENT: "dev"

Expected Result

Expecting to see errors and other types of logs other than transaction on Sentry

Actual Result

Result showing transactions from Sentry

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: aws-serverlessIssues related to the Sentry AWS Serverless SDK

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions