<?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 name="AwsSdkPipelineWrapper">
      <match assemblyName="AWSSDK.Core" className="Amazon.Runtime.Internal.RuntimePipeline">
        <exactMethodMatcher methodName="InvokeSync" parameters="Amazon.Runtime.IExecutionContext" />
      </match>
      <match assemblyName="AWSSDK.Core" className="Amazon.Runtime.Internal.RuntimePipeline">
        <exactMethodMatcher methodName="InvokeAsync" parameters="Amazon.Runtime.IExecutionContext" />
      </match>
    </tracerFactory>
    <tracerFactory name="AmazonServiceClientWrapper">
      <!--
      https://github.com/aws/aws-sdk-net/blob/main/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs#L155
      protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
      -->
      <match assemblyName="AWSSDK.Core" className="Amazon.Runtime.AmazonServiceClient">
        <exactMethodMatcher methodName=".ctor" parameters="Amazon.Runtime.AWSCredentials,Amazon.Runtime.ClientConfig" />
      </match>
    </tracerFactory>
  </instrumentation>
</extension>
