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

feat: PT-3542 Add api call count metrics #718

Closed
wants to merge 1 commit into from
Closed

Conversation

sanufriev
Copy link
Contributor

No description provided.

@sanufriev sanufriev requested a review from a team as a code owner August 7, 2023 14:28
@@ -23,6 +22,17 @@ class ForeignOrderMetrics(
registerLatestOrderGauge()
}

fun onCallForeignOrderApi(platform: Platform, status: ApiCallStatus) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add some operationId/uri here? This counter may be helpful in general to track external requests, but if specify only platform and no operationId it is less helpful

@@ -68,8 +72,14 @@ class LooksrareOrderService(

while (retries.get() < properties.retry) {
when (val result = looksrareClient.getOrders(request)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It is probably better to make a wrapper for looksrareClient like we do for ethereum client. the same for x2y2. It will allow to not miss metrics if the client is used somewhere else

@rarible-ci rarible-ci deleted the branch release/1.56 August 15, 2023 14:48
@rarible-ci rarible-ci closed this Aug 15, 2023
@sanufriev sanufriev deleted the PT-3542 branch August 23, 2023 08:09
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.

4 participants