2016-07-07

Cross-posted on the MiniProfiler community.

I'm trying to throw MiniProfiler into my current stack. I think I'm mostly setup, but am missing the UI approach and would like recommendations on the best way to proceed.

Current Stack

SQL for DB (including MiniProfiler tables)

EF 6

WebAPI 2 API app

Angular 1.x. app for the UI (separate app, no MVC backing it) -- I think it's 1.5.x at this point.

So, the current method of RenderIncludes() isn't available to me.

What's the best method to include the JS files and set them up to retrieve the information from the SQL Server storage? I know that the files are included in the UI repo, but I didn't see docs for explicit configuration.

What I've Tried So Far -- Web API App

Installed the MiniProfiler and MiniProfiler.EF6 packages.

Web.Config -- Added Handler

(not sure if this is necessary):

Added a CORS filter to expose the MiniProfiler IDs to my client app:

Add that filter as part of startup:

In Global.asax, added to Application_Start():

Update the begin/end requests:

What I've tried so far -- client (Angular) App

Snagged the UI files from the Github Repo

Copied the UI directory to my project's output

Reference the CSS:

Call the JavaScript

Current Status

When I do these things, it looks like it just can't find the appropriate WebAPI controller to render the result. If I can figure out where that controller is or replicate it (as I'm attempting to do currently) I think I'll be in business.

Show more