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

Logging query execution time with logger provider #2576

Closed
severisv opened this issue Aug 19, 2019 · 4 comments
Closed

Logging query execution time with logger provider #2576

severisv opened this issue Aug 19, 2019 · 4 comments

Comments

@severisv
Copy link

I created a logger provider to log queries like described in the docs, which outputs the executed queries. Works great!

Is there some way I can also log the time it takes run the queries?

@roji roji added this to the Backlog milestone Aug 19, 2019
@roji
Copy link
Member

roji commented Aug 19, 2019

Not at the moment... Npgsql doesn't internally keep track of that information.

Note that #1725 adds DiagnosticListener events for command start/stop, which should make it possible to also track execution times, but that's a different system from logging.

I will keep this open in the backlog to consider adding this.

@t-josing
Copy link

t-josing commented Jun 6, 2020

@roji Is it Available now ?

@roji
Copy link
Member

roji commented Jun 6, 2020

@t-josing not yet... we haven't gotten around to doing it.

@vonzshik
Copy link
Contributor

vonzshik commented Apr 4, 2021

Duplicate of #2282

@vonzshik vonzshik marked this as a duplicate of #2282 Apr 4, 2021
@vonzshik vonzshik closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants