node: Support no-code init
via --import
or --require
and env variables
#11997
Labels
init
via --import
or --require
and env variables
#11997
Problem Statement
@sentry/node
already supports much of the basic configuration via environment variables. These are great because you can change often change settings without re-deploying your code. However, users are still required to create a JavaScript file to callSentry.init()
.Solution Brainstorm
If we add an
init
export (@sentry/node/init
) that callsSentry.init()
users can then initialise Sentry and get all the auto-instrumentation magic without writing any code:The text was updated successfully, but these errors were encountered: