title: owin Self-hosting web api new relic monitoring
body: <p>I just moved some of are web api from IIS web role to a worker role in Windows Azure and that is working way betting. What I want to know is how much better so, and before we using New Relic to monitor the web server. I have the agent installed on the worker roles but not getting any of the great analytics.</p>
  
  <p><a href="http://www.asp.net/web-api/overview/hosting-aspnet-web-api/host-aspnet-web-api-in-an-azure-worker-role" rel="nofollow noreferrer">(What I followed to make this work)</a></p>
  
  <p>So I was hoping someone could help me get some basic stats on how well my self-hosted web server is performing into new relic. I looking for throughput, response time, and log errors.</p>
  
  <p>I <a href="https://stackoverflow.com/questions/13490473/ignore-persistent-signalr-connections-in-new-relic">found something</a> that seems to make me think that I could do it but I am not familiar with owin. </p>
  
  <p>If anyone has some ideas on how to get this work that would great!</p>
  
  <p>Edit:
  What I am looking for is if someone can help me use the newrelic api ( RecordMetric(), RecordResponseTimeMetric(), IncrementCounter(), etc.) and hook it up in the owin pipeline to record throughput, response time, and log errors?</p>