You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support async configuration for SentryModule #16573
Is it possible to document whether it is feasible to initialize Sentry with dynamic configuration ? My configuration depends on environment variable and dynamically fetched configurations from remote sources.
I understand the instrument.ts file is meant to be called as early as possible to log application initialization errors, but I have healthchecks on my container that will tell me if the app started or not.
Solution Brainstorm
I would expect something similar to this
@Global()
@Module({imports: [EnvModule],providers: [{provide: SENTRY_CLIENT,useFactory: (envService: EnvService,supabaseClient: SupabaseClient): SentryClient=>{returnSentry.init({// usage of envService and supabase client}}},inject: [EnvService,SupabaseClient],},],exports: [SENTRY_CLIENT],})exportclassSentryModule{}
Activity