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

chore: Logs peer & graph API response times #362

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

LautaroPetaccio
Copy link
Contributor

@LautaroPetaccio LautaroPetaccio commented Nov 22, 2021

This PR logs the peer and graph API response times.

@coveralls
Copy link

coveralls commented Nov 22, 2021

Pull Request Test Coverage Report for Build 1494763032

  • 20 of 37 (54.05%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.05%) to 63.618%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/AssetPack/AssetPack.router.ts 5 7 71.43%
src/ethereum/api/peer.ts 3 8 37.5%
src/ethereum/api/collection.ts 4 14 28.57%
Files with Coverage Reduction New Missed Lines %
src/ethereum/api/peer.ts 2 29.73%
Totals Coverage Status
Change from base Build 1482120728: -0.05%
Covered Lines: 1730
Relevant Lines: 2577

💛 - Coveralls

@LautaroPetaccio LautaroPetaccio changed the title chore: Log peer API response times chore: Logs peer & graph API response times Nov 22, 2021
Copy link
Contributor

@nicosantangelo nicosantangelo left a comment

Choose a reason for hiding this comment

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

Minor comment


constructor(url: string) {
super(url)
this.logger = createConsoleLogComponent().getLogger('GraphAPI')
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's worth it to call it CollectionsGraphAPI ? or are we trying to group all graph api logs?

I say this because we also have third parties :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! Renamed.

@nachomazzara nachomazzara merged commit 6dd368c into master Nov 23, 2021
@nachomazzara nachomazzara deleted the chore/log-peer-api-response-times branch November 23, 2021 13:41
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.

None yet

4 participants