Configurable custom runtime
Vadorequest opened this issue · 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?
Maybe we could change bootstrap.c to start node with BOOTSTRAP_JS_FILE_PATH || /opt/bootstrap.js, and let user implement bootstrap.js