logMetric static method
void
logMetric(
- Client client,
- String publicKey,
- String featureName,
- String responseTime,
)
Implementation
static void logMetric(final http.Client client,
final String publicKey,
final String featureName,
String responseTime ) async {
final request = {
"publicKey": publicKey,
"language": "Flutter Rave v3",
"version": "Flutter SDK 0.0.3",
"title": featureName,
"message": responseTime
};
try {
client.post(Uri.parse(_METRIC_URL), body: jsonEncode(request));
} catch (ignored) { }
}