1- import { Extras } from "@sentry/core" ;
1+ import { Extras , type Integration , type Event } from "@sentry/core" ;
22import * as Sentry from "@sentry/node" ;
33import os from "node:os" ;
44import { IdeInfo } from "../../index.js" ;
@@ -25,7 +25,7 @@ export class SentryLogger {
2525
2626 // Filter integrations that use the global variable
2727 const integrations = Sentry . getDefaultIntegrations ( { } ) . filter (
28- ( defaultIntegration ) => {
28+ ( defaultIntegration : Integration ) => {
2929 // Remove integrations that might interfere with shared environments
3030 return ! [
3131 "OnUncaughtException" ,
@@ -52,7 +52,7 @@ export class SentryLogger {
5252 sendDefaultPii : false ,
5353
5454 // Strip sensitive data and add basic properties before sending events
55- beforeSend ( event ) {
55+ beforeSend ( event : Event ) {
5656 // First apply anonymization
5757 const anonymizedEvent = anonymizeSentryEvent ( event ) ;
5858 if ( ! anonymizedEvent ) return null ;
@@ -197,7 +197,7 @@ export function createSpan<T>(
197197 }
198198
199199 // Use withScope from Sentry to isolate the span context
200- return Sentry . withScope ( ( isolatedScope ) => {
200+ return Sentry . withScope ( ( isolatedScope : Sentry . Scope ) => {
201201 isolatedScope . setClient ( client ) ;
202202 return Sentry . startSpan (
203203 {
0 commit comments