-
-
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
Sentry Postgres Integration does not detect database events #9431
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-performance for triage ⏲️ |
Hi @RodoVJ, thanks for writing in! We don't have a direct integration with TypeORM, but it looks like it uses the |
Hey @RodoVJ thanks for writing in! If you supply the |
Hi @AbhiPrasad, thank you for your response! When our app first starts up, I get the following with
When I perform an action that triggers a GET call to our API that uses Postgres, I get several of the following console logs:
|
I'm looking for logs like so: sentry-javascript/packages/tracing-internal/src/node/integrations/postgres.ts Lines 86 to 93 in 4babd02
that tell us the pg module is unable to be required. what version of the SDK are you on? Can you provide a copy of your |
I can't seem to find a similar message to And for sure! This is our Sentry.init({
dsn: sentryDsn,
debug: true,
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
new Sentry.Integrations.Express({ app }),
new Sentry.Integrations.Apollo(),
new Sentry.Integrations.GraphQL(),
new Sentry.Integrations.Postgres(),
new CaptureConsole({ levels: ['error'] }),
],
tracesSampleRate: environment.production ? 0.2 : 1.0,
}); |
@AbhiPrasad I set the option |
I use MikroORM and I have the same problem. I don't see anything happening in Postgres. I use it like this:
Even using autoDiscoverNodePerformanceMonitoringIntegrations doesn't change anything |
Hey @mrZedov could you open a new GH issue and fill out the template? Would also be super helpful if you can add |
@AbhiPrasad any chance there is documentation for what to use instead of usePgNative in sentry v8? Google and Github sent me here for typeorm/sentry problems, and this looks like a great fix, but its no longer available on the postgres integration in v8 as far as I can tell. |
For v8 the SDK uses OpenTelemetry, so the mechanisms for instrumentation are completely different. Let's see if we can figure it out in #12265! |
Environment
SaaS (https://sentry.io/)
What are you trying to accomplish?
My team wants to use the Sentry Postgres integration to monitor the performance of our database. We are using Postgres as our database and use Typeorm as our ORM to make database operations.
How are you getting stuck?
Sentry does not seem to pick up any activity coming from Postgres and we don't see any metrics related to it. Is the reason Sentry can't pick up activity coming form Postgres because we are using Typeorm to interact with Postgres? If that's the case, is there a way to get around this issue? We introduced other automatic integrations (GraphQL and Express) and those are working fine.
Where in the product are you?
Performance
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: