Skip to content

Commit

Permalink
Temporarily remove XRay reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jeastham1993 committed Nov 15, 2023
1 parent d9312d6 commit 0bc0831
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 28 deletions.
4 changes: 0 additions & 4 deletions src/NET8Native/DeleteProduct/DeleteProduct.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.0" />
<PackageReference Include="AWSXRayRecorder.Core" Version="2.14.0" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -29,7 +27,5 @@

<ItemGroup>
<TrimmerRootAssembly Include="AWSSDK.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Handlers.AwsSdk" />
</ItemGroup>
</Project>
2 changes: 0 additions & 2 deletions src/NET8Native/DeleteProduct/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -23,7 +22,6 @@ public class Function
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))]
static Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
dataAccess = new DynamoDbProducts();
}

Expand Down
2 changes: 0 additions & 2 deletions src/NET8Native/GetProduct/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -25,7 +24,6 @@ public class Function
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))]
static Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
dataAccess = new DynamoDbProducts();
}

Expand Down
4 changes: 0 additions & 4 deletions src/NET8Native/GetProduct/GetProduct.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.0" />
<PackageReference Include="AWSXRayRecorder.Core" Version="2.14.0" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -28,7 +26,5 @@

<ItemGroup>
<TrimmerRootAssembly Include="AWSSDK.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Handlers.AwsSdk" />
</ItemGroup>
</Project>
2 changes: 0 additions & 2 deletions src/NET8Native/GetProducts/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -25,7 +24,6 @@ public class Function
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))]
static Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
dataAccess = new DynamoDbProducts();
}

Expand Down
4 changes: 0 additions & 4 deletions src/NET8Native/GetProducts/GetProducts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.0" />
<PackageReference Include="AWSXRayRecorder.Core" Version="2.14.0" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -28,7 +26,5 @@

<ItemGroup>
<TrimmerRootAssembly Include="AWSSDK.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Handlers.AwsSdk" />
</ItemGroup>
</Project>
2 changes: 0 additions & 2 deletions src/NET8Native/PutProduct/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -24,7 +23,6 @@ public class Function
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(APIGatewayHttpApiV2ProxyResponse))]
static Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
dataAccess = new DynamoDbProducts();
}

Expand Down
4 changes: 0 additions & 4 deletions src/NET8Native/PutProduct/PutProduct.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.0" />
<PackageReference Include="AWSXRayRecorder.Core" Version="2.14.0" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -29,7 +27,5 @@

<ItemGroup>
<TrimmerRootAssembly Include="AWSSDK.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Core" />
<TrimmerRootAssembly Include="AWSXRayRecorder.Handlers.AwsSdk" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/NET8Native/Shared/DataAccess/DynamoDbProducts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
9 changes: 6 additions & 3 deletions src/NET8Native/Shared/Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.300" />
<PackageReference Include="AWSXRayRecorder.Core" Version="2.14.0" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.300.1" />
</ItemGroup>

<ItemGroup>
<TrimmerRootAssembly Include="AWSSDK.Core" />
<TrimmerRootAssembly Include="AWSSDK.DynamoDBv2" />
</ItemGroup>

</Project>

0 comments on commit 0bc0831

Please sign in to comment.