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

Sub-query time elapsed logging #48

Merged
merged 3 commits into from
Mar 15, 2022
Merged

Sub-query time elapsed logging #48

merged 3 commits into from
Mar 15, 2022

Conversation

tokebe
Copy link
Member

@tokebe tokebe commented Mar 14, 2022

(addresses biothings/biothings_explorer#425)

Adds timing to queries, so query success logs read like this:

"call-apis: Successful POST https://automat.renci.org/pharos/1.2 (7 IDs): Gene > activity_increased_by > SmallMolecule (obtained 0 records, took 140ms)"

And when all queries complete for a qEdge, the log now reflects the actual time elapsed for all queries for the qEdge:

call-apis: qEdge queries complete in 849ms

Units switch from milliseconds to seconds when appropriate.

@tokebe
Copy link
Member Author

tokebe commented Mar 14, 2022

Note that this PR bases from #47 and thus requires it to be merged first.

@colleenXu
Copy link
Contributor

Did a quick query with this PR. logs look good to me, useful.

@tokebe
Copy link
Member Author

tokebe commented Mar 15, 2022

(force push to rebase on main post-merge of #47)

@tokebe tokebe merged commit 78e9c27 into main Mar 15, 2022
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