Skip to content

AWS Lambda Node 24 Runtime Error #18412

@brtinney

Description

@brtinney

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

10.28.0

Framework Version

Nuxt 4.2.1

Link to Sentry event

https://your-menu.sentry.io/issues/7087894413/events/4ed88352510f427091413edf5b2bfea3/?project=4507589965053952&query=is%3Aunresolved&referrer=previous-event

Reproduction Example/SDK Setup

The Node 24 runtime in AWS Lambda appears to be incompatible with Sentry (@sentry/node -- underlying @sentry/nuxt in our case). It is likely an OpenTelemetry issue, but not sure exactly which package.

After upgrading the runtime in AWS, we immediately started being flooded with this error:

TypeError: this.invokeStore.getTenantId is not a function
    at TelemetryLogger.log (/var/runtime/index.mjs:1479:39)
    ...

It appears that anywhere in the application where console.log() or console.error() etc. was called, this error would be triggered. I removed the logging integration from Sentry, just in case that was the cause, but, as I had kind of already assumed, did not resolve the issue.

I figured, based on the class name, that this is from otel, and I did find this issue, but nothing exactly related.

Hoping someone here who has more knowledge of how the packages all sort themselves out can file an appropriate report.

There's probably some combination of settings that could remove this TelemetryLogger call, but that would probably take away from what we're trying to get out of Sentry. So, for now, I just swapped back to Node 22 and everything is fine again.

Steps to Reproduce

Use console.log() somewhere in the deployed application.

Expected Result

No errors generated in Sentry.

Actual Result

TypeError: this.invokeStore.getTenantId is not a function

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions