File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 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 {
108108 }
109109}
110110
111- function isInstrumented < T > ( handler : T ) : boolean {
111+ function isInstrumented < T > ( handler : T ) : boolean | undefined {
112112 try {
113- return ! ! ( handler as SentryInstrumented < T > ) . __SENTRY_INSTRUMENTED__ ;
113+ return ( handler as SentryInstrumented < T > ) . __SENTRY_INSTRUMENTED__ ;
114114 } catch {
115115 return false ;
116116 }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export class MetricsAggregator implements MetricsAggregatorBase {
2020 // that we store in memory.
2121 private _bucketsTotalWeight ;
2222
23+ // We adjust the type here to add the `unref()` part, as setInterval can technically return a number of a NodeJS.Timer.
2324 private readonly _interval : ReturnType < typeof setInterval > & { unref ?: ( ) => void } ;
2425
2526 // 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