@@ -204,7 +204,7 @@ private class StatsigServerImpl() :
204
204
statsigJob = SupervisorJob ()
205
205
statsigScope = CoroutineScope (statsigJob + coroutineExceptionHandler)
206
206
network = StatsigNetwork (serverSecret, options, statsigMetadata, errorBoundary)
207
- logger = StatsigLogger (statsigScope, network, statsigMetadata)
207
+ logger = StatsigLogger (statsigScope, network, statsigMetadata, options )
208
208
this .options = options
209
209
}
210
210
@@ -244,14 +244,14 @@ private class StatsigServerImpl() :
244
244
logGateExposureImpl(user, gateName, result)
245
245
}
246
246
return @capture result.booleanValue
247
- }, { return @capture false })
247
+ }, { return @capture false }, configName = gateName )
248
248
}
249
249
250
250
override suspend fun checkGateWithExposureLoggingDisabled (user : StatsigUser , gateName : String ): Boolean {
251
251
return errorBoundary.capture(" checkGateWithExposureLoggingDisabled" , {
252
252
val result = checkGateImpl(user, gateName)
253
253
return @capture result.booleanValue
254
- }, { return @capture false })
254
+ }, { return @capture false }, configName = gateName )
255
255
}
256
256
257
257
private suspend fun checkGateImpl (user : StatsigUser , gateName : String ): ConfigEvaluation {
@@ -298,7 +298,7 @@ private class StatsigServerImpl() :
298
298
return @capture getDynamicConfigFromEvalResult(result, user, dynamicConfigName)
299
299
}, {
300
300
return @capture DynamicConfig .empty(dynamicConfigName)
301
- })
301
+ }, configName = dynamicConfigName )
302
302
}
303
303
304
304
override suspend fun getConfigWithExposureLoggingDisabled (user : StatsigUser , dynamicConfigName : String ): DynamicConfig {
@@ -311,7 +311,7 @@ private class StatsigServerImpl() :
311
311
return @capture getDynamicConfigFromEvalResult(result, normalizedUser, dynamicConfigName)
312
312
}, {
313
313
return @capture DynamicConfig .empty(dynamicConfigName)
314
- })
314
+ }, configName = dynamicConfigName )
315
315
}
316
316
317
317
override suspend fun manuallyLogConfigExposure (user : StatsigUser , configName : String ) {
@@ -330,7 +330,7 @@ private class StatsigServerImpl() :
330
330
return @capture getConfig(user, experimentName)
331
331
}, {
332
332
return @capture DynamicConfig .empty(experimentName)
333
- })
333
+ }, configName = experimentName )
334
334
}
335
335
336
336
override suspend fun getExperimentWithExposureLoggingDisabled (
@@ -346,7 +346,7 @@ private class StatsigServerImpl() :
346
346
return @capture getDynamicConfigFromEvalResult(result, user, experimentName)
347
347
}, {
348
348
return @capture DynamicConfig .empty(experimentName)
349
- })
349
+ }, configName = experimentName )
350
350
}
351
351
352
352
override suspend fun getExperimentInLayerForUser (
@@ -383,23 +383,23 @@ private class StatsigServerImpl() :
383
383
return @capture DynamicConfig .empty()
384
384
}, {
385
385
return @capture DynamicConfig .empty()
386
- })
386
+ }, configName = layerName )
387
387
}
388
388
389
389
override suspend fun getLayer (user : StatsigUser , layerName : String ): Layer {
390
390
return this .errorBoundary.capture(" getLayer" , {
391
391
return @capture getLayerImpl(user, layerName, false )
392
392
}, {
393
393
return @capture Layer .empty(layerName)
394
- })
394
+ }, configName = layerName )
395
395
}
396
396
397
397
override suspend fun getLayerWithExposureLoggingDisabled (user : StatsigUser , layerName : String ): Layer {
398
398
return this .errorBoundary.capture(" getLayerWithExposureLoggingDisabled" , {
399
399
return @capture getLayerImpl(user, layerName, true )
400
400
}, {
401
401
return @capture Layer .empty(layerName)
402
- })
402
+ }, configName = layerName )
403
403
}
404
404
405
405
override fun getClientInitializeResponse (
0 commit comments