-
Notifications
You must be signed in to change notification settings - Fork 43
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
Use capnp map for tracing metadata #1498
Use capnp map for tracing metadata #1498
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1498 +/- ##
==========================================
- Coverage 34.71% 34.53% -0.18%
==========================================
Files 13 13
Lines 1135 1135
Branches 394 391 -3
==========================================
- Hits 394 392 -2
Misses 483 483
- Partials 258 260 +2 |
5af8261
to
3605b28
Compare
Third time's the charm. Fixed now all typos and lints. |
@mgjm there's a merge conflict can you rebase please? |
3605b28
to
76b82fd
Compare
/approve LGTM @saschagrunert PTAL |
Signed-off-by: Martin Michaelis <code@mgjm.de>
76b82fd
to
952ee1b
Compare
The linter is not happy:
That's probably coming from a toolchain update. |
@saschagrunert Yeah, I haven't touched that code. Should I fix it anyway in this PR? |
Yes please, other PRs are affected by this as well. |
Btw, this lint is a false positive (or clippy is smart enough to detect that there is a non mutating alternative): async fn spawn_cleanup_process(raw_cmd: &mut Vec<String>) {
let mut cleanup_cmd = Command::new(raw_cmd.remove(0));
|
Signed-off-by: Martin Michaelis <code@mgjm.de>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, mgjm, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind other
What this PR does / why we need it:
Currently (if tracing is enabled) the
metadata
field gets filled with a JSON encoded string map, that contains tracing metadata.This PR changes this and uses capnp native maps and thereby eliminates the double encoding of JSON data inside of a capnp struct. Note that the proper way to implement maps in capnp is to use a
List
of string tuples.Changes:
metadata
field tometadataOld
metadata
field of typeList[StringStringMapEntry]
List
ofMapEntry
s and rust typesserde_json
from the server codecapnp_util.go
(slice and map encoding)Compatibility:
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Are those compatibility requirements acceptable?
Does this PR introduce a user-facing change?