-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphqlIntegration does not rename the root span with the operation name in AWS Lambda #15699
Comments
Hi @nickygb, thanks for filing this. I'll look into this, but it might take some time to get to it. |
Following up on this, I am not sure if this is working at all 🤔 the So your problem has nothing to do with the Could you enable |
|
Can you also share the logs for startup, including the |
And is whatever is interacting with graphql bundled into your lambda function? We can't instrument bundled in dependencies. |
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.5.0
Framework Version
No response
Link to Sentry event
https://bilderit.sentry.io/traces/trace/dc6845bb99a44bb69609a74dc394258f/?environment=pr1687&node=span-91982ffd2de5504c&node=txn-304389edaa5e4227be7f3f1424d1ac0d&pageEnd&pageStart&project=5263245&source=traces&statsPeriod=1h&table=trace×tamp=1742149537.396
Reproduction Example/SDK Setup
Steps to Reproduce
I'm using
Sentry.graphqlIntegration({ useOperationNameForRootSpan: true })
in an AWS Lambda with Apollo Server. According to the documentation, this should rename the root http.server span with the GraphQL operation name.Lambda handler:
The issue is that in AWS Lambda, the root span is not
http.server
butfunction.aws.lambda
, so graphqlIntegration never renames it.Expected Result
The root span should be http.server and renamed to include the GraphQL operation name (e.g., POST /graphql (query operationName)).
The trace should correctly reflect the operation name in the root span, instead of the default lambda function name.
Actual Result
There is no op: http.server span, only function.aws.lambda.
graphqlIntegration does not rename the root span name with the graphql operation name. The name of the root operation is the name of the Lambda Function.
The text was updated successfully, but these errors were encountered: