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

Is it possible to disable Diagnostics Tracing? #4470

Closed
kaiohenrique opened this issue May 19, 2022 · 2 comments
Closed

Is it possible to disable Diagnostics Tracing? #4470

kaiohenrique opened this issue May 19, 2022 · 2 comments

Comments

@kaiohenrique
Copy link

Is it possible to disable diagnostics tracing to workaround any possible overhead it could cause to our application?
image

@roji
Copy link
Member

roji commented May 24, 2022

@kaiohenrique which version of Npgsql are you using? Assuming it's a modern version (i.e. 6.0), the only use of event pipe should be via the event counters which Npgsql emits - but these should be very efficient and definitely have almost no overhead, especially if you haven't actually registered to receive them (e.g. with dotnet counters).

If you're using Npgsql 6.0 and aren't listening to event counters, can you submit a minimal code sample where you're seeing such an overhead?

@roji
Copy link
Member

roji commented Mar 9, 2023

Closing as no response was provided.

@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
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

No branches or pull requests

2 participants