@sentry/aws-serverless is only tracing funciton invocation.
Is there an existing issue for this?
- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- [x] I have reviewed the documentation https://docs.sentry.io/
- [x] 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/aws-serverless
SDK Version
9.24.0
Framework Version
No response
Link to Sentry event
https://growthz.sentry.io/traces/trace/5b8d7ef1744ed4b63ed68a2226594ad9/?node=txn-b7860658acf04df9971b5752f51a65ec&project=4509161965748224&source=traces&statsPeriod=5m&targetId=57ff116074addfcd×tamp=1748848405
Reproduction Example/SDK Setup
instrument.ts
import Sentry from "@sentry/aws-serverless";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
Sentry.init({
dsn: "<my dsn>,
sendDefaultPii: true,
debug: true,
integrations: [nodeProfilingIntegration(), Sentry.fastifyIntegration()],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
main.ts
import { LazyFramework } from '@h4ad/serverless-adapter/frameworks/lazy';
import { FastifyFramework } from '@h4ad/serverless-adapter/frameworks/fastify';
import './instrument'
import {
createDefaultLogger,
ServerlessAdapter,
} from '@h4ad/serverless-adapter';
import type { Handler } from 'aws-lambda';
import Sentry from "@sentry/aws-serverless";
import { setupFastifyErrorHandler } from "@sentry/node"
import { DefaultHandler } from '@h4ad/serverless-adapter/handlers/default';
import { AlbAdapter } from '@h4ad/serverless-adapter/adapters/aws';
import { PromiseResolver } from '@h4ad/serverless-adapter/resolvers/promise';
import { bootstrapApp } from './init';
async function initApp() {
const app = await bootstrapApp();
// we need to wait until it initializes
await app.init();
const nestApp = app.getHttpAdapter().getInstance();
setupFastifyErrorHandler(nestApp);
return nestApp;
}
const fastifyFramework = new FastifyFramework();
// the initialization of nestjs is asynchronous, so you can use the lazy framework.
const framework = new LazyFramework(fastifyFramework, initApp);
export const handler: Handler = Sentry.wrapHandler(
ServerlessAdapter.new(null)
.setFramework(framework)
.setLogger(createDefaultLogger())
.setHandler(new DefaultHandler())
.setResolver(new PromiseResolver())
.setRespondWithErrors(true)
.addAdapter(new AlbAdapter())
.build(),
{
startTrace: true,
captureAllSettledReasons: true,
captureTimeoutWarning: true,
flushTimeout: 10000
}
);
Dockerfile
FROM public.ecr.aws/lambda/nodejs:22 AS builder
WORKDIR /build
COPY . /build
RUN npm install -g pnpm@latest
RUN pnpm install --frozen-lockfile --verbose
RUN pnpm run build
FROM public.ecr.aws/lambda/nodejs:22
# Copy function code and node_modules recursively
COPY --from=builder /build/dist ${LAMBDA_TASK_ROOT}/
COPY --from=builder /build/node_modules ${LAMBDA_TASK_ROOT}/node_modules
# Set the CMD to your handler
CMD [ "main.handler" ]
Steps to Reproduce
- Setup sentry sdk for aws lambda instrumentation as per docs.
- Fire a request
- The trace contains just the function invocation span, nothing else, no http instrumentation, postgres, etc
Expected Result
I'm using Nest.js with fastify. Everything is deployed to aws lambda in a container image.
When making a request I would expect it to trace all information regarding HTTP request, internal postgres calls, etc.
Actual Result
The resulting trace doesn't contain information about the HTTP request, internal postgres calls, etc, but it just simply shows the function.aws.lambda span.
The issue looks similar to https://github.com/getsentry/sentry-javascript/issues/13871
Here are some debug logs for better understanding on why this is happening.
2025-06-02T07:13:20.611000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.601Z undefined INFO Sentry Logger [log]: Initializing Sentry: process: 8, thread: main.
2025-06-02T07:13:20.613000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.613Z undefined INFO Sentry Logger [log]: Integration installed: InboundFilters
2025-06-02T07:13:20.613000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.613Z undefined INFO Sentry Logger [log]: Integration installed: FunctionToString
2025-06-02T07:13:20.613000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.613Z undefined INFO Sentry Logger [log]: Integration installed: LinkedErrors
2025-06-02T07:13:20.613000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.613Z undefined INFO Sentry Logger [log]: Integration installed: RequestData
2025-06-02T07:13:20.614000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.614Z undefined INFO Sentry Logger [log]: Integration installed: Console
2025-06-02T07:13:20.622000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.622Z undefined INFO Sentry Logger [log]: Integration installed: Http
2025-06-02T07:13:20.623000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.623Z undefined INFO Sentry Logger [log]: Integration installed: NodeFetch
2025-06-02T07:13:20.623000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.623Z undefined INFO Sentry Logger [log]: Integration installed: OnUncaughtException
2025-06-02T07:13:20.624000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.624Z undefined INFO Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-06-02T07:13:20.624000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.624Z undefined INFO Sentry Logger [log]: Integration installed: ContextLines
2025-06-02T07:13:20.624000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.624Z undefined INFO Sentry Logger [log]: Integration installed: LocalVariablesAsync
2025-06-02T07:13:20.624000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.624Z undefined INFO Sentry Logger [log]: Integration installed: Context
2025-06-02T07:13:20.624000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.624Z undefined INFO Sentry Logger [log]: Integration installed: ChildProcess
2025-06-02T07:13:20.625000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.625Z undefined INFO Sentry Logger [log]: Integration installed: ProcessSession
2025-06-02T07:13:20.625000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.625Z undefined INFO Sentry Logger [log]: Integration installed: Modules
2025-06-02T07:13:20.664000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.664Z undefined INFO Sentry Logger [log]: Integration installed: Aws
2025-06-02T07:13:20.665000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.665Z undefined INFO Sentry Logger [log]: Integration installed: AwsLambda
2025-06-02T07:13:20.665000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.665Z undefined INFO Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-06-02T07:13:20.665000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.665Z undefined INFO Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-06-02T07:13:20.666000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.666Z undefined INFO Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-06-02T07:13:20.673000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.673Z undefined INFO Sentry Logger [log]: Integration installed: Fastify
2025-06-02T07:13:20.674000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.674Z undefined INFO Sentry Logger [log]: Running in CommonJS mode.
2025-06-02T07:13:20.674000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.674Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-06-02T07:13:20.677000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.677Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-06-02T07:13:20.677000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.677Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-06-02T07:13:20.677000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.677Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-06-02T07:13:20.681000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.681Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:20.681000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:20.681Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.224000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.187Z undefined INFO Sentry Logger [log]: Initializing Sentry: process: 8, thread: main.
2025-06-02T07:13:21.226000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.226Z undefined INFO Sentry Logger [log]: Integration installed: InboundFilters
2025-06-02T07:13:21.226000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.226Z undefined INFO Sentry Logger [log]: Integration installed: FunctionToString
2025-06-02T07:13:21.226000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.226Z undefined INFO Sentry Logger [log]: Integration installed: LinkedErrors
2025-06-02T07:13:21.226000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.226Z undefined INFO Sentry Logger [log]: Integration installed: RequestData
2025-06-02T07:13:21.226000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.226Z undefined INFO Sentry Logger [log]: Integration installed: Console
2025-06-02T07:13:21.233000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.233Z undefined INFO Sentry Logger [log]: Integration installed: Http
2025-06-02T07:13:21.234000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.234Z undefined INFO Sentry Logger [log]: Integration installed: NodeFetch
2025-06-02T07:13:21.234000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.234Z undefined INFO Sentry Logger [log]: Integration installed: OnUncaughtException
2025-06-02T07:13:21.234000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.234Z undefined INFO Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-06-02T07:13:21.234000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.234Z undefined INFO Sentry Logger [log]: Integration installed: ContextLines
2025-06-02T07:13:21.235000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.235Z undefined INFO Sentry Logger [log]: Integration installed: LocalVariablesAsync
2025-06-02T07:13:21.235000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.235Z undefined INFO Sentry Logger [log]: Integration installed: Context
2025-06-02T07:13:21.235000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.235Z undefined INFO Sentry Logger [log]: Integration installed: ChildProcess
2025-06-02T07:13:21.236000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.236Z undefined INFO Sentry Logger [log]: Integration installed: ProcessSession
2025-06-02T07:13:21.236000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.236Z undefined INFO Sentry Logger [log]: Integration installed: Modules
2025-06-02T07:13:21.270000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.234Z undefined INFO Sentry Logger [log]: Initializing Sentry: process: 8, thread: main.
2025-06-02T07:13:21.272000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.272Z undefined INFO Sentry Logger [log]: Integration installed: InboundFilters
2025-06-02T07:13:21.272000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.272Z undefined INFO Sentry Logger [log]: Integration installed: FunctionToString
2025-06-02T07:13:21.272000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.272Z undefined INFO Sentry Logger [log]: Integration installed: LinkedErrors
2025-06-02T07:13:21.272000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.272Z undefined INFO Sentry Logger [log]: Integration installed: RequestData
2025-06-02T07:13:21.272000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.272Z undefined INFO Sentry Logger [log]: Integration installed: Console
2025-06-02T07:13:21.276000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.276Z undefined INFO Sentry Logger [log]: Integration installed: Http
2025-06-02T07:13:21.277000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.277Z undefined INFO Sentry Logger [log]: Integration installed: NodeFetch
2025-06-02T07:13:21.277000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.277Z undefined INFO Sentry Logger [log]: Integration installed: OnUncaughtException
2025-06-02T07:13:21.278000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.278Z undefined INFO Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-06-02T07:13:21.278000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.278Z undefined INFO Sentry Logger [log]: Integration installed: ContextLines
2025-06-02T07:13:21.278000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.278Z undefined INFO Sentry Logger [log]: Integration installed: LocalVariablesAsync
2025-06-02T07:13:21.282000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.278Z undefined INFO Sentry Logger [log]: Integration installed: Context
2025-06-02T07:13:21.282000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.282Z undefined INFO Sentry Logger [log]: Integration installed: ChildProcess
2025-06-02T07:13:21.283000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.283Z undefined INFO Sentry Logger [log]: Integration installed: ProcessSession
2025-06-02T07:13:21.283000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.283Z undefined INFO Sentry Logger [log]: Integration installed: Modules
2025-06-02T07:13:21.327000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.327Z undefined INFO Sentry Logger [log]: Integration installed: Aws
2025-06-02T07:13:21.328000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.328Z undefined INFO Sentry Logger [log]: Integration installed: AwsLambda
2025-06-02T07:13:21.328000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.328Z undefined INFO Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-06-02T07:13:21.328000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.328Z undefined INFO Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-06-02T07:13:21.329000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.329Z undefined INFO Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-06-02T07:13:21.339000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.339Z undefined INFO Sentry Logger [log]: Integration installed: Aws
2025-06-02T07:13:21.340000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.340Z undefined INFO Sentry Logger [log]: Integration installed: AwsLambda
2025-06-02T07:13:21.340000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.340Z undefined INFO Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-06-02T07:13:21.341000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.341Z undefined INFO Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-06-02T07:13:21.341000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.341Z undefined INFO Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-06-02T07:13:21.362000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.362Z undefined INFO Sentry Logger [log]: Integration installed: Fastify
2025-06-02T07:13:21.362000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.362Z undefined INFO Sentry Logger [log]: Running in CommonJS mode.
2025-06-02T07:13:21.363000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.363Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-06-02T07:13:21.365000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.365Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-06-02T07:13:21.365000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.365Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-06-02T07:13:21.366000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.365Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-06-02T07:13:21.369000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.369Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.369000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:21.369Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.371000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.370Z undefined INFO Sentry Logger [log]: Integration installed: Fastify
2025-06-02T07:13:21.371000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.371Z undefined INFO Sentry Logger [log]: Running in CommonJS mode.
2025-06-02T07:13:21.372000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.371Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-06-02T07:13:21.374000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.374Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-06-02T07:13:21.374000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.374Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-06-02T07:13:21.374000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.374Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-06-02T07:13:21.378000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.378Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.378000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.378Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.423000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:21.423Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:21.423000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:21.423Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.148000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:22.148Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.148000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:22.148Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.186000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:22.186Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.186000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:22.186Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:23.834000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:23.834Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/middleware-stack'
2025-06-02T07:13:23.835000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:23.835Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk propwrapping aws-sdk v3 constructStack
2025-06-02T07:13:23.868000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:23.867Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/smithy-client'
2025-06-02T07:13:24.311000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:24.311Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/middleware-stack'
2025-06-02T07:13:24.312000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:24.312Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk propwrapping aws-sdk v3 constructStack
2025-06-02T07:13:24.341000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:24.341Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/smithy-client'
2025-06-02T07:13:24.527000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:24.527Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/middleware-stack'
2025-06-02T07:13:24.528000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:24.528Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk propwrapping aws-sdk v3 constructStack
2025-06-02T07:13:24.561000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:24.561Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/instrumentation-aws-sdk Applying instrumentatio} baseDir: '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@smithy/smithy-client'
2025-06-02T07:13:24.796000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 START RequestId: 98be2805-99af-497d-a46e-1e3cd2f9ec22 Version: $LATEST
ID: e51283e6213a0d4bnius+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:24.834Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-02T07:13:24.892000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:24.892Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Profiling] started profiling transaction: growthz-dev-genius
2025-06-02T07:13:25.190000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a START RequestId: 7a302872-209d-4933-869d-ff020c1ed737 Version: $LATEST
2025-06-02T07:13:25.214000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 INFO [2025-06-02 07:13:25.201]: NestFactory - Starting Nest application... {"context":"NestFactory"}
ID: 57ff116074addfcdnius+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:25.268Z 7a302872-209d-4933-869d-ff020c1ed737 INFO Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-02T07:13:25.286000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:25.286Z 7a302872-209d-4933-869d-ff020c1ed737 INFO Sentry Logger [log]: [Profiling] started profiling transaction: growthz-dev-genius
2025-06-02T07:13:25.433000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.433Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http instrumentation incomingRequest
ID: 78d2c456acd0010f6000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.436Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-02T07:13:25.437000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.437Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Profiling] started profiling transaction: GET
2025-06-02T07:13:25.453000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.453Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for request: true
root description: GET010f0f:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.453Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.454000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.454Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - fastify -> @fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handler: true
root description: GET010f08@fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handlerLogger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.455000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.455Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/otel - onRequest" with ID 027414e35b2d29c6
2025-06-02T07:13:25.455000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.455Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - runMiddie: true
root description: GET010f08:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.455Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.458000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.458Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - helmetConfigureReply: true
root description: GET010f08gureReply06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.458Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.459000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.459Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie - onRequest" with ID 78dbb58eeb238eee
2025-06-02T07:13:25.459000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.459Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie -> @fastify/helmet - onRequest" with ID 206b0285df163eed
2025-06-02T07:13:25.459000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.459Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - helmetApplyHeaders: true
root description: GET010f08Headers5/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.459Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.462000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.462Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie -> @fastify/helmet - onRequest" with ID 06040dbe6d96aadb
2025-06-02T07:13:25.462000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.462Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - handleCors: true
root description: GET010f08:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.462Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.472000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.472Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - fastify -> @fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handler: true
root description: GET010f08@fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handlerLogger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.474000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.474Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - handler: true
root description: GET010f08:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.474Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.475000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.475Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "request-handler.fastify" span "@fastify/middie -> @fastify/helmet -> @fastify/static - route-handler" with ID 0953d8dcab999284
2025-06-02T07:13:25.475000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.475Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie - preHandler" with ID 9e47b69a87d4ef59
2025-06-02T07:13:25.475000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.475Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors - onRequest" with ID 1e54aca8665cf4bf
2025-06-02T07:13:25.476000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 INFO [2025-06-02 07:13:25.473]: HTTP - {"context":"HTTP","type":"Request","method":"GET","url":"/api/swagger-ui-bundle.js","headers":{"accept":"*/*","accept-encoding":"gzip, deflate, br, zstd","accept-language":"en-US,en;q=0.5","host":"genius-dev.api.growthz.ai","sec-fetch-dest":"script","sec-fetch-mode":"no-cors","sec-fetch-site":"same-origin","sec-gpc":"1","te":"trailers","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0","x-amzn-trace-id":"Root=1-683d4f0f-0e346906430bd809572f50f9","x-forwarded-for":"122.177.98.56","x-forwarded-port":"443","x-forwarded-proto":"https","cookie":{}},"query":{}}
2025-06-02T07:13:25.478000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.478Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for handler - fastify -> @fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handler: true
root description: GET010f08@fastify/otel -> @fastify/middie -> @fastify/helmet -> @fastify/static -> @fastify/static -> @fastify/cors -> sentry-fastify-error-handlerLogger [log]: [Tracing] Starting sampled span
2025-06-02T07:13:25.492000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.492Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "request-handler.fastify" span "request" with ID 060b400fc9bfbc08
2025-06-02T07:13:25.493000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.493Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "hook.fastify" span "@fastify/middie - onSend" with ID 1a0428196425e786
2025-06-02T07:13:25.494000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 INFO [2025-06-02 07:13:25.479]: HTTP - {"context":"HTTP","type":"Response","method":"GET","url":"/api/swagger-ui-bundle.js","statusCode":200,"duration":"6.04ms","headers":{"content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline' cdn.jsdelivr.net;img-src 'self' data: validator.swagger.io;script-src 'self' https: 'unsafe-inline' cdn.jsdelivr.net;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=31536000; includeSubDomains","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0","access-control-allow-origin":"*","accept-ranges":"bytes","cache-control":"public, max-age=0","last-modified":"Mon, 02 Jun 2025 07:11:17 GMT","etag":"W/\"166228-1972f7af608\"","content-type":"application/javascript; charset=utf-8","content-length":1466920}}
2025-06-02T07:13:25.512000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a INFO [2025-06-02 07:13:25.508]: NestFactory - Starting Nest application... {"context":"NestFactory"}
2025-06-02T07:13:25.850000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.850Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" root span "growthz-dev-genius" with ID e51283e6213a0d4b
2025-06-02T07:13:25.856000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.856Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Profiling] stopped profiling of transaction: growthz-dev-genius
2025-06-02T07:13:25.861000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.861Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: SpanExporter exported 1 spans, 9 spans are waiting for their parent spans to finish
2025-06-02T07:13:25.861000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.861Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: Flushing outcomes...
2025-06-02T07:13:25.862000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.862Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: No outcomes to send
2025-06-02T07:13:25.914000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.914Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Profiling] Could not retrieve profile for transaction: 8d8bfde4b2794959bfcdb50286983d62
2025-06-02T07:13:25.916000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.916Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
2025-06-02T07:13:25.917000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.917Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
2025-06-02T07:13:25.932000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.932Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
2025-06-02T07:13:25.932000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:25.932Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
2025-06-02T07:13:26.015000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:26.015Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 INFO Sentry Logger [log]: @sentry/instrumentation-http Handling finished outgoing request
2025-06-02T07:13:26.015000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:26.015Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on response()
2025-06-02T07:13:26.018000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:26.018Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on end()
2025-06-02T07:13:26.019000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:26.019Z 98be2805-99af-497d-a46e-1e3cd2f9ec22 DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on request close()
2025-06-02T07:13:26.057000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 END RequestId: 98be2805-99af-497d-a46e-1e3cd2f9ec22
Hi @TanishGrowthz, thanks for writing in.
You should at least be getting http spans, could you try moving import './instrument' this line to the top of the file and see if that changes anything?
Couple of questions:
- Are you compiling to CJS or ESM?
- Are you using our AWS Lambda Layer?
I just noticed that the docs on npm + cjs here instruct to call Sentry.init in the same file, but actually, to get proper instrumentation going we'd have to --import or --require a separate instrumentation file like described here for ESM.
Could you try to remove the import './instrument' line completely and instead import/require the compiled instrument file instead via setting NODE_OPTIONS for your lambda, e.g.:
For ESM
NODE_OPTIONS="--import ./instrument.mjs"
For CJS
NODE_OPTIONS="--require ./instrument.js"
Also, please keep in mind that libraries and frameworks you want to instrument (e.g. pg, fastify, ...) need to be marked external and not bundled in your final output, otherwise OpenTelemetry can't instrument these.
Hi @andreiborza
You should at least be getting http spans, could you try moving import './instrument' this line to the top of the file and see if that changes anything?
It doesn't change anything.
Are you compiling to CJS or ESM?
CJS, (Default nest build compilation mode)
Are you using our AWS Lambda Layer?
No.
Could you try to remove the import './instrument' line completely and instead import/require the compiled instrument file instead via setting NODE_OPTIONS.
Sure, I removed that line. Modified my Dockerfile like this,
FROM public.ecr.aws/lambda/nodejs:22 AS builder
WORKDIR /build
COPY . /build
RUN npm install -g pnpm@latest
RUN pnpm install --frozen-lockfile --verbose
RUN pnpm run build
FROM public.ecr.aws/lambda/nodejs:22
# Copy function code and node_modules recursively
COPY --from=builder /build/dist ${LAMBDA_TASK_ROOT}/
COPY --from=builder /build/src/instrument.js ${LAMBDA_TASK_ROOT}/
COPY --from=builder /build/node_modules ${LAMBDA_TASK_ROOT}/node_modules
ENV NODE_OPTIONS="--import ./instrument.js"
# Set the CMD to your handler
CMD [ "lambda.handler" ]
This doesn't work as well, I only get the function invocation traces, no HTTP traces.
Also, please keep in mind that libraries and frameworks you want to instrument (e.g. pg, fastify, ...) need to be marked external and not bundled in your final output, otherwise OpenTelemetry can't instrument these.
From what I know the concept of marking dependencies as "external" is relevant in case of bundlers like webpack, esbuild, etc. However I'm not bundling my code. Just transpiling to commonjs. See my Dockerfile above for reference.
Hm, right that seems correct then.
There are a couple of strange things going on in your logs:
- It looks like the aws-lambda instrumentation never ends up patching your handler. These should look something like this:
Sentry Logger [debug]: @opentelemetry/instrumentation-aws-lambda Applying instrumentation patch for nodejs module file on require hook {
--
module: '/var/task/index.js',
version: undefined,
fileName: 'index',
baseDir: '/var/task'
}
Can you find anything like this in your logs?
-
The root span seems to be sent, but 9 others spans have not been sent (I'm guessing these are the Fastify spans). Seems like the parent/child relationship of spans isn't properly working. Not sure why tho.
-
There's multiple wrappings of http:
2025-06-02T07:13:21.378000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.378Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.378000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:21.378Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-02T07:13:21.423000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:21.423Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:21.423000+00:00 2025/06/02/[$LATEST]6614192df44346cc86592532a3615b97 2025-06-02T07:13:21.423Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.148000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:22.148Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.148000+00:00 2025/06/02/[$LATEST]7ca0dd8cc1a04638a483926dac9b465a 2025-06-02T07:13:22.148Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.186000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:22.186Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-02T07:13:22.186000+00:00 2025/06/02/[$LATEST]1fc359bd3c4f47fea16f46d02f066de6 2025-06-02T07:13:22.186Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
Do you know if these are just logs from multiple hits to your function or is one invocation creating all these logs?
I'm afraid we'll need some minimal reproduction repo to dig deeper here.
Edit: Is there EMS in your instrument.js? I'm guessing since you take it straight from src/ it's in ESM. Could you also try to provide a CJS version to --require instead?
Also please paste logs from the new runs.
It looks like the aws-lambda instrumentation never ends up patching your handler. These should look something like this
Well, I'm not sure but I checked the logs for this whole day and I did find it (attached below), However I was tinkering around with @sentry/nestjs as well so this might be from that (NOTE that even @sentry/nestjs didn't produce any HTTP spans)
2025-06-02T09:28:57.309000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [warn]: Failed extracting version /var/task
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [debug]: @opentelemetry/instrumentation-aws-lambda Applying instrumentation patch for nodejs module file on require hook {
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b module: '/var/task/lambda.js',
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b version: undefined,
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b fileName: 'lambda',
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b baseDir: '/var/task'
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b }
2025-06-02T09:28:57.310000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [debug]: patch handler function
2025-06-02T09:28:57.431000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b START RequestId: 4df8fa5b-5dfe-4c86-b0a1-79a7be440bc5 Version: $LATEST
2025-06-02T09:28:57.445000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-02T09:28:57.445000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b op: < unknown op >
2025-06-02T09:28:57.445000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b name: growthz-dev-genius
2025-06-02T09:28:57.445000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b ID: f8ab475925d7d156
2025-06-02T09:28:57.446000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Profiling] started profiling transaction: growthz-dev-genius
2025-06-02T09:28:57.449000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for growthz-dev-genius: true
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b op: function.aws.lambda
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b name: growthz-dev-genius
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b ID: cb2f0dd01dd01e9c
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b parent ID: f8ab475925d7d156
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b root ID: f8ab475925d7d156
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b root op: function.aws.lambda
2025-06-02T09:28:57.450000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b root description: growthz-dev-genius
2025-06-02T09:28:57.635000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.626]: NestFactory - Starting Nest application... {"context":"NestFactory"}
2025-06-02T09:28:57.864000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http instrumentation incomingRequest
2025-06-02T09:28:57.876000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-02T09:28:57.876000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b op: < unknown op >
2025-06-02T09:28:57.876000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b name: GET
2025-06-02T09:28:57.876000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b ID: 904801f2827e84e7
2025-06-02T09:28:57.876000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Profiling] started profiling transaction: GET
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.635]: AdCopyGeneratorService - AdCopyGeneratorService initialized with Gemini API key {"context":"AdCopyGeneratorService"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.636]: InstanceLoader - AppModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.636]: InstanceLoader - TypeOrmModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.636]: InstanceLoader - ConfigHostModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.637]: InstanceLoader - DiscoveryModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.637]: InstanceLoader - LoggerModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.637]: InstanceLoader - ConfigModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.638]: InstanceLoader - ConfigModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.639]: ScraperAPIService - scraper renderer service initialized {"context":"ScraperAPIService"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.639]: InstanceLoader - AwsModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.639]: InstanceLoader - UtilsModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.639]: InstanceLoader - SqsModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.639]: InstanceLoader - ScraperModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b WARN [2025-06-02 09:28:57.640]: RainbowSqsService - Rainbow backend URL not configured {"context":"RainbowSqsService"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b WARN [2025-06-02 09:28:57.640]: OpusSqsService - Opus backend URL not configured {"context":"OpusSqsService"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.640]: InstanceLoader - SQSModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.640]: InstanceLoader - TypeOrmCoreModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.640]: InstanceLoader - TypeOrmModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.640]: InstanceLoader - PhrasesModule dependencies initialized {"context":"InstanceLoader"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b WARN [2025-06-02 09:28:57.805]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b WARN [2025-06-02 09:28:57.806]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.815]: RoutesResolver - PhrasesController {/api/adcopies} (version: 1): {"context":"RoutesResolver"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.819]: RouterExplorer - Mapped {/api/adcopies/app, POST} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.820]: RouterExplorer - Mapped {/api/adcopies/website, POST} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.821]: RouterExplorer - Mapped {/api/adcopies/approve/:id, PUT} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.822]: RouterExplorer - Mapped {/api/adcopies/reject/:id, PUT} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.822]: RouterExplorer - Mapped {/api/adcopies, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.823]: RouterExplorer - Mapped {/api/adcopies/debug-sentry, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.857]: NestApplication - Nest application successfully started {"context":"NestApplication"}
2025-06-02T09:28:57.896000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.885]: HTTP - {"context":"HTTP","type":"Request","method":"GET","url":"/api/swagger-ui-standalone-preset.js","headers":{"accept":"*/*","accept-encoding":"gzip, deflate, br, zstd","accept-language":"en-US,en;q=0.5","host":"genius-dev.api.growthz.ai","sec-fetch-dest":"script","sec-fetch-mode":"no-cors","sec-fetch-site":"same-origin","sec-gpc":"1","te":"trailers","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0","x-amzn-trace-id":"Root=1-683d6ed2-4f905fb446c4f33150533e0a","x-forwarded-for":"122.177.98.56","x-forwarded-port":"443","x-forwarded-proto":"https","cookie":{}},"query":{}}
2025-06-02T09:28:57.907000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b INFO [2025-06-02 09:28:57.905]: HTTP - {"context":"HTTP","type":"Response","method":"GET","url":"/api/swagger-ui-standalone-preset.js","statusCode":200,"duration":"19.98ms","headers":{"content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline' cdn.jsdelivr.net;img-src 'self' data: validator.swagger.io;script-src 'self' https: 'unsafe-inline' cdn.jsdelivr.net;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=31536000; includeSubDomains","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0","access-control-allow-origin":"*","accept-ranges":"bytes","cache-control":"public, max-age=0","last-modified":"Mon, 02 Jun 2025 09:26:35 GMT","etag":"W/\"37f67-1972ff6d4f8\"","content-type":"application/javascript; charset=utf-8","content-length":229223}}
2025-06-02T09:28:57.921000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" span "growthz-dev-genius" with ID cb2f0dd01dd01e9c
2025-06-02T09:28:57.922000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: SpanExporter exported 0 spans, 1 spans are waiting for their parent spans to finish
2025-06-02T09:28:57.922000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: Flushing outcomes...
2025-06-02T09:28:57.922000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: No outcomes to send
2025-06-02T09:28:57.924000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" root span "growthz-dev-genius" with ID f8ab475925d7d156
2025-06-02T09:28:57.934000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [log]: [Profiling] stopped profiling of transaction: growthz-dev-genius
2025-06-02T09:28:57.934000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [error]: Spans may not be exported for the lambda function because we are not force flushing before callback.
2025-06-02T09:28:57.935000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b Sentry Logger [error]: Metrics may not be exported for the lambda function because we are not force flushing before callback.
2025-06-02T09:28:57.940000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b END RequestId: 4df8fa5b-5dfe-4c86-b0a1-79a7be440bc5
2025-06-02T09:28:57.940000+00:00 2025/06/02/[$LATEST]b35ad22a6a0c4741868aa5fab4676e0b REPORT RequestId: 4df8fa5b-5dfe-4c86-b0a1-79a7be440bc5 Duration: 508.96 ms Billed Duration: 6804 ms Memory Size: 1024 MBMax Memory Used: 312 MB Init Duration: 6294.58 ms
Do you know if these are just logs from multiple hits to your function or is one invocation creating all these logs?
Not sure, I tried a fresh deployment, with just a single invocation to view the swagger api docs. This is what was logged: fresh.log
Is there ESM in your instrument.js? I'm guessing since you take it straight from src/ it's in ESM. Could you also try to provide a CJS version to --require instead?
No there isn't. it's plain common js
I'm afraid we'll need some minimal reproduction repo to dig deeper here.
Sure I'll try to create one and get back to you.
Thank you. I think regarding http spans, maybe this is expected on aws lambda - not entirely sure tbh.
One more idea that you could try:
Can you add an await Sentry.flush(5000) at the end of your handler and ensure that your AWS Lambda timeout is high enough for a 5s flush to go through? You should be able to set that up in the AWS settings for the function.
Please paste logs from that too.
Can you add an await Sentry.flush(5000) at the end of your handler and ensure that your AWS Lambda timeout is high enough for a 5s flush to go through? You should be able to set that up in the AWS settings for the function.
Doesn't flushTimeout here achieve the same thing? Also my function timeout is high enough
export const handler: Handler = Sentry.wrapHandler(
ServerlessAdapter.new(null)
.setFramework(framework)
.setLogger(createDefaultLogger())
.setHandler(new DefaultHandler())
.setResolver(new PromiseResolver())
.setRespondWithErrors(true)
.addAdapter(new AlbAdapter())
.build(),
{
startTrace: true,
captureAllSettledReasons: true,
captureTimeoutWarning: true,
flushTimeout: 10000
}
);
@andreiborza Here is the minimal repro. https://github.com/TanishGrowthz/sentry-lambda-repro
You can see the readme for manual deployment or modify my custom pulumi code in infra for your liking.
Thanks for the reproduction repo. I'm running into
INIT_REPORT Init Duration: 1.74 ms Phase: init Status: error Error Type: Runtime.InvalidEntrypoint
INIT_REPORT Init Duration: 0.45 ms Phase: invoke Status: error Error Type: Runtime.InvalidEntrypoint
START RequestId: b9be3a0c-93a5-4f1f-b7d2-4bebe04976cd Version: $LATEST
RequestId: b9be3a0c-93a5-4f1f-b7d2-4bebe04976cd Error: fork/exec /lambda-entrypoint.sh: exec format error
When trying to run the lambda. I'm not super familiar with the whole setup around Docker and ECR, I followed your steps in the README and also tried to specifically build with --platform linux/amd64 (I'm on a Mac) to no avail.
Do you happen to recognize this? :)
Hi,
Sorry, I asked cursor to write the README and didn't check it myself. I've updated it and verified it myself, and it seems to work, fine.
If you want you can use the pulumi IAC as well which I've updated to achieve the same thing(though you'll have to setup pulumi).
As for your error, I believe it's due to a wrong/missing execution role on the function. (I've added instructions for this as well).
Thanks, I was able to get it run with that but I'm not getting any traces at all 😬.
Couple of things I noticed in that repo:
- you're still importing the instrument file in the lambda -> no need for that anymore
- Sentry needs to follow this import syntax:
import * as Sentry from '@sentry/aws-serverless'
Could you try updating that and paste some logs to see if we're aligned?
Ok I've followed all the recommended steps, but unfortunately, no traces were captured for me as well 🤔. Below are the logs from the run:
Logs
2025-06-04T04:49:55.094000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Initializing Sentry: process: 8, thread: main.
2025-06-04T04:49:55.096000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: InboundFilters
2025-06-04T04:49:55.096000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: FunctionToString
2025-06-04T04:49:55.096000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: LinkedErrors
2025-06-04T04:49:55.096000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: RequestData
2025-06-04T04:49:55.097000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: Console
2025-06-04T04:49:55.099000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: Http
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: NodeFetch
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: OnUncaughtException
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: ContextLines
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: LocalVariablesAsync
2025-06-04T04:49:55.105000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: Context
2025-06-04T04:49:55.106000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: ChildProcess
2025-06-04T04:49:55.106000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: ProcessSession
2025-06-04T04:49:55.106000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: Modules
2025-06-04T04:49:55.262000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: Aws
2025-06-04T04:49:55.263000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: AwsLambda
2025-06-04T04:49:55.263000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-06-04T04:49:55.264000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-06-04T04:49:55.264000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-06-04T04:49:55.264000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Running in CommonJS mode.
2025-06-04T04:49:55.265000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-06-04T04:49:55.266000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-06-04T04:49:55.266000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-06-04T04:49:55.267000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-06-04T04:49:55.278000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-04T04:49:55.278000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-04T04:49:56.507000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-04T04:49:56.507000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [warn]: Failed extracting version /var/task
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry/instrumentation-aws-lambda Applying instrumentation patch for nodejs module file on require hook {
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b module: '/var/task/lambda.js',
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b version: undefined,
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b fileName: 'lambda',
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b baseDir: '/var/task'
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b }
2025-06-04T04:49:57.031000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: patch handler function
2025-06-04T04:49:57.077000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.073]: NestFactory - Starting Nest application... {"context":"NestFactory"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.077]: InstanceLoader - AppModule dependencies initialized {"context":"InstanceLoader"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.078]: InstanceLoader - LoggerModule dependencies initialized {"context":"InstanceLoader"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b WARN [2025-06-04 04:49:57.533]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b WARN [2025-06-04 04:49:57.534]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.535]: RoutesResolver - AppController {/api/app} (version: 1): {"context":"RoutesResolver"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.538]: RouterExplorer - Mapped {/api/app/hello, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.539]: RouterExplorer - Mapped {/api/app/error, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-04T04:49:57.546000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b INFO [2025-06-04 04:49:57.540]: NestApplication - Nest application successfully started {"context":"NestApplication"}
2025-06-04T04:49:57.547000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b START RequestId: b1b911cf-0649-48e6-8874-698ca1128691 Version: $LATEST
2025-06-04T04:49:57.554000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-04T04:49:57.554000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b op: < unknown op >
2025-06-04T04:49:57.554000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b name: growthz-dev-instrumentation
2025-06-04T04:49:57.554000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b ID: 2632e6c1f1a87607
2025-06-04T04:49:57.555000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Profiling] started profiling transaction: growthz-dev-instrumentation
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for growthz-dev-instrumentation: true
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Starting sampled span
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b op: function.aws.lambda
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b name: growthz-dev-instrumentation
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b ID: a7127bb56c4b9ec1
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b parent ID: 2632e6c1f1a87607
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b root ID: 2632e6c1f1a87607
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b root op: function.aws.lambda
2025-06-04T04:49:57.558000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b root description: growthz-dev-instrumentation
2025-06-04T04:49:57.567000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http instrumentation incomingRequest
2025-06-04T04:49:57.569000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-04T04:49:57.569000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b op: < unknown op >
2025-06-04T04:49:57.569000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b name: GET
2025-06-04T04:49:57.569000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b ID: e31473a1fafb78b1
2025-06-04T04:49:57.569000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Profiling] started profiling transaction: GET
2025-06-04T04:49:57.595000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" span "growthz-dev-instrumentation" with ID a7127bb56c4b9ec1
2025-06-04T04:49:57.595000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: SpanExporter exported 0 spans, 1 spans are waiting for their parent spans to finish
2025-06-04T04:49:57.596000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: Flushing outcomes...
2025-06-04T04:49:57.596000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: No outcomes to send
2025-06-04T04:49:57.605000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" root span "growthz-dev-instrumentation" with ID 2632e6c1f1a87607
2025-06-04T04:49:57.607000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [log]: [Profiling] stopped profiling of transaction: growthz-dev-instrumentation
2025-06-04T04:49:57.607000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [error]: Spans may not be exported for the lambda function because we are not force flushing before callback.
2025-06-04T04:49:57.607000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b Sentry Logger [error]: Metrics may not be exported for the lambda function because we are not force flushing before callback.
2025-06-04T04:49:57.609000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b END RequestId: b1b911cf-0649-48e6-8874-698ca1128691
2025-06-04T04:49:57.609000+00:00 2025/06/04/[$LATEST]87d7e240f2af47c5acc8f594499a5a4b REPORT RequestId: b1b911cf-0649-48e6-8874-698ca1128691 Duration: 62.17 ms Billed Duration: 4276 ms Memory Size: 1024 MBMax Memory Used: 194 MB Init Duration: 4213.32 ms
However, after some additional tinkering, I think that the previous instrumentation setup yields better results. Specifically:
Instead of setting the environment variable manually like this:
NODE_OPTIONS="--import ./instrument.js"
I updated the setup by converting instrument.js to instrument.ts and directly importing it at the top of lambda.ts. This change is reflected in the latest commit).
With this approach, Sentry is now at least able to export the initial function.aws.lambda span. Here are the logs from that run:
Logs
2025-06-04T05:00:36.660000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.623Z undefined INFO Sentry Logger [log]: Initializing Sentry: process: 8, thread: main.
2025-06-04T05:00:36.662000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.662Z undefined INFO Sentry Logger [log]: Integration installed: InboundFilters
2025-06-04T05:00:36.662000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.662Z undefined INFO Sentry Logger [log]: Integration installed: FunctionToString
2025-06-04T05:00:36.662000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.662Z undefined INFO Sentry Logger [log]: Integration installed: LinkedErrors
2025-06-04T05:00:36.662000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.662Z undefined INFO Sentry Logger [log]: Integration installed: RequestData
2025-06-04T05:00:36.663000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.663Z undefined INFO Sentry Logger [log]: Integration installed: Console
2025-06-04T05:00:36.667000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.667Z undefined INFO Sentry Logger [log]: Integration installed: Http
2025-06-04T05:00:36.668000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.668Z undefined INFO Sentry Logger [log]: Integration installed: NodeFetch
2025-06-04T05:00:36.668000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.668Z undefined INFO Sentry Logger [log]: Integration installed: OnUncaughtException
2025-06-04T05:00:36.669000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.669Z undefined INFO Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-06-04T05:00:36.669000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.669Z undefined INFO Sentry Logger [log]: Integration installed: ContextLines
2025-06-04T05:00:36.669000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.669Z undefined INFO Sentry Logger [log]: Integration installed: LocalVariablesAsync
2025-06-04T05:00:36.676000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.669Z undefined INFO Sentry Logger [log]: Integration installed: Context
2025-06-04T05:00:36.676000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.676Z undefined INFO Sentry Logger [log]: Integration installed: ChildProcess
2025-06-04T05:00:36.677000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.677Z undefined INFO Sentry Logger [log]: Integration installed: ProcessSession
2025-06-04T05:00:36.677000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.677Z undefined INFO Sentry Logger [log]: Integration installed: Modules
2025-06-04T05:00:36.887000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.887Z undefined INFO Sentry Logger [log]: Integration installed: Aws
2025-06-04T05:00:36.888000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.888Z undefined INFO Sentry Logger [log]: Integration installed: AwsLambda
2025-06-04T05:00:36.888000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.888Z undefined INFO Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-06-04T05:00:36.888000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.888Z undefined INFO Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-06-04T05:00:36.888000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.888Z undefined INFO Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-06-04T05:00:36.889000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.889Z undefined INFO Sentry Logger [log]: Running in CommonJS mode.
2025-06-04T05:00:36.889000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.889Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-06-04T05:00:36.892000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.891Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-06-04T05:00:36.892000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.892Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-06-04T05:00:36.892000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.892Z undefined DEBUG Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-06-04T05:00:36.906000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.906Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-04T05:00:36.906000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:36.906Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-06-04T05:00:38.161000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:38.148Z undefined DEBUG Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-04T05:00:38.161000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:38.159Z undefined DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-06-04T05:00:38.772000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:38.767]: NestFactory - Starting Nest application... {"context":"NestFactory"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:38.773]: InstanceLoader - AppModule dependencies initialized {"context":"InstanceLoader"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:38.773]: InstanceLoader - LoggerModule dependencies initialized {"context":"InstanceLoader"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 WARN [2025-06-04 05:00:39.365]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 WARN [2025-06-04 05:00:39.366]: LegacyRouteConverter - Unsupported route path: "/api/*". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide. Attempting to auto-convert... {"context":"LegacyRouteConverter"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:39.368]: RoutesResolver - AppController {/api/app} (version: 1): {"context":"RoutesResolver"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:39.372]: RouterExplorer - Mapped {/api/app/hello, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:39.373]: RouterExplorer - Mapped {/api/app/error, GET} (version: 1) route {"context":"RouterExplorer"}
2025-06-04T05:00:39.383000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 INFO [2025-06-04 05:00:39.376]: NestApplication - Nest application successfully started {"context":"NestApplication"}
2025-06-04T05:00:39.385000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 START RequestId: 280de319-a8f2-4004-bc5f-93e53e1a962a Version: $LATEST
ID: 1c7eda77e47859f3strumentation25/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.404Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-04T05:00:39.406000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.406Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Profiling] started profiling transaction: growthz-dev-instrumentation
2025-06-04T05:00:39.420000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.417Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http instrumentation incomingRequest
ID: 54abaa357288febd1000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.421Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Tracing] Starting sampled root span
2025-06-04T05:00:39.421000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.421Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Profiling] started profiling transaction: GET
2025-06-04T05:00:39.442000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.442Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Tracing] Finishing "function.aws.lambda" root span "growthz-dev-instrumentation" with ID 1c7eda77e47859f3
2025-06-04T05:00:39.453000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.453Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Profiling] stopped profiling of transaction: growthz-dev-instrumentation
2025-06-04T05:00:39.459000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.459Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: SpanExporter exported 1 spans, 0 spans are waiting for their parent spans to finish
2025-06-04T05:00:39.460000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.460Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: Flushing outcomes...
2025-06-04T05:00:39.460000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.460Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: No outcomes to send
2025-06-04T05:00:39.496000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.494Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Profiling] Could not retrieve profile for transaction: 8c0a017402b7404db11db37a53d8a98f
2025-06-04T05:00:39.498000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.498Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
2025-06-04T05:00:39.498000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.498Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
2025-06-04T05:00:39.553000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.553Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
2025-06-04T05:00:39.553000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.553Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
2025-06-04T05:00:39.633000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.633Z 280de319-a8f2-4004-bc5f-93e53e1a962a INFO Sentry Logger [log]: @sentry/instrumentation-http Handling finished outgoing request
2025-06-04T05:00:39.633000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.633Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on response()
2025-06-04T05:00:39.636000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.636Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on end()
2025-06-04T05:00:39.637000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 2025-06-04T05:00:39.637Z 280de319-a8f2-4004-bc5f-93e53e1a962a DEBUG Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http outgoingRequest on request close()
2025-06-04T05:00:39.640000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 END RequestId: 280de319-a8f2-4004-bc5f-93e53e1a962a
2025-06-04T05:00:39.640000+00:00 2025/06/04/[$LATEST]60db6633217f42bba26def95ea74ff79 REPORT RequestId: 280de319-a8f2-4004-bc5f-93e53e1a962a Duration: 254.39 ms Billed Duration: 5912 ms Memory Size: 1024 MBMax Memory Used: 205 MB Init Duration: 5656.85 ms
Sorry, since you're using CJS, importing it at the top is completely fine. My bad here, I got confused.
Thanks for the updates, I'll try digging some more to see what other spans are outstanding.
Hey @TanishGrowthz! We looked into this a bit more and found that there's a compatibility issue with the HTTP integration, likely stemming from how ServerlessAdapter sets up the Lambda handler. While we continue investigating, we recommend disabling HTTP spans. All other spans (Fastify, etc.) should show up correctly then. Here's how to do that in your instrument.ts file:
- integrations: [nodeProfilingIntegration(), Sentry.fastifyIntegration()],
+ integrations: (integrations) =>
+ integrations
+ .filter((integration) => integration.name !== 'Http')
+ .concat([
+ nodeProfilingIntegration(),
+ Sentry.httpIntegration({ spans: false }),
+ Sentry.fastifyIntegration(),
+ ]),
I hope this helps! Thanks again and sorry for the delay!
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Don't close.
I just reacted to previous message, didn't realise it expected me to comment.
For now we only have the workaround mentioned in https://github.com/getsentry/sentry-javascript/issues/16440#issuecomment-3158300109, does that not work for you @Tanish-Saarathi?