From 0bc083101c291195c5bcff04c42a7167cc165e39 Mon Sep 17 00:00:00 2001 From: James Eastham Date: Wed, 15 Nov 2023 09:09:44 +0000 Subject: [PATCH] Temporarily remove XRay reference --- src/NET8Native/DeleteProduct/DeleteProduct.csproj | 4 ---- src/NET8Native/DeleteProduct/Function.cs | 2 -- src/NET8Native/GetProduct/Function.cs | 2 -- src/NET8Native/GetProduct/GetProduct.csproj | 4 ---- src/NET8Native/GetProducts/Function.cs | 2 -- src/NET8Native/GetProducts/GetProducts.csproj | 4 ---- src/NET8Native/PutProduct/Function.cs | 2 -- src/NET8Native/PutProduct/PutProduct.csproj | 4 ---- src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs | 2 +- src/NET8Native/Shared/Shared.csproj | 9 ++++++--- 10 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/NET8Native/DeleteProduct/DeleteProduct.csproj b/src/NET8Native/DeleteProduct/DeleteProduct.csproj index 83185e9..66dd8ea 100644 --- a/src/NET8Native/DeleteProduct/DeleteProduct.csproj +++ b/src/NET8Native/DeleteProduct/DeleteProduct.csproj @@ -19,8 +19,6 @@ - - @@ -29,7 +27,5 @@ - - diff --git a/src/NET8Native/DeleteProduct/Function.cs b/src/NET8Native/DeleteProduct/Function.cs index 262717b..0cdb3aa 100644 --- a/src/NET8Native/DeleteProduct/Function.cs +++ b/src/NET8Native/DeleteProduct/Function.cs @@ -10,7 +10,6 @@ using Amazon.Lambda.Core; using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; -using Amazon.XRay.Recorder.Handlers.AwsSdk; using Shared; using Shared.DataAccess; @@ -23,7 +22,6 @@ public class Function [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))] static Function() { - AWSSDKHandler.RegisterXRayForAllServices(); dataAccess = new DynamoDbProducts(); } diff --git a/src/NET8Native/GetProduct/Function.cs b/src/NET8Native/GetProduct/Function.cs index 63b773b..10dc684 100644 --- a/src/NET8Native/GetProduct/Function.cs +++ b/src/NET8Native/GetProduct/Function.cs @@ -10,7 +10,6 @@ using Amazon.Lambda.Core; using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; -using Amazon.XRay.Recorder.Handlers.AwsSdk; using Shared; using Shared.DataAccess; @@ -25,7 +24,6 @@ public class Function [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))] static Function() { - AWSSDKHandler.RegisterXRayForAllServices(); dataAccess = new DynamoDbProducts(); } diff --git a/src/NET8Native/GetProduct/GetProduct.csproj b/src/NET8Native/GetProduct/GetProduct.csproj index 867094c..96e57d8 100644 --- a/src/NET8Native/GetProduct/GetProduct.csproj +++ b/src/NET8Native/GetProduct/GetProduct.csproj @@ -18,8 +18,6 @@ - - @@ -28,7 +26,5 @@ - - diff --git a/src/NET8Native/GetProducts/Function.cs b/src/NET8Native/GetProducts/Function.cs index 244df03..8e025c7 100644 --- a/src/NET8Native/GetProducts/Function.cs +++ b/src/NET8Native/GetProducts/Function.cs @@ -10,7 +10,6 @@ using Amazon.Lambda.Core; using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; -using Amazon.XRay.Recorder.Handlers.AwsSdk; using Shared; using Shared.DataAccess; @@ -25,7 +24,6 @@ public class Function [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))] static Function() { - AWSSDKHandler.RegisterXRayForAllServices(); dataAccess = new DynamoDbProducts(); } diff --git a/src/NET8Native/GetProducts/GetProducts.csproj b/src/NET8Native/GetProducts/GetProducts.csproj index 867094c..96e57d8 100644 --- a/src/NET8Native/GetProducts/GetProducts.csproj +++ b/src/NET8Native/GetProducts/GetProducts.csproj @@ -18,8 +18,6 @@ - - @@ -28,7 +26,5 @@ - - diff --git a/src/NET8Native/PutProduct/Function.cs b/src/NET8Native/PutProduct/Function.cs index 187f6c6..e2edccf 100644 --- a/src/NET8Native/PutProduct/Function.cs +++ b/src/NET8Native/PutProduct/Function.cs @@ -10,7 +10,6 @@ using Amazon.Lambda.Core; using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; -using Amazon.XRay.Recorder.Handlers.AwsSdk; using Shared; using Shared.DataAccess; using Shared.Models; @@ -24,7 +23,6 @@ public class Function [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))] static Function() { - AWSSDKHandler.RegisterXRayForAllServices(); dataAccess = new DynamoDbProducts(); } diff --git a/src/NET8Native/PutProduct/PutProduct.csproj b/src/NET8Native/PutProduct/PutProduct.csproj index 83185e9..66dd8ea 100644 --- a/src/NET8Native/PutProduct/PutProduct.csproj +++ b/src/NET8Native/PutProduct/PutProduct.csproj @@ -19,8 +19,6 @@ - - @@ -29,7 +27,5 @@ - - diff --git a/src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs b/src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs index 21e801b..9920a57 100644 --- a/src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs +++ b/src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs @@ -12,7 +12,7 @@ public class DynamoDbProducts : ProductsDAO { private static readonly string PRODUCT_TABLE_NAME = Environment.GetEnvironmentVariable("PRODUCT_TABLE_NAME") ?? string.Empty; private readonly AmazonDynamoDBClient _dynamoDbClient; - + [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(DynamoDbProducts))] public DynamoDbProducts() { diff --git a/src/NET8Native/Shared/Shared.csproj b/src/NET8Native/Shared/Shared.csproj index a6ed823..2d9e54c 100644 --- a/src/NET8Native/Shared/Shared.csproj +++ b/src/NET8Native/Shared/Shared.csproj @@ -19,9 +19,12 @@ - - - + + + + + +