-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nestjs
SDK Version
8.48.0
Framework Version
NestJS 10.4.15
Link to Sentry event
No response
Reproduction Example/SDK Setup
Follow the setup guide mentioned at https://docs.sentry.io/platforms/javascript/guides/nestjs/
const Sentry = require("@sentry/nestjs");
const { nodeProfilingIntegration } = require("@sentry/profiling-node");
// Ensure to call this before requiring any other modules!
Sentry.init({
dsn: "__APP_DSN_HERE__",
debug: true,
environment: "test-app",
integrations: [
nodeProfilingIntegration(),
],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
Steps to Reproduce
- Freshly create a new NestJS 10.4.15 with
@nestjs/cli
10.4.9
. - install sentry packages by running the below command followed the setup instruction at https://docs.sentry.io/platforms/javascript/guides/nestjs/
npm install @sentry/nestjs @sentry/profiling-node --save
Expected Result
- Sentry should show HTTP Tracing information in the Performance tab
Actual Result
Details
Sentry Logger [log]: [Tracing] Starting sampled root span
op: < unknown op >
name: GET
ID: 6e1cdc8130e08152
Sentry Logger [log]: [Profiling] started profiling transaction: GET
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - query: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - query
ID: 49c4968f0dc41ac3
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "query" with ID 49c4968f0dc41ac3
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - expressInit: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - expressInit
ID: 1400e991804e1e8a
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "expressInit" with ID 1400e991804e1e8a
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - jsonParser: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - jsonParser
ID: 3e714715fe786be9
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "jsonParser" with ID 3e714715fe786be9
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - urlencodedParser: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - urlencodedParser
ID: 5b5836db755c69cd
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "urlencodedParser" with ID 5b5836db755c69cd
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - : true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware -
ID: d82014e8eadbc9d7
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for SentryGlobalFilter: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: middleware.nestjs
name: SentryGlobalFilter
ID: fb308fb6e00325a3
parent ID: 6e1cdc8130e08152
root ID: 6e1cdc8130e08152
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.nestjs" span "SentryGlobalFilter" with ID fb308fb6e00325a3
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "" with ID d82014e8eadbc9d7
Sentry Logger [log]: [Tracing] Finishing "< unknown op >" root span "GET /" with ID 6e1cdc8130e08152
Sentry Logger [log]: [Profiling] stopped profiling of transaction: GET /
Sentry Logger [log]: SpanExporter exported 7 spans, 0 spans are waiting for their parent spans to finish
Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for outgoing requests
Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on response()
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on end()
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on request close()
Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for incoming request
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http instrumentation incomingRequest
Sentry Logger [log]: [Tracing] Starting sampled root span
op: < unknown op >
name: GET
ID: 3ec77b1e60acc61f
Sentry Logger [log]: [Profiling] started profiling transaction: GET
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - query: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - query
ID: e49233aa1bf13fc7
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "query" with ID e49233aa1bf13fc7
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - expressInit: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - expressInit
ID: a7d60fd281d034e6
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "expressInit" with ID a7d60fd281d034e6
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - jsonParser: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - jsonParser
ID: a25bb8465aae5df0
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "jsonParser" with ID a25bb8465aae5df0
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for middleware - urlencodedParser: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: middleware - urlencodedParser
ID: 4807eded41ff5bdb
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.express" span "urlencodedParser" with ID 4807eded41ff5bdb
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for request handler - /: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: request handler - /
ID: 6349fc02c1afef02
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "request_handler.express" span "/" with ID 6349fc02c1afef02
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for AppController.getHello: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: AppController.getHello
ID: 89bd1f1e14b5c2b4
parent ID: 3ec77b1e60acc61f
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for SentryTracingInterceptor: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: middleware.nestjs
name: SentryTracingInterceptor
ID: ff2a3ee83a40eeb5
parent ID: 89bd1f1e14b5c2b4
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.nestjs" span "SentryTracingInterceptor" with ID ff2a3ee83a40eeb5
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for Interceptors - After Route: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: middleware.nestjs
name: Interceptors - After Route
ID: 852e5d9aff7dac08
parent ID: 89bd1f1e14b5c2b4
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for SentryTracingInterceptor: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: middleware.nestjs
name: SentryTracingInterceptor
ID: 97067bfe1d82523b
parent ID: 89bd1f1e14b5c2b4
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "middleware.nestjs" span "SentryTracingInterceptor" with ID 97067bfe1d82523b
Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for getHello: true
Sentry Logger [log]: [Tracing] Starting sampled span
op: < unknown op >
name: getHello
ID: 71b57d2e629a83d0
parent ID: 89bd1f1e14b5c2b4
root ID: 3ec77b1e60acc61f
root description: GET
Sentry Logger [log]: [Tracing] Finishing "handler.nestjs" span "getHello" with ID 71b57d2e629a83d0
Sentry Logger [log]: [Tracing] Finishing "middleware.nestjs" span "Interceptors - After Route" with ID 852e5d9aff7dac08
Sentry Logger [log]: [Tracing] Finishing "request_context.nestjs" span "AppController.getHello" with ID 89bd1f1e14b5c2b4
Sentry Logger [log]: [Tracing] Finishing "< unknown op >" root span "GET /" with ID 3ec77b1e60acc61f
Sentry Logger [log]: [Profiling] stopped profiling of transaction: GET /
Sentry Logger [log]: SpanExporter exported 11 spans, 0 spans are waiting for their parent spans to finish
Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for outgoing requests
Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on response()
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on end()
Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on request close()
Although the trace are recorded in the console, it doesn't show up in Sentry project's performance tab
Metadata
Metadata
Assignees
Labels
Projects
Status