In .Net framework I use MiniProfiler for MySql connection command logging. In my current AspNetCore solution MiniProfiler doesn't show sql commands as well. What MiniProfiler options I should be using to log it?
MiniProfiler for AspNetCore MySql connection
349 views Asked by Valery Yegorov At
2
There are 2 answers
0
usvd
On
Thanks, It is not for Entity Framework, but solution is using MiniProfiler to profile MySQL Server. And the connection is wrap as following:
public DbConnection GetConnection()
{
DbConnection connection = new System.Data.SqlClient.SqlConnection("...");
return new StackExchange.Profiling.Data.ProfiledDbConnection(connection, MiniProfiler.Current);
}
But this does not help, as it does not capture actual SQL command with the parameter list. Please suggest if any additional options need to be configured.
Related Questions in MYSQL
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- window.location.href redirects but is causing problems on the webpage
- Error: local variable 'bramka' referenced before assignment
- Products aren't displayed after fetching data from mysql db (node.js & express)
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- Can't Fix Mariadb & Mysql ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2) On MacOs
- Express Mysql getting max ID from table not working cought in a promise
- failed to upload a table from sql file
- Update a MySQL row depending on the ID in Google Sheets Apps Script
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- How to display the column names which have only unique non-null values in MySQL table?
- mysql query takes too long because of wrong indexes usage
- Multitable joining in Sql
Related Questions in ASP.NET-CORE
- Windows environment variables at appsettings.json
- Which approach is right while creating a service for your update method?
- New Blazor Web App, Password Reset "A valid antiforgery token was not provided"
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- how to get the html for a tag helper in code
- How to share authorization implemented in the server project with the client project in Blazor Web App Auto project?
- Why https is disabled on publish in .NET Core 7.0
- How to set language in a server-side rendering blazor app
- How can I debug server side rendering blazor code in a component?
- ASP.NET Core 6 randomly returning 200 with empty response
- ASP.NET Core MVC : NullReferenceException: Object reference not set to an instance of an object
- ASP.NET Core Identity Custom Register Endpoint
- VS Community 2022 cannot install dotnet-ef when i try to publish
- How does ASP.NET Core Identity ensure username is unique under concurrent conditions?
- In clean architecture, is the presentation layer allowed to communicate directly with the infrastructure layer?
Related Questions in LOGGING
- ModuleNotFoundError: No module named 'src' while importing logging
- How to get domains in Shadowsocks server log with Shadowsocks Android
- How to enable log to console Cosmos Client SDK requests
- pino-pretty logging special characters as literal
- unable to serialize JSON type logs In fluentd(logging-operator)
- How to configure different loggers separately in structlog?
- detect catalina.out log path from a running tomcat on non-Windows
- apache2 rotatelogs creates log file but its empty when deployed to azure web app
- Ubuntu:24.04 Container generating excessive logs
- Transform Load pipeline for a logs system: Apache Airflow or Kafka Connect?
- Deisred log is not rotating
- Purpose of setting debug="false" in log4j at configuration level
- RobotFramework hangs after xx lines of log
- logging in multiprocess writes to same log
- Masking in logback.xml with all request and responses
Related Questions in SQL-SERVER-PROFILER
- List of tables and columns used by SSRS Reports
- SQL Server Profiler 2012 Always has "master" listed under DatabaseName
- EF Core query is extremely slow. How do I improve it?
- How to programatically update SQL Server Profiler template
- xevent profiler sql server don't show the same as sql server profiler
- Using SQL Profiler on an Azure Dedicated SQL Pool using Azure Data Studio
- SqlException: The INSERT permission was denied on the object '', database '', schema 'dbo'
- SQL Server Profiler text data gets truncated
- Why is Azure Data Studio Profiler not capturing stored procedures with large input data?
- How to change or avoid default value in SQL-Profiler call? | SQL Profiler | SQL Server
- Stop SQL Tracing
- What is the duration measured in XEvent Profiler?
- SQL Server Profiler find stored procedure
- Problem in accessing name of database in SQL Server Profiler
- SSRS report parameters not being passed through, work fine when hard coded
Related Questions in MINIPROFILER
- How to clean up Miniprofiler old data?
- ASP.NET Core Web API : application restriction for MiniProfiler screens if user has no admin roles
- .Net Core Identity running same requests about Identity tables(AspNetUsers, AspNetUserClaims, AspNetRoles, AspNetRoleClaims) on any request
- Store MiniProfiler results in PostgreSQL
- Show all the timings with MiniProfiler
- MiniProfiler not disposing Timings
- MiniProfiler dynamic response handling in .NET 6
- MiniProfiler and EF Core 3
- MiniProfiler .Ignore() extension method does not disable profiling
- Umbraco 7 - Disable miniprofiler
- InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'
- MiniProfiler ASP.NET MVC5 not able to get results
- Mini-profiler does not show any statistics on sql queries?
- Getting "Not Found" error with mini profiler in ASP.NET Core with EF .net 5
- MiniProfiler ASP.NET Core - ShouldProfile based on user role
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If you're using Entity Framework Core, you need to:
Startup.cs, callAddEntityFramework():Source: MiniProfiler documentation