Skip to content

Feat(dashpay): log event timing for platform functions (NMA-1249) - #928

Merged
HashEngineering merged 9 commits into
dashpayfrom
feature-dashpay-log-event-timing
Apr 13, 2022
Merged

HashEngineering merged 9 commits into
dashpayfrom
feature-dashpay-log-event-timing

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Apr 8, 2022 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Related PR's and Dependencies

dashpay/dapi-client-android#41

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@HashEngineering
HashEngineering requested a review from Syn-McJ April 8, 2022 19:38
@HashEngineering HashEngineering self-assigned this Apr 8, 2022
@HashEngineering HashEngineering changed the title Feat(dashpay): log event timing for platform functions Feat(dashpay): log event timing for platform functions (NMA-1249) Apr 8, 2022

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, one small suggestion.

timerUsernameSearch?.logTiming(
Pair("resultCount", resultSize),
Pair("searchCount", searchTextSize)
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if it's not better to use a map, like this:

timer.logTiming(
    mapOf(
        "resultCount" to resultSize,
        "searchCount" to searchTextSize
    )
)

Then in the logTiming you can have forEach { (key, value) -> } which is more verbose than it.first, it.second

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks I will make this change because a map seems easier to work with than varargs.

@HashEngineering
HashEngineering merged commit 16cf98c into dashpay Apr 13, 2022
@HashEngineering
HashEngineering deleted the feature-dashpay-log-event-timing branch June 21, 2022 14:52
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.

2 participants