You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting experimental metricsAggregator: true does not respect enabled setting and hangs on connecting #10837
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
Run code with node index.mjs
The node process will never stop, it 'hangs' on the metricsAggregator to 'finish' or something, which never happens.
Only the basic Sentry Logger [warn]: No DSN provided, client will not send events. message (which is expected as I also disable Sentry), whether the plugin is added or not.
No other messages. Were you able to reproduce the issue as well?
I was able to reproduce this issue. It seems something is being problematic and not letting the node process exit.
For now you can resolve this by only setting the metricsAggregator experiment if the dsn is defined. We currently don't have the bandwidth to dig deeper for now, but PRs are welcome if you would like to help us out! Thanks.
Activity
AbhiPrasad commentedon Feb 28, 2024
If you add
debug: true, to yourSentry.init, what shows up in the logs?Jimmy89 commentedon Feb 29, 2024
Only the basic
Sentry Logger [warn]: No DSN provided, client will not send events.message (which is expected as I also disable Sentry), whether the plugin is added or not.No other messages. Were you able to reproduce the issue as well?
AbhiPrasad commentedon Mar 5, 2024
I was able to reproduce this issue. It seems something is being problematic and not letting the node process exit.
For now you can resolve this by only setting the
metricsAggregatorexperiment if thedsnis defined. We currently don't have the bandwidth to dig deeper for now, but PRs are welcome if you would like to help us out! Thanks.AbhiPrasad commentedon Apr 10, 2024
Fixed with #11483, will be released end of this week.
AbhiPrasad commentedon Apr 11, 2024
Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/7.110.0