erigon-pulse/core/state
milen 34c0fe29ad
metrics: swap remaining VictoriaMetrics usages with erigon-lib/metrics (#8762)
# Background

Erigon currently uses a combination of Victoria Metrics and Prometheus
client for providing metrics.

We want to rationalize this and use only the Prometheus client library,
but we want to maintain the simplified Victoria Metrics methods for
constructing metrics.

This task is currently partly complete and needs to be finished to a
stage where we can remove the Victoria Metrics module from the Erigon
code base.

# Summary of changes

- Adds missing `NewCounter`, `NewSummary`, `NewHistogram`,
`GetOrCreateHistogram` functions to `erigon-lib/metrics` similar to the
interface VictoriaMetrics lib provides
- Minor tidy up for consistency inside `erigon-lib/metrics/set.go`
around return types (panic vs err consistency for funcs inside the
file), error messages, comments
- Replace all remaining usages of `github.com/VictoriaMetrics/metrics`
with `github.com/ledgerwatch/erigon-lib/metrics` - seamless (only import
changes) since interfaces match
2023-11-20 12:23:23 +00:00
..
contracts Block Gas limit contract integration for Chiado (#7727) 2023-06-19 22:06:51 +05:30
historyv2read e2: avoid do RestoreCodeHash twice (#7706) 2023-06-11 12:28:47 +07:00
temporal Add readonly transaction rollback check rule (#8682) 2023-11-09 07:40:11 +03:00
access_list_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
access_list.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
cached_reader2.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
cached_reader.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
cached_writer.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
change_set_writer.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
database_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
database.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
db_state_reader.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
db_state_writer.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
dump.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
helper.go Don't store RLPs in valueNodes (except tests). 2019-11-13 20:08:20 +01:00
history_reader_inc.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
history_reader_v3.go e4: release some tests (#7729) 2023-06-14 10:01:00 +07:00
history_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
history_walk.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
intra_block_state_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
intra_block_state.go Fix wiring of AgraBlock into tx pool (#8555) 2023-10-23 11:03:46 +02:00
journal.go Implement EIP-1153 transient storage (#7405) 2023-05-01 18:26:24 +02:00
plain_readonly.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
plain_state_reader.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
plain_state_writer.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
recon_state.go e3: less conlicts 2023-04-10 09:38:08 +07:00
recon_writer_inc.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
rw_v3.go metrics: swap remaining VictoriaMetrics usages with erigon-lib/metrics (#8762) 2023-11-20 12:23:23 +00:00
state_object_test.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
state_object.go Implement EIP-6780: SELFDESTRUCT only in same transaction (#7976) 2023-08-06 17:48:11 +02:00
state_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
transient_storage.go Implement EIP-1153 transient storage (#7405) 2023-05-01 18:26:24 +02:00