You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// (in instrument.ts, required first in main.ts)import*asSentryfrom'@sentry/nestjs';import{nodeProfilingIntegration}from'@sentry/profiling-node';// Ensure to call this before importing any other modules!Sentry.init({dsn: process.env.SENTRY_DSN,release: process.env.SHA,environment: process.env.API_STAGE==='dev' ? 'dev' : 'production',debug: false,integrations: [// Add our Profiling integrationnodeProfilingIntegration(),Sentry.mongooseIntegration(),],// Add Tracing by setting tracesSampleRate// We recommend adjusting this value in productiontracesSampleRate: 1.0,// Set sampling rate for profiling// This is relative to tracesSampleRateprofilesSampleRate: 1.0,});
Steps to Reproduce
Use Mongoose profiler (with or without explicitly declaring it) with Nest.js and new @sentry/nestjs SDK. (Mongoose version 8.5.0)
Look for any auto.db.otel.mongo profile spans
Expected Result
Should show rich database information, i.e. what query was performed
Actual Result
Query result in the db.statement field looks like this: {"find":"?","filter":{"userId":"?"},"limit":"?","singleBatch":"?","batchSize":"?"} or this:
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nestjs
SDK Version
8.16.0
Framework Version
Nest.js 10.3.10
Link to Sentry event
No response
SDK Setup/Reproduction Example
Steps to Reproduce
8.5.0
)auto.db.otel.mongo
profile spansExpected Result
Should show rich database information, i.e. what query was performed
Actual Result
Query result in the
db.statement
field looks like this:{"find":"?","filter":{"userId":"?"},"limit":"?","singleBatch":"?","batchSize":"?"}
or this:The text was updated successfully, but these errors were encountered: