Skip to content

Instantly share code, notes, and snippets.

@nicopaez
Created October 14, 2016 20:13
Show Gist options
  • Save nicopaez/9122075e1c68986bfe61a9585bcfcc37 to your computer and use it in GitHub Desktop.
Save nicopaez/9122075e1c68986bfe61a9585bcfcc37 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<extension xmlns="urn:newrelic-extension">
<instrumentation>
<!-- Define the method which triggers the creation of a transaction. -->
<tracerFactory name="NewRelic.Agent.Core.Tracer.Factories.BackgroundThreadTracerFactory" metricName="ProcessJobRuns">
<match assemblyName="Intelligize.FM.Jobs" className="Intelligize.FM.Jobs.JsonProcessingJob">
<exactMethodMatcher methodName="Run" />
</match>
</tracerFactory>
<!-- Instrument 0 or more methods called by the trigger method. These methods appear in the transaction breakdown table and in transaction traces. -->
<tracerFactory metricName="ProcessedMemos">
<match assemblyName="Intelligize.FM.Jobs" className="Intelligize.FM.Jobs.JsonProcessingJob">
<exactMethodMatcher methodName="Process" />
</match>
</tracerFactory>
<tracerFactory name="NewRelic.Agent.Core.Tracer.Factories.BackgroundThreadTracerFactory" metricName="DownloadJobRuns">
<match assemblyName="Intelligize.FM.Jobs" className="Intelligize.FM.Jobs.DocumentDownloaderJob">
<exactMethodMatcher methodName="Run" />
</match>
</tracerFactory>
<!-- Instrument 0 or more methods called by the trigger method. These methods appear in the transaction breakdown table and in transaction traces. -->
<tracerFactory metricName="DownloadedMemos">
<match assemblyName="Intelligize.FM.Jobs" className="Intelligize.FM.Jobs.DocumentDownloaderJob">
<exactMethodMatcher methodName="Process" />
</match>
</tracerFactory>
</instrumentation>
</extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment