Skip to content

Commit

Permalink
chore: Update Powertools dotnet6 template v1.7.0 (#450)
Browse files Browse the repository at this point in the history
* Update Powertools dotnet6 template

Update Powertools dotnet6 template with new versions from release 1.7.0

* AWSXRayRecorder needs to be updated as well

* reverting non powertools nuget updates

* remove xrayrecorder sdk dependency

* Update Function.cs Tracing example

* Update nuget versions

---------

Co-authored-by: Daniel Mil <84205762+mildaniel@users.noreply.github.com>
  • Loading branch information
hjgraca and mildaniel authored Sep 25, 2023
1 parent 2d151d9 commit 3cfed86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Amazon.Lambda.Core;
using Amazon.Lambda.APIGatewayEvents;
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Tracing"] == "enabled"%}
using Amazon.XRay.Recorder.Handlers.AwsSdk;
using AWS.Lambda.Powertools.Tracing;
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Metrics"] == "enabled"%}
Expand All @@ -29,7 +28,7 @@ public class Function
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Tracing"] == "enabled"%}
public Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
Tracing.RegisterForAllServices();
}
{%- endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.5.0" />
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Tracing"] == "enabled"%}
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.11.0" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.1.0" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.2" />
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Metrics"] == "enabled"%}
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.2.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.4.2" />
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Logging"] == "enabled"%}
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.1.0" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
{%- endif %}
</ItemGroup>
</Project>
Expand Down

0 comments on commit 3cfed86

Please sign in to comment.