* Log managed settings keys to Statsig for analytics. * This is called after init() completes to ensure settings are loaded * and environment variables are applied before model resolution.
()
| 227 | * and environment variables are applied before model resolution. |
| 228 | */ |
| 229 | function logManagedSettings(): void { |
| 230 | try { |
| 231 | const policySettings = getSettingsForSource('policySettings'); |
| 232 | if (policySettings) { |
| 233 | const allKeys = getManagedSettingsKeysForLogging(policySettings); |
| 234 | logEvent('tengu_managed_settings_loaded', { |
| 235 | keyCount: allKeys.length, |
| 236 | keys: allKeys.join(',') as unknown as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
| 237 | }); |
| 238 | } |
| 239 | } catch { |
| 240 | // Silently ignore errors - this is just for analytics |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | // Check if running in debug/inspection mode |
| 245 | function isBeingDebugged() { |
no test coverage detected