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

Mining Analysis #429

Merged
merged 68 commits into from
Sep 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
e9a9f11
base setup for miner opentel
temaniarpit27 Jun 13, 2022
f612c39
version change
temaniarpit27 Jun 13, 2022
6ca8301
modify ctx passing
temaniarpit27 Jun 13, 2022
767ee89
add attributes
temaniarpit27 Jun 13, 2022
bab7da1
update fill txs span attributes
manav2401 Jun 13, 2022
3a078e6
fix: use common attributes for remote and local txs
manav2401 Jun 13, 2022
c2602ca
pass context in seal
manav2401 Jun 13, 2022
1d9e1de
fix
manav2401 Jun 13, 2022
f252298
fix
manav2401 Jun 13, 2022
11bbda0
add traces to finalize and assemble
manav2401 Jun 14, 2022
4fb9770
fix
manav2401 Jun 14, 2022
75677c2
use task ctx in result loop
manav2401 Jun 14, 2022
59050f3
only start parent span if no error
manav2401 Jun 15, 2022
58d3540
send nil tracer from Finalize
manav2401 Jun 15, 2022
cb3a45e
Merge branch 'v0.3.0-dev' into arpit/pos-505
temaniarpit27 Jun 15, 2022
20a5a9d
clean up
manav2401 Jun 15, 2022
afef3b5
Merge branch 'arpit/pos-505' of https://github.com/maticnetwork/bor i…
manav2401 Jun 15, 2022
bcb11f2
add sub function timings in span attribute
manav2401 Jun 20, 2022
950bfe4
modify span attributes
manav2401 Jun 20, 2022
d848647
set time attribute to milliseconds
manav2401 Jun 21, 2022
cc1a18d
linters fix
temaniarpit27 Jun 22, 2022
6022e86
fix linters for consensus
manav2401 Jun 22, 2022
c9f3d25
add nolint to worker
manav2401 Jun 22, 2022
9d7ac22
fix testcase
temaniarpit27 Jun 22, 2022
99984dc
Added fillTransactions subTraces
0xsharma Jul 6, 2022
064c125
Merge branch 'develop' into arpit/pos-505
temaniarpit27 Jul 7, 2022
9588aa9
add traces in intermediate root hash function
manav2401 Jul 12, 2022
acd192a
add traces in WriteBlockAndSetHead function, fix linters
manav2401 Jul 12, 2022
5ec3450
merge develop
temaniarpit27 Jul 14, 2022
30b559b
merge arpit/pos-505
temaniarpit27 Jul 14, 2022
1552167
fix: linting errors
temaniarpit27 Jul 15, 2022
b5dfe09
fix: test cases
temaniarpit27 Jul 15, 2022
9506630
fix: go.mod
temaniarpit27 Jul 15, 2022
5d356da
Merge branch 'develop' of github.com:maticnetwork/bor into arpit/pos-505
temaniarpit27 Jul 15, 2022
6f78f62
fix: testcase
temaniarpit27 Jul 15, 2022
b29e300
extract tracing package
JekaMas Jul 19, 2022
e36bc2b
merge
JekaMas Jul 19, 2022
aa8b1cc
Merge branch 'develop' into arpit/pos-505
manav2401 Aug 5, 2022
799fce1
Merge branch 'develop' into arpit/pos-505
manav2401 Aug 8, 2022
5d1189b
Merge branch 'develop' into arpit/pos-505
manav2401 Aug 9, 2022
10109b4
merge develop
temaniarpit27 Aug 16, 2022
82a21ac
merge base branch
temaniarpit27 Aug 16, 2022
478a7e0
linters fix
temaniarpit27 Aug 16, 2022
2d68b7c
debug
JekaMas Aug 17, 2022
441a765
Revert "debug"
temaniarpit27 Aug 17, 2022
ae94046
fix: panic in NewTransactionsByPriceAndNonce iteration
manav2401 Aug 22, 2022
e1edcdf
Merge branch 'develop' of github.com:maticnetwork/bor into arpit/pos-505
temaniarpit27 Aug 24, 2022
9b995bc
Merge branch 'develop' into arpit/pos-505
manav2401 Aug 29, 2022
2ad0d64
merge develop
temaniarpit27 Sep 8, 2022
b9dc665
Merge branch 'arpit/pos-505' of github.com:maticnetwork/bor into arpi…
temaniarpit27 Sep 8, 2022
97e2840
merge develop
manav2401 Sep 23, 2022
aa532ee
change heimdall version to develop
temaniarpit27 Sep 27, 2022
9bdbc1e
miner/worker: fix duplicate call to tx ordering
manav2401 Sep 27, 2022
b8bc0b6
Merge branch 'arpit/pos-505' of https://github.com/maticnetwork/bor i…
manav2401 Sep 27, 2022
b726e53
Merge branch 'develop' of https://github.com/maticnetwork/bor into ar…
manav2401 Sep 27, 2022
9b4f796
miner/worker: refactor tracing
manav2401 Sep 27, 2022
b626090
consensus/bor: use tracing package
manav2401 Sep 27, 2022
4324423
tracing: add more abstraction for spans
manav2401 Sep 27, 2022
a810072
tracing: set all attributes at once
manav2401 Sep 28, 2022
0ab5821
Merge branch 'develop' into arpit/pos-505
temaniarpit27 Sep 28, 2022
54fef9c
remove nested tracing from blockchain.WriteBlockAndSetHead function
manav2401 Sep 29, 2022
c99de20
remove nested tracing from statedb.IntermediateRoot function
manav2401 Sep 29, 2022
b6ff133
handle end span in bor.Seal function
manav2401 Sep 29, 2022
91388bf
fix: typo
manav2401 Sep 29, 2022
f4a8a86
minor fixes
manav2401 Sep 29, 2022
c07ed79
fix: linters
manav2401 Sep 29, 2022
6e6268b
fix: remove nolint
manav2401 Sep 29, 2022
1d32559
go mod tidy
manav2401 Sep 29, 2022
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
Prev Previous commit
Next Next commit
fix
  • Loading branch information
manav2401 committed Jun 13, 2022
commit 1d9e1deadfe09955948f04fc67edc880ab0c9bd7
16 changes: 9 additions & 7 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,8 @@ func (c *Bor) Seal(ctx context.Context, chain consensus.ChainHeaderReader, block

// Wait until sealing is terminated or delay timeout.
log.Info("Waiting for slot to sign and propagate", "number", number, "hash", header.Hash, "delay-in-sec", uint(delay), "delay", common.PrettyDuration(delay))
sealSpan.SetAttributes(attribute.String("test", "hello"))
sealSpan.End()

go func() {
select {
Expand All @@ -914,13 +916,13 @@ func (c *Bor) Seal(ctx context.Context, chain consensus.ChainHeaderReader, block
"delay", delay,
"headerDifficulty", header.Difficulty,
)
sealSpan.SetAttributes(
attribute.Int("number", int(number)),
attribute.String("hash", header.Hash().String()),
attribute.String("delay", delay.String()),
attribute.Bool("out-of-turn", wiggle > 0),
)
sealSpan.End()
// sealSpan.SetAttributes(
// attribute.Int("number", int(number)),
// attribute.String("hash", header.Hash().String()),
// attribute.String("delay", delay.String()),
// attribute.Bool("out-of-turn", wiggle > 0),
// )
// sealSpan.End()
}
select {
case results <- block.WithSeal(header):
Expand Down