-
Notifications
You must be signed in to change notification settings - Fork 724
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
CAD-3511: datapoint-forward library. #3303
Conversation
c96c01d
to
a0c2127
Compare
a0c2127
to
6ae8262
Compare
Please note that after it will be merged, |
6ae8262
to
9fb279f
Compare
3337: CAD-3628: remove NodeInfo from trace-forward. r=deepfire a=denisshevchenko Since the new `datapoint-forward` library (#3303) will be used to forward structured data from the node, `NodeInfo` type should be removed from `trace-forward` library. Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
3337: CAD-3628: remove NodeInfo from trace-forward. r=denisshevchenko a=denisshevchenko Since the new `datapoint-forward` library (#3303) will be used to forward structured data from the node, `NodeInfo` type should be removed from `trace-forward` library. Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
3337: CAD-3628: remove NodeInfo from trace-forward. r=denisshevchenko a=denisshevchenko Since the new `datapoint-forward` library (#3303) will be used to forward structured data from the node, `NodeInfo` type should be removed from `trace-forward` library. Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide a high level description how does it fit into node and the trace-forwarder
library.
I provided various feedback, the most important is to not use UnversionedProtocol
, but provided it's own versioning scheme which would distniguish it from all other protocols (trace-forwarder
, node-to-client
or even node-to-node
).
|
||
tests :: TestTree | ||
tests = testGroup "DataPoint.Forward.Protocol" | ||
[ testProperty "codec" prop_codec_DataPointForward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should expand the test in this module. Please check keep-alive test suite as a template.
Closed because of #3342 |
The third forwarding library for the new tracing infrastructure (#2847). It allows forwarding arbitrary data that provides
ToJSON
instance. Thetrace-dispatcher
will use this library to forward different structured data to external acceptor apps (for example,cardano-tracer
).For reviewers: please note that this library is based on the existing
trace-forward
library, but with one important difference: there is no "infinite stream" of data when we ask for it everyN
seconds. Instead, acceptor app asks for eachDataPoint
explicitly, when it needs this data.