question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with apollo-server-lambda (Apollo GraphQL)

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
trentmcommented, Jul 18, 2022

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.

0reactions
trentmcommented, Aug 11, 2022

FYI: elastic-apm-node@3.38.0 is now published with the fix for this (https://github.com/elastic/apm-agent-nodejs/pull/2872).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found