Skip to content

Setting experimental metricsAggregator: true does not respect enabled setting and hangs on connecting #10837

Closed
@Jimmy89

Description

@Jimmy89

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/serverless

SDK Version

7.103.0

Framework Version

NodeJS 20.10

Link to Sentry event

No response

SDK Setup

Index.mjs

import Sentry from "@sentry/serverless";
// Important: no DSN is inserted, no Sentry environment variables are set, these are all values given to Sentry
Sentry.AWSLambda.init({
    enabled: false,
    _experiments: {
        metricsAggregator: true,
    },
});

console.log("I keep running");

Steps to Reproduce

  1. Run code with node index.mjs
  2. The node process will never stop, it 'hangs' on the metricsAggregator to 'finish' or something, which never happens.

Expected Result

Sentry not doing anything as it is disabled.

Actual Result

Need to kill the node process the hard way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: serverlessIssues related to the Sentry Serverless SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions