Skip to content

Commit 53f5d9c

Browse files
committed
fix leftover debug init and reduce to unknown in type check
1 parent 44ea531 commit 53f5d9c

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

packages/angular/src/sdk.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,3 @@ function checkAndSetAngularVersion(): void {
8282
setContext('angular', { version: angularVersion });
8383
}
8484
}
85-
86-
init({
87-
dsn: '__DSN__',
88-
traceLifecycle: 'stream',
89-
beforeSendSpan: span => {
90-
return span;
91-
},
92-
});

packages/core/src/tracing/spans/beforeSendSpan.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export function withStreamedSpan(
3737
* @param callback - The `beforeSendSpan` callback to check.
3838
* @returns `true` if the callback was wrapped with {@link withStreamedSpan}.
3939
*/
40-
export function isStreamedBeforeSendSpanCallback(
41-
callback: (ClientOptions['beforeSendSpan'] & { _streamed?: true }) | unknown,
42-
): callback is BeforeSendStreamedSpanCallback {
40+
export function isStreamedBeforeSendSpanCallback(callback: unknown): callback is BeforeSendStreamedSpanCallback {
4341
return !!callback && typeof callback === 'function' && '_streamed' in callback && !!callback._streamed;
4442
}

0 commit comments

Comments
 (0)