Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

feat: add basic tracing #562

Merged
merged 1 commit into from
Jun 14, 2022
Merged

feat: add basic tracing #562

merged 1 commit into from
Jun 14, 2022

Conversation

guseggert
Copy link
Contributor

This adds tracing spans to the costly Bitswap entry points. It doesn't
instrument the bitswap internals, which will take some time. In
go-ipfs, this will at least let us know the contribution of Bitswap to
the overall request handling time.

This also plumbs contexts through internally so that they reach the
content routing APIs, so that traces are propagated through and we can
start instrumenting e.g. the DHT.

@guseggert guseggert requested a review from iand April 28, 2022 14:17
@guseggert guseggert marked this pull request as draft April 28, 2022 14:21
@iand
Copy link

iand commented Apr 28, 2022

Are test failures related to this change?

@guseggert
Copy link
Contributor Author

Yes, I need to fix them, meant to open this as a draft until I work those out

@guseggert guseggert force-pushed the feat/tracing branch 3 times, most recently from e10d5e3 to b434e4a Compare April 29, 2022 00:33
@guseggert guseggert marked this pull request as ready for review April 29, 2022 00:35
@guseggert
Copy link
Contributor Author

OK it's good to go now, the remaining test failures are known flaky tests documented in ipfs/boxo#86

@iand
Copy link

iand commented Apr 29, 2022

LGTM

@guseggert guseggert force-pushed the feat/tracing branch 2 times, most recently from 9938db9 to d8491b6 Compare June 13, 2022 22:41
This adds tracing spans to the costly Bitswap entry points. It doesn't
instrument the bitswap internals, which will take some time. In
go-ipfs, this will at least let us know the contribution of Bitswap to
the overall request handling time.

This also plumbs contexts through internally so that they reach the
content routing APIs, so that traces are propagated through and we can
start instrumenting e.g. the DHT.
@guseggert guseggert merged commit b18a91d into master Jun 14, 2022
@guseggert guseggert deleted the feat/tracing branch June 14, 2022 02:19
@ajnavarro ajnavarro mentioned this pull request Aug 24, 2022
72 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants