I am building a multi-tenant SaaS (completely shared infrastructure compute and database) in Azure with Azure SQL database and I want to know specifically what each of the databases calls that occur for each tenant costs.
How can I track this in C# code?
With Azure Cosmos DB I know I can track by request unit charge which I get returned to my code. I want something similar for the SQL database so I can store this data in Azure Table storage.
I am using Entity Framework Core.