I am try for Non IIS application (Nancy, c# (Windows service)) with New Relic but i am not able to see the data. i am sharing the code and configuration below can you please tell me where i am doing wrong.
Module : Before += ctx =>
{
var routeDescription = ctx.ResolvedRoute.Description;
try
{
NewRelicAgent.SetTransactionName("Custom", string.Format("{0} {1}", routeDescription.Method, routeDescription.Path));
}
catch (Exception ex)
{
NewRelicAgent.NoticeError(ex);
}
return null;
};
newRelicConfig:-
<?xml version="1.0"?>
</service
<log level=“info” auditLog=“false” console=“false”
directory=“C:\PROGRAMDATA\New Relic.NET Agent\Logs” fileName=“newrelic.log” /
<instrumentation
<applications
<application name=“ProviderSearchConsole.exe”
</application
</applications
</instrumentation
<transactionTracer enabled=“true” transactionThreshold=“apdex_f” stackTraceThreshold=“500” recordSql=“obfuscated” explainEnabled=“true” explainThreshold=“500” /
<crossApplicationTracer enabled=“true” /
<errorCollector enabled=“true”
<ignoreErrors
System.IO.FileNotFoundException</exception
System.Threading.ThreadAbortException</exception
</ignoreErrors
<ignoreStatusCodes
401</code
404</code
</ignoreStatusCodes
</errorCollector
<browserMonitoring autoInstrument=“true” /
<threadProfiling
System.Threading.WaitHandle:InternalWaitOne</ignoreMethod
System.Threading.WaitHandle:WaitAny</ignoreMethod
</threadProfiling
</configuration
appconfig:-
‘’<add key=“NewRelic.AgentEnabled” value=“true”
<add key=“NewRelic.AppName” value=“ProviderSearchConsole”
<add key=“NewRelic.LicenseKey” value= redacted
CustomInstrument.xml
<extension xmlns=“urn:newrelic-extension”
<instrumentation
<tracerFactory
<match assemblyName=
“Nancy” className=“Nancy.NancyEngine”
<exactMethodMatcher methodName=“HandleRequest” /
</match
</tracerFactory
</extension