Skip to content

Unable to set relay logging level when using lambda layer #6921

Closed as not planned

Description

@Lightbirdv

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/serverless

SDK Version

7.32.1

Framework Version

No response

Link to Sentry event

No response

SDK Setup

Integrating sentry as a Lambda layer using CDK:
const sentryLayer = LayerVersion.fromLayerVersionArn(
scope,
${functionName}-sentrylayer,
arn:aws:lambda:eu-central-1:943013980633:layer:SentryNodeServerlessSDK:108
);

Steps to Reproduce

  1. Integrating the lambda layer

Expected Result

Logs that are specifically coming from sentry itself.

Actual Result

Also getting the info logs from the relay middleware:
[relay::setup] INFO
[relay_server::actors::outcome] INFO
[relay_server::actors::processor] INFO

please enable a lambda environment variable to set the logging level for relay.

Activity

  1. Lms24 commented on Jan 24, 2023

    @Lms24
    Member

    Hi @Lightbirdv thanks for writing in!

    I'm not an expert on our serverless SDK but could you provide a link to which docs you followed to set up the layer?

    Also, @antonpirker @sl0thentr0py since you have more experience around Relay on our serverless SDKs, would you mind taking a look at this?

  2. sl0thentr0py commented on Jan 24, 2023

    @sl0thentr0py
    Member

    I wanted to do this before shipping but I was on vacation back then and people shipped it already.
    So now this is a feature request and we'll need to pick t up, will take on our board.

  3. Lightbirdv commented on Jan 24, 2023

    @Lightbirdv
    Author

    Alright thanks for the quick response. Looking forward to the feature!

  4. HazAT commented on Jan 24, 2023

    @HazAT
    Member

    @Lightbirdv Can I just ask to assess importance - I assume you can somehow filter out our logs so it's rather a small annoyance than a breakage?
    Or does this impact you in a significant other way?

  5. Lightbirdv commented on Jan 24, 2023

    @Lightbirdv
    Author

    @HazAT We are using datadog to filter it currently but since our infrastructure is pretty reliant on lambdas the cloudwatch logs are really cluttered with info logs on startup. So it would be nice if you test something to quickly search the cloudwatch logs without the relay spam.

  6. DM1145 commented on Mar 15, 2023

    @DM1145

    FWIW, this happens on cold starts and on recycles - so it is pretty much an ongoing problem.

  7. self-assigned this
    on Mar 17, 2023
  8. moved this to Waiting for: Community in GitHub Issues with 👀 2on Apr 24, 2024
  9. getsantry commented on May 16, 2024

    @getsantry

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions