I want to add MiniProfiler to a project with multiple domains servicing requests:
One of the best features of MiniProfiler is how AJAX calls show up, out of the box the above doesn't work. Does anyone have any suggestions on an approach / configuration I could use to enable MiniProfiler events from api.domain.com to show up on pages in application.domain.com?
It can be done, but would require some extra setup steps on your part:
MiniProfiler.Settings.Storage
to save to some storage medium (like a redis cache or sql server) that is accessible from all domains. That will allow all domains being profiled to save their results together.MiniProfiler.Current.User
to have the same value on all domains. The default behavior when retrieving results is to show all results for a specific user. So you want to make sure that profiles for the same user are being stored consistently across multiple domains.