Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Powertools dotnet6 template v1.7.0 #450

Merged
merged 7 commits into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"%}
@@ -29,7 +28,7 @@ public class Function
{%- if cookiecutter["Powertools for AWS Lambda (.NET) Tracing"] == "enabled"%}
public Function()
{
AWSSDKHandler.RegisterXRayForAllServices();
Tracing.RegisterForAllServices();
}
{%- endif %}

Original file line number Diff line number Diff line change
@@ -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>