Local Traffic Accounting Doc - #1460
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
| The Ledger API exposes a service to interact with traffic accounts, available when | ||
| `traffic-enforcement.enabled = true`. | ||
|
|
||
| - gRPC service: https://github.com/digital-asset/canton/blob/main/community/traffic-enforcement/api/protobuf/com/digitalasset/canton/tea/v1/traffic_service.proto |
There was a problem hiding this comment.
Will update to a link to the reference API in the doc itself when available
|
|
||
| - gRPC service: https://github.com/digital-asset/canton/blob/main/community/traffic-enforcement/api/protobuf/com/digitalasset/canton/tea/v1/traffic_service.proto | ||
|
|
||
| The same service is also available on the JSON API. |
|
For some reason the mermaid diagrams don't render in the preview 🤷♂️ |
| Accounting and enforcement are two separate switches, both disabled by default: | ||
|
|
||
| ```hocon | ||
| canton.participants.<participant_name>.traffic-enforcement { |
There was a problem hiding this comment.
I'm thinking to bite the bullet and change the root-level name of the config to traffic-accounting since it's still not a GA-level feature. Not impacting this PR of course
There was a problem hiding this comment.
Yeah good point. let's do it for 3.6. We can even cleanly deprecate it, it doesn't cost much more and avoid backwards compatibiliy discussion headaches, then we remove in 3.7
| } | ||
| ``` | ||
|
|
||
| When `enabled` is false, the `TrafficService` is not exposed on the Ledger API, no accounting is performed, and no |
There was a problem hiding this comment.
We didn't yet introduce the TrafficService. Can you introduce it briefly so clients don't need to interrupt the reading flow to search for it? Also, let's specify the HTTP endpoint as well (as that's actually what clients care about on LAPI): /traffic/accounts
tudor-da
left a comment
There was a problem hiding this comment.
lgtm, nice stuff @thibault-da !
No description provided.