<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 New Relic Corporation. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
<extension xmlns="urn:newrelic-extension">
	<instrumentation>

		<tracerFactory>
			<match assemblyName="System.Web.Mvc" className="System.Web.Mvc.ControllerActionInvoker">
				<exactMethodMatcher methodName="InvokeAction" />
			</match>
		</tracerFactory>

		<tracerFactory>
			<match assemblyName="System.Web.Mvc" className="System.Web.Mvc.Async.AsyncControllerActionInvoker">
				<exactMethodMatcher methodName="BeginInvokeAction" />
			</match>
		</tracerFactory>

		<tracerFactory>
			<match assemblyName="System.Web.Mvc" className="System.Web.Mvc.Async.AsyncControllerActionInvoker">
				<exactMethodMatcher methodName="EndInvokeAction" />
			</match>
		</tracerFactory>

		<tracerFactory>
			<match assemblyName="System.Web.Mvc" className="System.Web.Mvc.ControllerActionInvoker">
				<exactMethodMatcher methodName="InvokeExceptionFilters" />
			</match>
		</tracerFactory>

    <tracerFactory name="HandleUnknownActionWrapper">
      <match assemblyName="System.Web.Mvc" className="System.Web.Mvc.Controller">
        <exactMethodMatcher methodName="HandleUnknownAction" />
      </match>
    </tracerFactory>

    <tracerFactory name="GetControllerInstanceWrapper">
      <match assemblyName="System.Web.Mvc" className="System.Web.Mvc.DefaultControllerFactory">
        <exactMethodMatcher methodName="GetControllerInstance" />
      </match>
    </tracerFactory>
    
	</instrumentation>
</extension>
