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

trace-forward: new API for acceptor's part. #3496

Merged
merged 1 commit into from
Jan 13, 2022
Merged

Conversation

denisshevchenko
Copy link
Contributor

@denisshevchenko denisshevchenko commented Jan 13, 2022

This PR changes API of the acceptor's part only, it doesn't touch the forwarder's part (used by trace-dispatcher):

  1. IO-action returning DataPointAsker is provided. It allows avoiding unsafePerformIO in the acceptor application.
  2. Peer error handlers were added. It allows the acceptor application to know if the connection with the node was dropped.

Additionally:

  1. ekg-forward dependency is updated.
  2. DataPoint protocol is fixed: now there is a check if the reply with DataPoints is empty.

Please note that cardano-tracer service, the next part of the new tracing infrastructure, depends on this PR. After it will be merged, the PR for cardano-tracer will be opened.

Copy link
Contributor

@deepfire deepfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denisshevchenko, s/Asker/Requestor, otherwise it's perfect!

iohk-bors bot added a commit that referenced this pull request Jan 13, 2022
3496: trace-forward: new API for acceptor's part. r=denisshevchenko a=denisshevchenko

This PR changes API of the acceptor's part only, it doesn't touch the forwarder's part (used by `trace-dispatcher`):

1. `IO`-action returning `DataPointAsker` is provided. It allows avoiding `unsafePerformIO` in the acceptor application.
2. Peer error handlers were added. It allows the acceptor application to know if the connection with the node was dropped.

Additionally:

1. `ekg-forward` dependency is updated.
2. `DataPoint` protocol is fixed: now there is a check if the reply with `DataPoint`s is empty.

**Please note that `cardano-tracer` service, the next part of the new tracing infrastructure, depends on this PR. After it will be merged, the PR for `cardano-tracer` will be opened.**

Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
@IntersectMBO IntersectMBO deleted a comment from iohk-bors bot Jan 13, 2022
@denisshevchenko
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 13, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 4de2de8 into master Jan 13, 2022
@iohk-bors iohk-bors bot deleted the new-trace-forward branch January 13, 2022 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants