Closed
Description
Hi there,
I've been back and forth with Sentry trying to figure out why debug information seems to be completely lost when in the deployed Lambda environment--very strangely, the same project compiled directly in the underlying Docker container built for release happily passes along its debug info. The trouble only starts when deployed.
Some interesting things about the project:
- We organize our functions via workspaces, so we've defined the
profile.release
overload in the root Cargo.toml. - We only use Sentry in our library project crate and then use this crate in the other functions; this shouldn't be an issue as evidenced by the fact this works in virtually any environment aside from Lambda itself.
- Frustratingly things work as expected locally and during CircleCI builds and even from the build container; just not Lambda itself.
- As per Sentry's request we've tried uploading debug symbols manually, but this hasn't really helped.
- Sentry complains that
libc.6.so
is not included in the aforementioned uploaded debug files, but despite this things work in e.g. CircleCI, just again not in Lambda.
I'm wondering if this could be partly to do with the fact that the Lambda executable is packaged and renamed to "bootstrap"? If there's any light you can shed on that piece of things and how it might affect something like this, I'd really appreciate it! :)
serverless version: ^1.51.0
rust-plugin version: ^0.3.6
Metadata
Metadata
Assignees
Labels
No labels