Skip to content

Commit 677ac31

Browse files
committed
adjustments
1 parent 56e5720 commit 677ac31

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/cloudflare/src/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

packages/core/src/metrics/aggregator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)