We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb84fc7 commit 7f58cdbCopy full SHA for 7f58cdb
lib/src/logging/stat_tracker.dart
@@ -7,6 +7,8 @@ import 'package:meta/meta.dart';
7
import '../../codelessly_sdk.dart';
8
import '../utils/debouncer.dart';
9
10
+const _kDisableStatReporting = true;
11
+
12
/// A class that tracks statistics of various operations in the SDK.
13
abstract class StatTracker {
14
Uri? serverUrl;
@@ -79,6 +81,11 @@ final class CodelesslyStatTracker extends StatTracker {
79
81
/// Sends the batch of stats to the server.
80
82
Future<void> sendBatch() => debouncer.run(
83
() async {
84
+ if (_kDisableStatReporting) {
85
+ statBatch.clear();
86
+ return;
87
+ }
88
89
// TODO(Saad): Use an HTTP client.
90
await post(
91
serverUrl!,
0 commit comments