cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

NodeVersion tracer for providing metrics

Open jutaro opened this issue 1 year ago • 1 comments

This adds a new trace message, which adds new metrics. Here is an example of what it provides:

cardano_build_info { , version = "8_10_0" , version_major="8" , version_minor="10" , version_patch="0" , revision="fd7eb00d1697b0c6eb7f3e3d0ad6e94fcc5caa63" , compiler_name="ghc" , compiler_version="8_10" , compiler_version_major="8" , compiler_version_minor="10" , architecture="x86_64" , os_name="linux" } = 1

Additionally, it provided an alternative representation of the same data as trace messages for both machines and humans. Here are examples of how the data will be represented:

Machine Trace Message: {"at":"2024-04-08T12:30:08.89384608Z","ns":"Version.NodeVersion","data":{"applicationName":"cardano-node","applicationVersion":"8.10.0","architecture":"x86_64","compilerName":"ghc","compilerVersion":"8.10","gitRevision":"f3fabe88bfc83f5e9c2a9d7af2293857cd8212c3","osName":"linux"},"sev":"Info","thread":"5","host":"deusXmachina"}

Human Trace Message: [2024-04-08 13:46:26.5169Z]deusXmachina:Version.NodeVersion cardano-node 8.10.0 git rev f3fabe88bfc83f5e9c2a9d7af2293857cd8212c3 - linux-x86_64 - ghc-8.10

jutaro avatar Apr 09 '24 08:04 jutaro

This will be great to have! I've had some (thankfully local) runs I've had to re-run because I lost track of which compiler was used for it.

NadiaYvette avatar Apr 25 '24 17:04 NadiaYvette