Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics (Accounts): State changes #916

Merged
merged 44 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a3c5815
Darren/logdb remove leading zeros (#865)
darrenvechain Oct 29, 2024
f471d95
Add LogIndex and TxIndex into logs/event response body (#862)
paologalligit Nov 8, 2024
7b0a7ca
fix: set range.To to max logDB block (#880)
darrenvechain Nov 18, 2024
a1ffbd4
Update Convert Filter to match BlockMask bit space (#881)
otherview Nov 18, 2024
4aaf122
return error in newSequence (#885)
libotony Nov 19, 2024
e4e5913
add safety guard to the sequence (#887)
libotony Nov 22, 2024
60e80d6
chore: update version for mainDB v4
darrenvechain Nov 29, 2024
ddc1570
maindb v4 (#868)
libotony Dec 9, 2024
fc1c561
Pedro/merge/feat/db (#914)
otherview Dec 9, 2024
0419ede
Merge remote-tracking branch 'origin/master' into feat/db
otherview Dec 9, 2024
822eb97
chore: fixed vulnerability
freemanzMrojo Dec 9, 2024
a751385
chore: fixed vulnerability
freemanzMrojo Dec 9, 2024
e5df4aa
first commit
freemanzMrojo Dec 10, 2024
d1ddff0
second commit
freemanzMrojo Dec 10, 2024
f801be2
added receipt
freemanzMrojo Dec 10, 2024
4bb278a
added receipt
freemanzMrojo Dec 10, 2024
8d1488a
state commit
freemanzMrojo Dec 10, 2024
64b9219
fix: Get Devnet ID after the Thor flags are set (#915)
freemanzMrojo Dec 10, 2024
98228a5
added more dashboard
freemanzMrojo Dec 10, 2024
2b7e909
added target
freemanzMrojo Dec 10, 2024
5417b40
Merge branch 'master' into feat/db
freemanzMrojo Dec 10, 2024
0cca5f3
Merge branch 'feat/db' into miguel/object-write-read2
freemanzMrojo Dec 10, 2024
f4f35e3
Merge branch 'master' into feat/db
freemanzMrojo Dec 10, 2024
9025c5f
Merge branch 'feat/db' into miguel/object-write-read2
freemanzMrojo Dec 10, 2024
5b9ebd1
Merge branch 'master' into feat/db
darrenvechain Dec 18, 2024
a20f44f
Merge branch 'master' into feat/db
darrenvechain Dec 18, 2024
f26c23a
fix: compile errors
darrenvechain Dec 18, 2024
2425384
Merge branch 'master' into feat/db
darrenvechain Dec 30, 2024
db0f469
Merge branch 'feat/db' into miguel/object-write-read2
freemanzMrojo Jan 2, 2025
5505c91
Merge branch 'master' into feat/db
darrenvechain Jan 3, 2025
01aff2c
Merge branch 'feat/db' into miguel/object-write-read2
freemanzMrojo Jan 6, 2025
d7f6121
Merge branch 'master' into feat/db
darrenvechain Jan 13, 2025
571f607
Merge branch 'master' into feat/db
freemanzMrojo Jan 13, 2025
bdedf37
Merge branch 'feat/db' into miguel/object-write-read2
freemanzMrojo Jan 13, 2025
6dd54f7
linter
freemanzMrojo Jan 13, 2025
1d1f139
chore(maindbv4): add a migration guide" (#944)
darrenvechain Jan 17, 2025
b4f9606
Merge remote-tracking branch 'origin/master' into release/maindbv4
otherview Jan 20, 2025
5f31275
Merge branch 'release/maindbv4' into miguel/object-write-read2
freemanzMrojo Jan 20, 2025
9f98373
Merge branch 'master' into miguel/object-write-read2
darrenvechain Jan 20, 2025
ab157f3
Update metrics/prometheus.go
freemanzMrojo Jan 20, 2025
0dc3ce8
modifications after call with pedro
freemanzMrojo Jan 20, 2025
3e362aa
Merge branch 'master' into miguel/object-write-read2
freemanzMrojo Jan 20, 2025
bc20e7f
just getting state changes in metrics
freemanzMrojo Jan 20, 2025
a38e021
Merge branch 'master' into miguel/object-write-read2
otherview Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions state/metrics.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (c) 2024 The VeChainThor developers
//
// Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying
// file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>

package state

import "github.com/vechain/thor/v2/metrics"

var metricAccountChanges = metrics.LazyLoadCounter("account_state_changes_count")
2 changes: 2 additions & 0 deletions state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ func (s *State) Stage(newVer trie.Version) (*Stage, error) {
return err
}
}
// Just once for the account trie.
otherview marked this conversation as resolved.
Show resolved Hide resolved
metricAccountChanges().Add(int64(len(changes)))
return nil
},
}, nil
Expand Down
Loading