Revision control
Copy as Markdown
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/
import Foundation
import Glean
public final class AdsClientTelemetry: MozAdsTelemetry {
public func recordBuildCacheError(label: String, value: String) {
GleanMetrics.AdsClient.buildCacheError[label].set(value)
}
public func recordClientError(label: String, value: String) {
GleanMetrics.AdsClient.clientError[label].set(value)
}
public func recordClientOperationTotal(label: String) {
GleanMetrics.AdsClient.clientOperationTotal[label].add()
}
public func recordDeserializationError(label: String, value: String) {
GleanMetrics.AdsClient.deserializationError[label].set(value)
}
public func recordHttpCacheOutcome(label: String, value: String) {
GleanMetrics.AdsClient.httpCacheOutcome[label].set(value)
}
}