* 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.
()
| 214 | * and environment variables are applied before model resolution. |
| 215 | */ |
| 216 | function logManagedSettings(): void { |
| 217 | try { |
| 218 | const policySettings = getSettingsForSource('policySettings'); |
| 219 | if (policySettings) { |
| 220 | const allKeys = getManagedSettingsKeysForLogging(policySettings); |
| 221 | logEvent('tengu_managed_settings_loaded', { |
| 222 | keyCount: allKeys.length, |
| 223 | keys: allKeys.join(',') as unknown as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
| 224 | }); |
| 225 | } |
| 226 | } catch { |
| 227 | // Silently ignore errors - this is just for analytics |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | // Check if running in debug/inspection mode |
| 232 | function isBeingDebugged() { |
no test coverage detected