File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ function markAsInstrumented<T>(handler: T): void {
108
108
}
109
109
}
110
110
111
- function isInstrumented < T > ( handler : T ) : boolean {
111
+ function isInstrumented < T > ( handler : T ) : boolean | undefined {
112
112
try {
113
- return ! ! ( handler as SentryInstrumented < T > ) . __SENTRY_INSTRUMENTED__ ;
113
+ return ( handler as SentryInstrumented < T > ) . __SENTRY_INSTRUMENTED__ ;
114
114
} catch {
115
115
return false ;
116
116
}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export class MetricsAggregator implements MetricsAggregatorBase {
20
20
// that we store in memory.
21
21
private _bucketsTotalWeight ;
22
22
23
+ // We adjust the type here to add the `unref()` part, as setInterval can technically return a number of a NodeJS.Timer.
23
24
private readonly _interval : ReturnType < typeof setInterval > & { unref ?: ( ) => void } ;
24
25
25
26
// SDKs are required to shift the flush interval by random() * rollup_in_seconds.
You can’t perform that action at this time.
0 commit comments