[android-components](../../index.md) / [mozilla.components.service.glean.private](../index.md) / [CommonMetricData](index.md) / [shouldRecord](./should-record.md)

# shouldRecord

`open fun shouldRecord(logger: `[`Logger`](../../mozilla.components.support.base.log.logger/-logger/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/glean/src/main/java/mozilla/components/service/glean/private/CommonMetricData.kt#L45)