Replies: 1 comment 2 replies
-
@Xhale1 I agree with you. @mydea I remember we discussed this pretty heavily back when we released v8. Is there a reason we wrote the docs like this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello hello! I'm hoping to get a bit of clarification on a specific part of Sentry's docs for getting started with nodejs. In this section Sentry states that when using ESM you should import your
instrument
file before anything else:I assume this is specifically for projects written in ESM, not necessarily run with ESM. The docs go on to specify that you should use a node
--import
flag when running with ESM to ensure Sentry is setup before any other modules are imported.Does that mean the
import "./instrument";
code is no longer necessary / could potentially lead to two instances of Sentry's SDK being initialized?Beta Was this translation helpful? Give feedback.
All reactions