This is the API schema for the Specta RPC. The schema here describes how RPC calls are shaped and function using Protocol Buffer definitions. Having a unified abstraction helps us to generate client and server code across different languages so that we remain mostly independent of transport layer specifics.
Specta follows a simple Data Model for unifying distributed observations as if they occured in one place. The following methods are supported.
- Counter, the given value increments the relative representation of the underlying metric.
- Gauge, the given value defines the absolute representation of the underlying metric.
- Histogram, the given value expands the bucketed representation of the underlying metric.
All RPCs implement a hard limit on the maximum amount of actions that can be processed within the same request. Specifically no more than 100 actions can be received on any given endpoint in a single call.
Merging changes into the main branch triggers several Github Actions to auto
generate code for different programming languages. Once the package that you are
interested in is synchronized, you can import your updated dependency.
.github/workflows/pbf-go.yamlupdates https://github.com/0xSplits/spectagocode.github/workflows/pbf-ts.yamlupdates https://github.com/0xSplits/spectatscode
You need to install the Clang Formatter on your system in order to format the
.proto files properly. If you are using VS Code you can also install the VS
Code Extension and format files on save.
brew install clang-formatclang-format -i $(find ./pbf -name "*.proto")