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