forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 117
[r2r] update metrics related dep && refactoring #1312
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
fe04dfd
update metrics related dep
borngraced 6dde2f0
wasm don't mess up!
borngraced 39fac2a
wip
borngraced dad1905
wip
borngraced 81f0838
impl collect_json done
borngraced 0143dac
added collect_json test
borngraced 4aeeaa9
created new mm2_metrics crate and other wip impls
borngraced 526cee4
update wasm
borngraced 75a545a
rust fmt check
borngraced 06df12e
wip
borngraced 2fda9cd
MetricsArc && MetricsWeak
borngraced 942e5b9
wip
borngraced 3c274aa
wip
borngraced ae7829f
removed unused dep
borngraced a0f5908
Merge branch 'dev' of https://github.com/KomodoPlatform/atomicDEX-API…
borngraced a86bef9
refactoring
borngraced 23af3b8
removed unused deps
borngraced d540ad1
collect gauge from bits to u64
borngraced 4a0a05d
gauge now export u64
borngraced d277088
updated histogram and gauge
borngraced 584b91c
iteration
borngraced 3b1637d
reiteration
borngraced 8a75994
reiteration
borngraced 3ebb526
Iterations
borngraced 8da9de6
histogram, label macro and other improvements
borngraced 237c40e
Merge branch 'dev' of https://github.com/KomodoPlatform/atomicDEX-API…
borngraced 7228d1d
fixed conflicts
borngraced 64b1b7c
fix udeps, impl wasm for metrics and other iterations
borngraced 54dc712
code improvements
borngraced e433a83
improved TryRecorder for MetricsWeak
borngraced d505d50
renamed native to mm_metrics
borngraced 26e1fb9
fix cargo fmt
borngraced 51fa8f7
changed incompatible quanta dep --v
borngraced 83621b6
PR review fixes - 1
borngraced 569871f
PR Review fixes -2
borngraced 482babd
Fix WASM
borngraced 13c53a3
PR review fixes - wip
borngraced 12b8a1c
PR review fixes
borngraced 3ec0d88
Changes to error handling and unit tests
borngraced 7cf9cc0
Fixed test_collect_json test deltas
borngraced 63b5713
PR review fixes - 3
borngraced f81d62e
edited lp_commands_legacy
borngraced 4e813bb
PR review fix - last
borngraced c9544ff
Minor changes - r2r
borngraced 8a2e021
fix cargo clippy
borngraced decaae2
Merge branch 'dev' of https://github.com/KomodoPlatform/atomicDEX-API…
borngraced 914cfd0
final pr review changes
borngraced 9d16b20
Merge branch 'dev' of https://github.com/KomodoPlatform/atomicDEX-API…
borngraced 5797bc4
fixed build error
borngraced File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| [package] | ||
| name = "mm2_metrics" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
|
sergeyboyko0791 marked this conversation as resolved.
|
||
| base64 = "0.10.0" | ||
| common = { path = "../common" } | ||
| fomat-macros = "0.2" | ||
|
sergeyboyko0791 marked this conversation as resolved.
Outdated
|
||
| futures01 = { version = "0.1", package = "futures" } | ||
| futures = { version = "0.3", package = "futures", features = ["compat", "async-await", "thread-pool"] } | ||
| futures-cpupool = "0.1" | ||
| itertools = "0.10" | ||
| serde = "1" | ||
| serde_bytes = "0.11" | ||
| serde_derive = "1" | ||
| serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] } | ||
|
|
||
| [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
| gstuff = { version = "0.7", features = ["crossterm", "nightly"] } | ||
| hdrhistogram = { version = "7.0", default-features = false, features = ["sync"] } | ||
| hyper = { version = "0.14.11", features = ["client", "http2", "server", "tcp"] } | ||
| # using webpki-tokio to avoid rejecting valid certificates | ||
| # got "invalid certificate: UnknownIssuer" for https://ropsten.infura.io on iOS using default-features | ||
| hyper-rustls = { version = "0.23", default-features = false, features = ["http1", "http2", "webpki-tokio"] } | ||
| rand = { version = "0.7", features = ["std", "small_rng", "wasm-bindgen"] } | ||
| metrics = { version = "0.19" } | ||
| metrics-core = { version = "0.5" } | ||
| metrics-exporter-prometheus = "0.10.0" | ||
| metrics-util = { version = "0.13" } | ||
| metrics-runtime = { version = "0.13", default-features = false, features= ["metrics-observer-prometheus"]} | ||
|
|
||
| [target.'cfg(target_arch = "wasm32")'.dependencies] | ||
| chrono = { version = "0.4", features = ["wasmbind"] } | ||
| getrandom = { version = "0.2", features = ["js"] } # see https://docs.rs/getrandom/0.2.0/getrandom/#webassembly-support | ||
| gstuff = { version = "0.7", features = ["nightly"] } | ||
| js-sys = "0.3.27" | ||
| serde_repr = "0.1.6" | ||
| serde-wasm-bindgen = "0.4.3" | ||
| wasm-bindgen = { version = "0.2.50", features = ["nightly"] } | ||
| wasm-bindgen-futures = "0.4.21" | ||
| wasm-bindgen-test = { version = "0.3.2" } | ||
| web-sys = { version = "0.3.55", features = ["console", "CloseEvent", "DomException", "ErrorEvent", "IdbDatabase", "IdbCursor", "IdbCursorWithValue", "IdbFactory", "IdbIndex", "IdbIndexParameters", "IdbObjectStore", "IdbObjectStoreParameters", "IdbOpenDbRequest", "IdbKeyRange", "IdbTransaction", "IdbTransactionMode", "IdbVersionChangeEvent", "MessageEvent", "WebSocket"] } | ||
|
|
||
| [build-dependencies] | ||
| cc = "1.0" | ||
| fomat-macros = "0.3" | ||
| gstuff = { version = "0.7", features = ["nightly"] } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.