Skip to content

Opentelemetry dependency too big for Firebase deploys #17418

@ripperdoc

Description

@ripperdoc

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.5.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

I recently installed @sentry/node in a Firebase Functions Node project. Soon I found that I was no longer able to deploy to Firebase. The reason is that the total package including node_modules cannot be more than 500 MB uncompressed / 100 MB compressed.

I looked through the sizes in node_modules and can see that

184M    ./@opentelemetry/

Expected Result

This size is pretty unreasonable (which I guess is an issue with opentelemetry). I tried deleting it from node-modules but it won't run without it. I was hoping there was a way to avoid this dependency in Sentry, considering I'm not using neither opentelemetry nor any tracing.

Is there a way forward here or is Sentry not suitable for space-constrained Javascript environments?

Actual Result

See above

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions