-
-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log attestation's journey published by local validators (#3534)
* Log attestation journey * Fix lint and log * New metric: missed attestations vs big inclusion distance * Correct inclusionDistance in failed attestation log * Track attestation publish delay second in metric and log * Remove Math.floor() to calculate metric exactly * Track seen time at the api side * Add comments for sent peers bucket values
- Loading branch information
Showing
9 changed files
with
142 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import {config} from "@chainsafe/lodestar-config/default"; | ||
import {ssz} from "@chainsafe/lodestar-types"; | ||
import {WinstonLogger} from "@chainsafe/lodestar-utils"; | ||
import {createMetrics, IMetrics} from "../../../src/metrics"; | ||
|
||
export function createMetricsTest(): IMetrics { | ||
const state = ssz.phase0.BeaconState.defaultViewDU(); | ||
return createMetrics({enabled: true, timeout: 12000}, config, state); | ||
const logger = new WinstonLogger(); | ||
return createMetrics({enabled: true, timeout: 12000}, config, state, logger); | ||
} |