You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(server-utils, nestjs): move NestJS orchestrion configs out of server-utils
Introduce a dependency-injection approach to setting orchestrion
configuration from a standalone SDK that is not a part of the "normal"
tracing integrations reasonable to put in server-utils.
This also allows for better DRY sharing of reusable components between
the OTel and Orchestrion implementations of the NestJS integration.
The major change is that certain items like the list of Orchestrion
instrumentations, need to be fetched on demand with a method, rather
than being a static `as const` array.
Dependency cycle is still avoided, but all NestJS code is now in
packages/nest where it belongs.
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
5
+
*
6
+
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
* Mark a target class as patched (for the given pass) so it's instrumented only
32
+
* once, and to stay idempotent across repeated subscriptions/decoration.
14
33
*
15
-
* We already guard duplicate patching with isWrapped. However, isWrapped checks whether a file has been patched, whereas we use this check for concrete target classes.
16
-
* This check might not be necessary, but better to play it safe.
34
+
* The `@Injectable` and `@Catch` passes use *separate* flags on purpose: they
35
+
* wrap disjoint method sets (use/canActivate/transform/intercept vs catch), and
36
+
* a class can be decorated with both (an exception filter that also uses DI).
37
+
* A single shared flag would let whichever pass fired first latch it and block
38
+
* the other, dropping that pass's spans regardless of ordering.
0 commit comments