Skip to content
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

[r2r] update metrics related dep && refactoring #1312

Merged
merged 49 commits into from
Aug 10, 2022

Conversation

borngraced
Copy link
Member

@borngraced borngraced commented Jun 15, 2022

— Updating metrics related deps
— Refactoring mm_metrics

@borngraced borngraced changed the title update metrics related dep [WIP] update metrics related dep Jun 16, 2022
@borngraced borngraced marked this pull request as draft June 17, 2022 21:25
@borngraced borngraced marked this pull request as ready for review June 20, 2022 10:25
@borngraced
Copy link
Member Author

borngraced commented Jun 20, 2022

My refactoring to look for review is work in progress in adapt.rs file @sergeyboyko0791 @shamardy

@borngraced borngraced changed the title [WIP] update metrics related dep [WIP] update metrics related dep && refactoring Jun 20, 2022
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be great if we moved mm_metrics to a separate crate like mm2_err_handle.

mm2src/common/Cargo.toml Outdated Show resolved Hide resolved
mm2src/common/Cargo.toml Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
mm2src/common/mm_metrics/adapt.rs Outdated Show resolved Hide resolved
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next review iteration :)

mm2src/mm2_metrics/Cargo.toml Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not describe all the mistakes. I'll do it on the next review iteration.

mm2src/coins/Cargo.toml Outdated Show resolved Hide resolved
mm2src/mm2_main/Cargo.toml Outdated Show resolved Hide resolved
mm2src/mm2_main/src/lp_ordermatch.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/adapt.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
@borngraced
Copy link
Member Author

Looking good except the tag exporter, I need a better solution as the solution I tried isn't working well

https://github.com/KomodoPlatform/atomicDEX-API/pull/1312#discussion_r906242654

@borngraced borngraced changed the title [WIP] update metrics related dep && refactoring [r2r] update metrics related dep && refactoring Jun 29, 2022
@borngraced borngraced linked an issue Jun 29, 2022 that may be closed by this pull request
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fixes! I hope the last my comments

mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One important note

mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last review iteration

mm2src/coins/Cargo.toml Outdated Show resolved Hide resolved
mm2src/mm2_main/src/lp_network.rs Show resolved Hide resolved
mm2src/mm2_metrics/Cargo.toml Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/lib.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
@borngraced borngraced changed the title [wip] update metrics related dep && refactoring [r2r] update metrics related dep && refactoring Aug 1, 2022
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one change please and one suggestion

@@ -154,20 +153,16 @@ impl MmRecorder {
}
}

use std::collections::hash_map::Entry::{Occupied, Vacant};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to put imports at the beginning of the file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

mm2src/mm2_metrics/src/recorder.rs Outdated Show resolved Hide resolved
sergeyboyko0791
sergeyboyko0791 previously approved these changes Aug 4, 2022
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@sergeyboyko0791
Copy link

@shamardy your turn to review the PR

shamardy
shamardy previously approved these changes Aug 4, 2022
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Work! Only 2 non-blocker comments :)

mm2src/mm2_main/src/lp_network.rs Outdated Show resolved Hide resolved
mm2src/mm2_metrics/src/mm_metrics.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reapprove

Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approve

@artemii235
Copy link
Member

@sergeyboyko0791 As you both approved it with @shamardy, I guess it can be merged.

@sergeyboyko0791
Copy link

@artemii235 I wanted to merge it, but found an issue with the CI tests on Mac. Restarted the CI and forgot to check...
Will check now

@artemii235
Copy link
Member

@sergeyboyko0791 If you see errors only on one platform and there are only unstable tests failures, you can merge the PR right away without restarting the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update metrics related deps.
4 participants