node-custom-lambda icon indicating copy to clipboard operation
node-custom-lambda copied to clipboard

Configurable custom runtime

Open Vadorequest opened this issue 6 years ago • 1 comments

I wonder what would be the recommended approach to make a custom runtime configurable.

I'm thinking about logging low level exceptions, like the ones only the layer can catch, and I'm wondering about how to configure that low-level logging.

More specifically, I'm interested by adding either Sentry or https://epsagon.com/, and both rely on some configuration, like app name, tokens, etc.

So, I wonder what would be the best way of loading this config, I'm thinking ENV variables are probably the way to go, but I'm not sure and I wonder how you'd implement it, if you wanted to do something similar?

Vadorequest avatar Apr 13 '19 18:04 Vadorequest

Maybe we could change bootstrap.c to start node with BOOTSTRAP_JS_FILE_PATH || /opt/bootstrap.js, and let user implement bootstrap.js

hugosenari avatar Oct 11 '19 16:10 hugosenari