• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iotaledger / iota / 17450599605

03 Sep 2025 01:23PM UTC coverage: 65.831% (-0.02%) from 65.853%
17450599605

push

github

web-flow
upstream(iota-indexer): latency metrics for objects version (#8456)

# Description of change

This PR includes an upstream path based on this
[PR](https://github.com/MystenLabs/sui/pull/19750).

Add missing metrics and logs for latency on objects version and objects
version chunks. Also standardized some of the function names (object
versions -> objects version).

## Links to any relevant issues

fixes #8435 

## How the change has been tested

- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)

Ran indexer by processing testnet checkpoints:

```shell
cargo r -p iota-indexer -- --db-url=postgres://postgres:postgrespw@localhost/iota_indexer --rpc-client-url=http://access-0-wg.r.testnet.iota.cafe:9001 --fullnode-sync-worker --reset-db
```
Also checked if new added metrics were present:
(`indexer_checkpoint_db_commit_latency_objects_version`,
`indexer_checkpoint_db_commit_latency_objects_version_chunks`)

```shell
curl http://localhost:9184/metrics | grep "objects_version"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 90262  100 90262    0     0  41.1M      0 --:--:-- --:--:-- --:--:-- 43.0M
# HELP indexer_checkpoint_db_commit_latency_objects_version Time spent committing objects version
# TYPE indexer_checkpoint_db_commit_latency_objects_version histogram
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.001"} 0
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.002"} 0
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.005"} 1
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.01"} 35
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.02"} 97
indexer_checkpoint_db_commit_latency_objects_version_bucket{le="0.05"} 134
indexer_checkpoint_db_commit_latency_objects_version_bucket... (continued)

0 of 25 new or added lines in 2 files covered. (0.0%)

93 existing lines in 17 files now uncovered.

228647 of 347322 relevant lines covered (65.83%)

2267323.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.42
/crates/iota-core/src/execution_cache/unit_tests/writeback_cache_tests.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc