dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.73k stars 167 forks source link

Configure with Opentelemetry #218

Open knvpk opened 2 years ago

knvpk commented 2 years ago

Hi,, In our express app, we are using two entry points server.js and handler.js.... server.js is for normal app.listen(port) for local development and handler.js is using this package which helps deploy in lambda,,,, Now we have configured server.js with opentelemetry almost like this file. https://github.com/mnadeem/nodejs-opentelemetry-tempo/blob/main/src/tracing.js.

In local, it was auto detecting the express app and opentelemetry is working fine.. but using serverless-http in handler.js not working. can anybody have idea on this.