Skip to content

Commit 5df1be2

Browse files
mgmeieraniketd
authored andcommitted
new tracing: documentation, changelogs, linting, update test data
1 parent d9bb61a commit 5df1be2

File tree

12 files changed

+62
-41
lines changed

12 files changed

+62
-41
lines changed

bench/tx-generator/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# ChangeLog
22

3+
## 2.15 -- Mar 2025
4+
5+
* A new cabal flag `withplutuslib` is added, enabling import and re-compilation of Plutus scripts from `plutus-scripts-bench` - default: false; use for dev/test of new benchmarks only.
6+
* Port `ProtocolParameters` type and typeclass instances from `cardano-api` into new module `Cardano.Api.Internal`, removing dependency on the deprecated API type.
7+
* Bump for Node 10.3
8+
39
## 2.14.2 -- Oct 2024
410

511
* Bump for Node 10
612

713
## 2.14.1 -- June 2024
14+
815
* A new NixSvcOptions field is introduced: `_nix_keepalive`
916
and it's propagated down to the `kaClient` that does keepalives.
1017
This makes keepalive timeouts configurable.

bench/tx-generator/src/Cardano/Benchmarking/Tracer.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,8 @@ generatorTracer ::
6767
-> Maybe (Trace IO FormattedMessage)
6868
-> IO (Trace IO a)
6969
generatorTracer tracerName mbTrStdout mbTrForward = do
70-
forwardTrace <- case mbTrForward of
71-
Nothing -> mempty
72-
Just trForward -> forwardFormatter trForward
73-
stdoutTrace <- case mbTrStdout of
74-
Nothing -> mempty
75-
Just trForward -> machineFormatter trForward
70+
forwardTrace <- maybe mempty forwardFormatter mbTrForward
71+
stdoutTrace <- maybe mempty machineFormatter mbTrStdout
7672
let tr = forwardTrace <> stdoutTrace
7773
tr' <- withDetailsFromConfig tr
7874
pure $ withInnerNames $ appendPrefixName tracerName tr'

cardano-node/test/Test/Cardano/Tracing/NewTracing/data/badConfig.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ TraceOptions:
7272
TxSubmission.Remote:
7373
detail: DMinimal
7474

75-
# Options for the trace forwarder
76-
TraceOptionForwarder:
77-
address:
78-
filePath: /tmp/forwarder.sock
79-
mode: Initiator
80-
8175
TraceOptionPeerFrequency: 2000
8276

8377
TraceOptionResourceFrequency: 5000

cardano-node/test/Test/Cardano/Tracing/NewTracing/data/goodConfig.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ TraceOptions:
6969
TxSubmission.Remote:
7070
detail: DMinimal
7171

72-
# Options for the trace forwarder
73-
TraceOptionForwarder:
74-
address:
75-
filePath: /tmp/forwarder.sock
76-
mode: Initiator
77-
7872
TraceOptionPeerFrequency: 2000
7973

8074
TraceOptionResourceFrequency: 5000

cardano-tracer/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# ChangeLog
22

3+
## 0.3.2 (March 2025)
4+
5+
* When requesting forwarded metrics, ask for delta to previous request only. New config option `ekgRequestFull` defaults to `false`; set to `true` to revert this behavior.
6+
* Add up-to-date symlink for each log rotation, pointing to the most recent file (`node.json` or `node.log`, depending on the log format).
7+
* Fix: CLI option `--min-log-severity` is now observed correctly.
8+
* Add `metricsNoSuffix` to configuration, which when set removes suffixes like `_int` from metrics names, making them more similar to those in the old system (optional boolean; default: `false`).
9+
* Remove `metricsComp` metric name remapping from configuration.
10+
* Updated to use `ekg-forward-0.9`.
11+
312
## 0.3.1 (January 22, 2025)
413

514
* Fix race condition when querying `NodeInfo` data point, occasionally resulting in fallback `NodeName`s instead of proper ones.

cardano-tracer/configuration/metrics_help.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"Forge.DelegMapSize": "Delegation map size",
33
"Forge.UtxoSize": "UTxO set size",
4+
"Forge.forged": "Counter of forged blocks",
45
"Mem.resident": "Kernel-reported RSS (resident set size)",
56
"RTS.alloc": "RTS-reported bytes allocated",
67
"RTS.gcHeapBytes": "RTS-reported heap bytes",
@@ -15,9 +16,14 @@
1516
"Stat.fsWr": "FS bytes written",
1617
"Stat.netRd": "IP packet bytes read",
1718
"Stat.netWr": "IP packet bytes written",
18-
"SuppressedMessages...": "Number of suppressed messages of a certain kind",
1919
"blockNum": "Number of blocks in this chain fragment.",
2020
"blockReplayProgress": "Progress in percent",
21+
"blockfetchclient.blockdelay": "delay (s) of the latest block fetch",
22+
"blockfetchclient.blockdelay.cdfFive": "probability for block fetch to complete within 5s",
23+
"blockfetchclient.blockdelay.cdfOne": "probability for block fetch to complete within 1s",
24+
"blockfetchclient.blockdelay.cdfThree": "probability for block fetch to complete within 3s",
25+
"blockfetchclient.blocksize": "block size (bytes) of the latest block fetch",
26+
"blockfetchclient.lateblocks": "number of block fetches that took longer than 5s",
2127
"blocksForged": "How many blocks did this node forge?",
2228
"cardano_build_info": "Cardano node build info",
2329
"cardano_version_major": "Cardano node version information",
@@ -26,10 +32,12 @@
2632
"connectedPeers": "Number of connected peers",
2733
"density": "The actual number of blocks created over the maximum expected number of blocks that could be created over the span of the last @k@ blocks.",
2834
"epoch": "In which epoch is the tip of the current chain.",
35+
"forgedSlotLast": "Slot number of the last forged block",
2936
"forging_enabled": "A node without forger credentials or started as non-producing has forging disabled.",
3037
"forks": "counter for forks",
3138
"haskell_compiler_major": "Cardano compiler version information",
3239
"haskell_compiler_minor": "Cardano compiler version information",
40+
"haskell_compiler_patch": "Cardano compiler version information",
3341
"mempoolBytes": "Byte size of the mempool",
3442
"node.start.time": "The UTC time this node was started represented in POSIX seconds.",
3543
"nodeCannotForge": "How many times was this node unable to forge [a block]?",

cardano-tracer/docs/cardano-tracer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ In this example, `subdirForNode0` is a subdirectory containing log files with it
296296

297297
The field `logMode` specifies logging mode. There are two possible modes: `FileMode` and `JournalMode`. `FileMode` is for storing logs to the files, `JournalMode` is for storing them in `systemd`'s journal. Please note that if you choose `JournalMode`, the field `logRoot` will be ignored.
298298

299-
The field `logFormat` specifies the format of logs. There are two possible modes: `ForMachine` and `ForHuman`. `ForMachine` is for JSON format, `ForHuman` is for human-friendly text format.
299+
The field `logFormat` specifies the format of logs. There are two possible modes: `ForMachine` and `ForHuman`. `ForMachine` is for JSON format, `ForHuman` is for human-friendly text format. The latter also implies the file endings change to `.log`, and the symbolic link is named `node.log`.
300300

301301
Please note that `logging` field accepts the list, so you can specify more than one logging section. For example, for both log formats:
302302

trace-dispatcher/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Revision history for trace-dispatcher
22

3+
## 2.9 -- Mar 2025
4+
5+
* New `PrometheusSimple` backend which runs a simple TCP server for direct exposition of metrics, without forwarding.
6+
* New `maxReconnectDelay` config option in `TraceOptionForwarder`: Specifies maximum delay (seconds) between (re-)connection attempts of a forwarder (default: 60s).
7+
* Introduce `forHumanFromMachine :: a -> Text` into `class LogFormatting a` as a safe drop-in `forMachine` definition in instances.
8+
* Optimize data sharing in formatters.
9+
* Remove unused optional namespace prefix argument from formatters.
10+
* Updated to use `ekg-forward-0.9`.
11+
* Remove `ekg-wai` from dependencies.
12+
313
## 2.8.1 -- Feb 2025
414

515
* Updated to `ouroboros-network-framework-0.16`

trace-dispatcher/doc/config.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ To add in node-services.nix
1515
{ns = ""; backends = ["Stdout HumanFormatColoured"; "Forwarder"; "EKGBackend"];}
1616
{ns = "ChainDB"; backends = ["Forwarder"];}
1717
];
18-
TraceOptionForwarder = {filePath: "/tmp/forwarder.sock";};

trace-dispatcher/doc/config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ TraceOptions:
6161
BlockFetchClient.CompletedBlockFetch:
6262
maxFrequency: 2.0
6363

64-
# Options for the trace forwarder
65-
TraceOptionForwarder:
66-
address:
67-
filePath: /tmp/forwarder.sock
68-
mode: Initiator
69-
7064
TraceOptionPeerFrequency: 2000
7165

7266
TraceOptionResourceFrequency: 5000

0 commit comments

Comments
 (0)