-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drizzle expression imports broken with latest sentry profiling version #15067
Comments
Hi @livingforjesus, thanks for filing this. We are currently working on some improvements for sentry profiling that might be related. Could you please provide a sample repo we can use to test with? |
Yes @andreiborza . I provided this repo: |
Ahh, sorry I overlooked that. Taking a look. |
Not sure what exactly is happening, but it might be that one of the recent otel bumps broke this. You can work around this by setting the following in your
This way Let me know if this works for you. |
I think this is essentially a duplicate of #12912 (ignore the Astro part). Moreover, in v9, IIRC the TLDR here is that the drizzle package has a very special way of specifying exports which import-in-the-middle can't really handle correctly. Hence, excluding it from being wrapped is probably the best option for now. Let us know of this works for you, then we'll close this issue. |
Ok lemme try that |
Yes works |
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
8.50.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/livingforjesus/sentry-issue-repro
To reproduce just:
pnpm i
pnpm start
.Steps to Reproduce
We were on sentry v8.48.0 and tried upgrading to sentry v8.50.0. However upgrading
sentry-profiling-node
causes something weird to happen during our build process that makes certain drizzle expressions not to be exported. The expressions not exported are located indrizzle-orm/expressions/index.ts
or something like that(in drizzle codebase). These throw an error whenever we try to access. Other functions from drizzle are exported and work normallyNote:
Expected Result
Everything works normally, I'm able to start api and operate as normal
Actual Result
The text was updated successfully, but these errors were encountered: