Commit a92cfc0
authored
## Motivation
Currently we have one `tracing` entrypoint in `linera-base` to be split
between our various tracing implementations. This entrypoint has a
different implementation for each of our three supported platforms
(`unix`, `web`, and Linera), which makes the conditional compilation
quite complicated.
## Proposal
Instead, move the two present implementations onto target-specific
codepaths (native to `linera-service`, which currently functions as a
catch-all crate for all our Linera UNIX binaries, and Web to
`linera-web`).
`linera-summary` now doesn't use this, but doesn't really need to (it's
a CI tool). It would be nice in the future to split out CLI utilities
like input/output formats from `linera-service` into a crate that can be
reüsed, and split `linera-service` into different crates that depend on
that.
## Test Plan
CI. The existing test has been ported to the new structure.
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
## Links
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent c512e52 commit a92cfc0
23 files changed
Lines changed: 137 additions & 434 deletions
File tree
- .github/workflows
- docker
- examples
- linera-base
- src
- linera-sdk/tests/fixtures
- linera-service
- src
- cli
- exporter
- proxy
- tracing
- tests
- linera-summary
- src
- web/@linera/client
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | | - | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 82 | | |
91 | 83 | | |
92 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
0 commit comments