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 b2fceb3 commit d0b9d75Copy full SHA for d0b9d75
glean/src/core/metrics/types/event.ts
@@ -33,13 +33,13 @@ class EventMetricType extends MetricType {
33
* The maximum length for values is 100 bytes.
34
*/
35
record(extra?: ExtraMap): void {
36
+ const timestamp = getMonotonicNow();
37
+
38
Context.dispatcher.launch(async () => {
39
if (!this.shouldRecord(Context.uploadEnabled)) {
40
return;
41
}
42
- const timestamp = getMonotonicNow();
-
43
// Truncate the extra keys, if needed.
44
let truncatedExtra: ExtraMap | undefined = undefined;
45
if (extra && this.allowedExtraKeys) {
0 commit comments