Not working with apollo-server-lambda (Apollo GraphQL)
See original GitHub issueThe agent seems to think this is a regular HTTP server. All of the requests are being grouped under POST /staging/{proxy+}
.
From reading the documentation, I think our setup is supported, but clearly something isn’t working. Thanks for the help!
Lambda extensions:
arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-extension-ver-1-0-2-x86_64:1
arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-3-36-0:1
Apollo packages:
"node_modules/apollo-server-lambda": {
"version": "3.8.2",
"resolved": "https://registry.npmjs.org/apollo-server-lambda/-/apollo-server-lambda-3.8.2.tgz",
"integrity": "sha512-8KWp/YYM9yctWwAv0oMERKHM91MQmpJCOnS1TykWC4p1JwrSgt1vln9TJK5FRCD4rFGgSlPvhc3TItXjdDVVAw==",
"dependencies": {
"@types/aws-lambda": "^8.10.76",
"@vendia/serverless-express": "^4.3.9",
"apollo-server-core": "^3.8.2",
"apollo-server-express": "^3.8.2",
"express": "^4.17.1"
},
"engines": {
"node": ">=12.0"
},
"peerDependencies": {
"graphql": "^15.3.0 || ^16.0.0"
}
}
Issue Analytics
- State:
- Created a year ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Deploying with AWS Lambda - Apollo GraphQL Docs
This guide explains how to setup Apollo Server 2 to run on AWS Lambda using Serverless Framework. To use CDK and SST instead,...
Read more >apollo-server-lambda - npm
Start using apollo-server-lambda in your project by running `npm i apollo-server-lambda`. There are 162 other projects in the npm registry ...
Read more >Using Apollo Server on AWS Lambda with Amazon ...
Flow chart showing how the Chat application communicates through the API Gateway via Websocket, over. Note: GraphQL is agnostic about the ...
Read more >Top 5 apollo-server-lambda Code Examples - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here. github hasura /...
Read more >Deploying with AWS Lambda - Apollo Server - Netlify
Setting up a project to work with Lambda isn't that different from a typical ... graphql.js const { ApolloServer, gql } = require('apollo-server-lambda'); ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If there is an issue here, it will be with the Node.js APM agent, and not with the Lambda ext. I’ll move it over to the Node.js APM agent repo.
FYI:
elastic-apm-node@3.38.0
is now published with the fix for this (https://github.com/elastic/apm-agent-nodejs/pull/2872).