Bastian Köcher
129c9ed09e
Remove the last bits of unknown_os in the code base ( #9718 )
...
* Remove the last bits of unknown_os in the code base
* Fmt
2021-09-09 11:17:16 +02:00
Tomasz Drwięga
d722c44248
Better RPC prometheus metrics. ( #9358 )
...
* Better RPC prometehus metrics.
* Add session metrics.
* Add counting requests as well.
* Fix type for web build.
* Fix browser-node
* Filter out unknown method names.
* Change Gauge to Counters
* Use micros instead of millis.
* cargo fmt
* Update client/rpc-servers/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* move log to separate lines.
* Fix compilation.
* cargo +nightly fmt --all
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-24 10:48:23 +00:00
Bastian Köcher
c44aba89e6
Upgrade jsonrpc to 0.18.0 ( #9547 )
...
* Upgrade jsonrpc to 0.18.0
I think this says all :P
* 🤦
* Fmt etc
* Fix tests
* Fix tests again...
* Better impl
* Revert "Tell dependabot to ignore jsonrpc-* updates (#9518 )"
This reverts commit 6e0cd5587d .
2021-08-13 06:46:07 +00:00
Bastian Köcher
7b56ab15b4
Run cargo fmt on the whole code base ( #9394 )
...
* Run cargo fmt on the whole code base
* Second run
* Add CI check
* Fix compilation
* More unnecessary braces
* Handle weights
* Use --all
* Use correct attributes...
* Fix UI tests
* AHHHHHHHHH
* 🤦
* Docs
* Fix compilation
* 🤷
* Please stop
* 🤦 x 2
* More
* make rustfmt.toml consistent with polkadot
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-07-21 14:32:32 +00:00
Bastian Köcher
e3e651f72c
Happy new year ( #7814 )
...
* Happy new year
Updates the copyright years and fixes wrong license headers.
* Fix the template
* Split HEADER into HEADER-APACHE & HEADER-GPL
2021-01-04 09:03:13 +00:00
Bastian Köcher
4f97481da7
Remove RpcMetrics weirdness ( #7608 )
...
* Remove `RpcMetrics` weirdness
The metrics was returning an error when prometheus was not given. This
was a really weird setup, especially when compared to all other metrics
that just do nothing if there is no registry.
* Fix browser build
2020-11-27 10:24:34 +01:00
Anton Gavrilov
2c5a82f8f1
Prometheus metrics for RPC calls ( #7088 )
...
* WS and HTTP middlewares added
* Prometheus endpoint added
* Counters renamed
* Proper style for inc
* Metrics initialization re-written
* Rework to handler middleware
* Introduce transport prefix for metrics
* String shortened
* Commented code removed, new line inserted
* One more string shortened
* Wasm build fixed
* Wasm build fixed once again
* Rework to shared metrics
* Added collectors label
* Tilde removed from cargo
* Switch to owned metrics in parameters
2020-09-18 15:15:19 +02:00