Skip to content

GraphQL Integration in AWS Lambda doesn't instrument resolvers #16092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
nickygb opened this issue Apr 17, 2025 · 3 comments
Open
3 tasks done

GraphQL Integration in AWS Lambda doesn't instrument resolvers #16092

nickygb opened this issue Apr 17, 2025 · 3 comments

Comments

@nickygb
Copy link

nickygb commented Apr 17, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/aws-serverless

SDK Version

9.13.0

Framework Version

AWS Lambda with Apollo Server GraphQL

Link to Sentry event

https://bilderit.sentry.io/traces/trace/b5502b4f9cda4cdfb8e0286b5873f33f/?environment=pr1698&mode=samples&node=span-c9ad754030442f47&node=txn-5a2233ef49234b2cb542307b65cabffa&pageEnd&pageStart&project=5261508&source=traces&statsPeriod=1h&table=trace&timestamp=1744911566.867

Reproduction Example/SDK Setup

Sentry.init({
  dsn: 'MY_DSN',
  release: 'MY_RELEASE',
  environment: 'MY_ENVIRONMENT',
  tracesSampleRate: 0.1,
  profilesSampleRate: 0.1,
  debug: true,
  integrations: [
    Sentry.rewriteFramesIntegration({ root: process.cwd() }),
    Sentry.graphqlIntegration({
      ignoreResolveSpans: false,
      useOperationNameForRootSpan: true,
      ignoreTrivialResolveSpans: false,
    }),
    Sentry.knexIntegration(),
    Sentry.postgresIntegration(),
    nodeProfilingIntegration(),
  ],
});

Steps to Reproduce

  1. Set up an AWS Lambda function with Apollo Server GraphQL
  2. Configure Sentry with GraphQL integration as shown above
  3. Make GraphQL requests to the Lambda function
  4. Check Sentry for traces

Expected Result

  1. GraphQL nested resolvers should be instrumented and appear as spans in the trace

Actual Result

  1. Only graphql.parse spans are created, no resolver spans appear

Additional Information

I've noticed that while the GraphQL integration is installed and appears to be patching the GraphQL module, it's not properly instrumenting resolver functions in the AWS Lambda environment. This seems to be related to issue #15699, but specifically focuses on the resolver instrumentation not working at all.

The logs show that the GraphQL parser is being instrumented, but no spans are created for resolvers despite setting ignoreResolveSpans: false.

Copy link
Member

mydea commented Apr 22, 2025

This is pretty weird. Nothing about this should be AWS specific 🤔

Looking at the linked event, this seems off anyhow because it also does not include the GraphQL query name, which was added in the recent version. I see other traces in your account that do have this, though. Are the versions aligned/correct there? Can you make sure that everything is up-to-date there?

Could you share the debug logs of such a request, too? Would be interesting to see what spans are being created etc there.

@nickygb
Copy link
Author

nickygb commented Apr 22, 2025

Hi, thanks for your reply.

The traces you mentioned in our events do not come from Sentry's native integration but were manually instrumented using a custom Apollo plugin we developed internally. We did this because the native Sentry integration is not working as expected.

I also mentioned this issue in a comment on another related issue (#15699): my comment here. In that comment, I explained that I attempted to use Sentry's native integration, but it didn't work correctly.

Here are some debug logs for Sentry version 9.13.0, which includes the fix for GraphQL instrumentation. However, it is still not working for me. I have enabled the native Sentry integration for GraphQL in these logs:

2025-04-22T18:12:27.705Z 2025-04-22T18:12:27.705Z	undefined	INFO	Sentry Logger [log]: Initializing Sentry: process: 9, thread: main.
2025-04-22T18:12:27.707Z 2025-04-22T18:12:27.707Z	undefined	INFO	Sentry Logger [log]: Integration installed: InboundFilters
2025-04-22T18:12:27.707Z 2025-04-22T18:12:27.707Z	undefined	INFO	Sentry Logger [log]: Integration installed: FunctionToString
2025-04-22T18:12:27.707Z 2025-04-22T18:12:27.707Z	undefined	INFO	Sentry Logger [log]: Integration installed: LinkedErrors
2025-04-22T18:12:27.708Z 2025-04-22T18:12:27.708Z	undefined	INFO	Sentry Logger [log]: Integration installed: RequestData
2025-04-22T18:12:27.708Z 2025-04-22T18:12:27.708Z	undefined	INFO	Sentry Logger [log]: Integration installed: Console
2025-04-22T18:12:27.711Z 2025-04-22T18:12:27.711Z	undefined	INFO	Sentry Logger [log]: Integration installed: Http
2025-04-22T18:12:27.712Z 2025-04-22T18:12:27.712Z	undefined	INFO	Sentry Logger [log]: Integration installed: NodeFetch
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: OnUncaughtException
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: OnUnhandledRejection
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: ContextLines
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: LocalVariables
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: Context
2025-04-22T18:12:27.713Z 2025-04-22T18:12:27.713Z	undefined	INFO	Sentry Logger [log]: Integration installed: ChildProcess
2025-04-22T18:12:27.714Z 2025-04-22T18:12:27.714Z	undefined	INFO	Sentry Logger [log]: Integration installed: ProcessSession
2025-04-22T18:12:27.714Z 2025-04-22T18:12:27.714Z	undefined	INFO	Sentry Logger [log]: Integration installed: Modules
2025-04-22T18:12:27.717Z 2025-04-22T18:12:27.717Z	undefined	INFO	Sentry Logger [log]: Integration installed: Aws
2025-04-22T18:12:27.718Z 2025-04-22T18:12:27.718Z	undefined	INFO	Sentry Logger [log]: Integration installed: AwsLambda
2025-04-22T18:12:27.719Z 2025-04-22T18:12:27.719Z	undefined	INFO	Sentry Logger [log]: Integration installed: RewriteFrames
2025-04-22T18:12:27.719Z 2025-04-22T18:12:27.719Z	undefined	INFO	Sentry Logger [log]: Integration installed: Graphql
2025-04-22T18:12:27.721Z 2025-04-22T18:12:27.721Z	undefined	INFO	Sentry Logger [log]: Integration installed: Knex
2025-04-22T18:12:27.724Z 2025-04-22T18:12:27.724Z	undefined	INFO	Sentry Logger [log]: Integration installed: Postgres
2025-04-22T18:12:27.724Z 2025-04-22T18:12:27.724Z	undefined	INFO	Sentry Logger [log]: [Profiling] Profiling integration setup.
2025-04-22T18:12:27.724Z 2025-04-22T18:12:27.724Z	undefined	INFO	Sentry Logger [log]: [Profiling] Profiling mode is span.
2025-04-22T18:12:27.724Z 2025-04-22T18:12:27.724Z	undefined	INFO	Sentry Logger [log]: Integration installed: ProfilingIntegration
2025-04-22T18:12:27.724Z 2025-04-22T18:12:27.724Z	undefined	INFO	Sentry Logger [log]: Running in CommonJS mode.
2025-04-22T18:12:27.726Z 2025-04-22T18:12:27.726Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.9.0.
2025-04-22T18:12:27.727Z 2025-04-22T18:12:27.727Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.9.0.
2025-04-22T18:12:27.727Z 2025-04-22T18:12:27.727Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.9.0.
2025-04-22T18:12:27.728Z 2025-04-22T18:12:27.728Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.9.0.
2025-04-22T18:12:27.810Z 2025-04-22T18:12:27.810Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/instrumentation-graphql Applying instrumentation patch for nodejs module file on require hook {
  module: 'graphql',
  version: '15.10.1',
  fileName: 'graphql/language/parser.js',
  baseDir: '/var/task/node_modules/graphql'
}
2025-04-22T18:12:27.812Z 2025-04-22T18:12:27.812Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:27.812Z 2025-04-22T18:12:27.812Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:27.812Z 2025-04-22T18:12:27.812Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:27.812Z 2025-04-22T18:12:27.812Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.109Z 2025-04-22T18:12:28.109Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.109Z 2025-04-22T18:12:28.109Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.109Z 2025-04-22T18:12:28.109Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.109Z 2025-04-22T18:12:28.109Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.136Z 2025-04-22T18:12:28.136Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-04-22T18:12:28.136Z 2025-04-22T18:12:28.136Z	undefined	DEBUG	Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'http' }
2025-04-22T18:12:28.137Z 2025-04-22T18:12:28.137Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-04-22T18:12:28.137Z 2025-04-22T18:12:28.137Z	undefined	DEBUG	Sentry Logger [debug]: @sentry/instrumentation-http Applying instrumentation patch for nodejs core module on require hook { module: 'https' }
2025-04-22T18:12:28.154Z 2025-04-22T18:12:28.154Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.154Z 2025-04-22T18:12:28.154Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.155Z 2025-04-22T18:12:28.155Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.155Z 2025-04-22T18:12:28.155Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.191Z 2025-04-22T18:12:28.191Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.192Z 2025-04-22T18:12:28.192Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.192Z 2025-04-22T18:12:28.192Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.192Z 2025-04-22T18:12:28.192Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.198Z 2025-04-22T18:12:28.198Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.198Z 2025-04-22T18:12:28.198Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.198Z 2025-04-22T18:12:28.198Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.198Z 2025-04-22T18:12:28.198Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.246Z 2025-04-22T18:12:28.246Z	undefined	INFO	Sentry Logger [log]: [Tracing] Starting sampled root span
  op: < unknown op >
  name: graphql.parse
  ID: c348d0052d0c1556
2025-04-22T18:12:28.246Z 2025-04-22T18:12:28.246Z	undefined	INFO	Sentry Logger [log]: [Profiling] Discarding profile because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.247Z 2025-04-22T18:12:28.247Z	undefined	INFO	Sentry Logger [log]: [Tracing] Finishing "< unknown op >" root span "graphql.parseSchema" with ID c348d0052d0c1556
2025-04-22T18:12:28.253Z 2025-04-22T18:12:28.253Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.253Z 2025-04-22T18:12:28.253Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.253Z 2025-04-22T18:12:28.253Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.253Z 2025-04-22T18:12:28.253Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.267Z 2025-04-22T18:12:28.267Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.267Z 2025-04-22T18:12:28.267Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.267Z 2025-04-22T18:12:28.267Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.267Z 2025-04-22T18:12:28.267Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.270Z 2025-04-22T18:12:28.270Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.270Z 2025-04-22T18:12:28.270Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.270Z 2025-04-22T18:12:28.270Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.270Z 2025-04-22T18:12:28.270Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.272Z 2025-04-22T18:12:28.272Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.272Z 2025-04-22T18:12:28.272Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.272Z 2025-04-22T18:12:28.272Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.272Z 2025-04-22T18:12:28.272Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.274Z 2025-04-22T18:12:28.274Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.274Z 2025-04-22T18:12:28.274Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.275Z 2025-04-22T18:12:28.275Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.275Z 2025-04-22T18:12:28.275Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.307Z 2025-04-22T18:12:28.307Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.307Z 2025-04-22T18:12:28.307Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.307Z 2025-04-22T18:12:28.307Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.307Z 2025-04-22T18:12:28.307Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.308Z 2025-04-22T18:12:28.308Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.309Z 2025-04-22T18:12:28.309Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.309Z 2025-04-22T18:12:28.309Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.309Z 2025-04-22T18:12:28.309Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.408Z 2025-04-22T18:12:28.408Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/instrumentation-knex Applying instrumentation patch for nodejs module file on require hook {
  module: 'knex',
  version: '3.1.0',
  fileName: 'knex/lib/execution/runner.js',
  baseDir: '/var/task/node_modules/knex'
}
2025-04-22T18:12:28.553Z 2025-04-22T18:12:28.553Z	undefined	DEBUG	Sentry Logger [debug]: @opentelemetry/instrumentation-knex Applying instrumentation patch for nodejs module file on require hook {
  module: 'knex',
  version: '3.1.0',
  fileName: 'knex/lib/client.js',
  baseDir: '/var/task/node_modules/knex'
}
2025-04-22T18:12:28.921Z 2025-04-22T18:12:28.921Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.921Z 2025-04-22T18:12:28.921Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.921Z 2025-04-22T18:12:28.921Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.921Z 2025-04-22T18:12:28.921Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:28.922Z 2025-04-22T18:12:28.922Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:28.923Z 2025-04-22T18:12:28.923Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:28.923Z 2025-04-22T18:12:28.923Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:28.923Z 2025-04-22T18:12:28.923Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:29.014Z 2025-04-22T18:12:29.014Z	undefined	INFO	Sentry Logger [log]: [Tracing] Starting sampled root span
  op: < unknown op >
  name: graphql.parse
  ID: b1eb6df25f97a666
2025-04-22T18:12:29.014Z 2025-04-22T18:12:29.014Z	undefined	INFO	Sentry Logger [log]: [Profiling] Discarding profile because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:29.015Z 2025-04-22T18:12:29.015Z	undefined	INFO	Sentry Logger [log]: [Tracing] Finishing "< unknown op >" root span "graphql.parseSchema" with ID b1eb6df25f97a666
2025-04-22T18:12:29.039Z 2025-04-22T18:12:29.039Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:29.039Z 2025-04-22T18:12:29.039Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:29.039Z 2025-04-22T18:12:29.039Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:29.039Z 2025-04-22T18:12:29.039Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:29.040Z 2025-04-22T18:12:29.040Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:29.040Z 2025-04-22T18:12:29.040Z	undefined	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:29.040Z 2025-04-22T18:12:29.040Z	undefined	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:29.040Z 2025-04-22T18:12:29.040Z	undefined	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:29.181Z START RequestId: 980d53ea-4f17-4521-8ffb-a5913a586f7d Version: $LATEST
2025-04-22T18:12:29.183Z 2025-04-22T18:12:29.183Z	undefined	INFO	Sentry Logger [log]: SpanExporter exported 2 spans, 0 spans are waiting for their parent spans to finish
2025-04-22T18:12:29.413Z 2025-04-22T18:12:29.413Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Discarding transaction because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:29.413Z 2025-04-22T18:12:29.413Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Discarding root span because its trace was not chosen to be sampled.
2025-04-22T18:12:29.413Z 2025-04-22T18:12:29.413Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: Recording outcome: "sample_rate:transaction"
2025-04-22T18:12:29.413Z 2025-04-22T18:12:29.413Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: Recording is off, propagating context in a non-recording span
2025-04-22T18:12:29.510Z 2025-04-22T18:12:29.510Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Inheriting remote parent's sampled decision for POST /graphql: true
2025-04-22T18:12:29.511Z 2025-04-22T18:12:29.511Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Starting sampled root span
  op: http.server
  name: POST /graphql
  ID: 768dc96831c8752a
  parent ID: 82e1ea674dcc8968
2025-04-22T18:12:29.511Z 2025-04-22T18:12:29.511Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Profiling] Discarding profile because it's not included in the random sample (sampling rate = 0.1)
2025-04-22T18:12:29.518Z DEBUG (shared): After Handler Execution - Memory Usage: {"rss":577298432,"heapTotal":274567168,"heapUsed":197243176,"external":4975780,"arrayBuffers":3274702}
2025-04-22T18:12:29.525Z 2025-04-22T18:12:29.525Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	WARN	Sentry Logger [warn]: Invalid attribute value set for key: db.system
2025-04-22T18:12:29.525Z 2025-04-22T18:12:29.525Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for first <MY_TABLE>: true
2025-04-22T18:12:29.526Z 2025-04-22T18:12:29.526Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Starting sampled span
  op: < unknown op >
  name: first <MY_TABLE>
  ID: df81bd33277b478f
  parent ID: 768dc96831c8752a
  root ID: 768dc96831c8752a
  root op: http.server
  root description: POST /graphql
2025-04-22T18:12:29.537Z 2025-04-22T18:12:29.537Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for outgoing requests
2025-04-22T18:12:29.539Z 2025-04-22T18:12:29.539Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Inheriting parent's sampled decision for POST: true
2025-04-22T18:12:29.539Z 2025-04-22T18:12:29.539Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Starting sampled span
  op: < unknown op >
  name: POST
  ID: cca0a916b0c981ff
  parent ID: df81bd33277b478f
  root ID: 768dc96831c8752a
  root op: http.server
  root description: POST /graphql
2025-04-22T18:12:29.549Z 2025-04-22T18:12:29.549Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
2025-04-22T18:12:29.549Z 2025-04-22T18:12:29.549Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
2025-04-22T18:12:29.585Z 2025-04-22T18:12:29.585Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for outgoing requests
2025-04-22T18:12:29.585Z 2025-04-22T18:12:29.585Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
2025-04-22T18:12:29.586Z 2025-04-22T18:12:29.586Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
2025-04-22T18:12:29.587Z 2025-04-22T18:12:29.587Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
2025-04-22T18:12:29.587Z 2025-04-22T18:12:29.587Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request
2025-04-22T18:12:29.588Z 2025-04-22T18:12:29.588Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @sentry/instrumentation-http http instrumentation for outgoing requests
2025-04-22T18:12:29.589Z 2025-04-22T18:12:29.589Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: Instrumentation suppressed, returning Noop Span
2025-04-22T18:12:29.589Z 2025-04-22T18:12:29.589Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	INFO	Sentry Logger [log]: [Tracing] Not injecting trace data for url because tracing is suppressed.
2025-04-22T18:12:29.590Z 2025-04-22T18:12:29.590Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http https instrumentation outgoingRequest
2025-04-22T18:12:29.590Z 2025-04-22T18:12:29.590Z	980d53ea-4f17-4521-8ffb-a5913a586f7d	DEBUG	Sentry Logger [debug]: @opentelemetry_sentry-patched/instrumentation-http http.ClientRequest return request


Looking forward to any suggestions or additional steps I can take to resolve this issue.

@mydea
Copy link
Member

mydea commented Apr 23, 2025

So, is the graphql.resolve span that I see in these logs emitted from the graphql integration, or from you manually? That's really the only graphql-related span I can spot in these logs 🤔

@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

2 participants