File tree 10 files changed +18
-18
lines changed
AOT_Logging/src/AOT_Logging
AOT_Metrics/src/AOT_Metrics
AOT_Tracing/src/AOT_Tracing
BatchProcessing/src/HelloWorld
Idempotency/src/HelloWorld
ServerlessApi/src/LambdaPowertoolsAPI
10 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 20
20
<PackageReference Include =" Amazon.Lambda.RuntimeSupport" Version =" 1.10.0" />
21
21
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
22
22
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
23
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
23
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
24
24
</ItemGroup >
25
25
</Project >
Original file line number Diff line number Diff line change 20
20
<PackageReference Include =" Amazon.Lambda.RuntimeSupport" Version =" 1.10.0" />
21
21
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
22
22
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
23
- <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 1.7.1 " />
23
+ <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 2.0.0 " />
24
24
</ItemGroup >
25
25
</Project >
Original file line number Diff line number Diff line change 20
20
<PackageReference Include =" Amazon.Lambda.RuntimeSupport" Version =" 1.10.0" />
21
21
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
22
22
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
23
- <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.0 " />
23
+ <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.1 " />
24
24
</ItemGroup >
25
25
</Project >
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
9
9
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
10
10
<PackageReference Include =" AWS.Lambda.Powertools.BatchProcessing" Version =" 1.1.2" />
11
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
11
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
12
12
<PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 8.0.0" />
13
13
</ItemGroup >
14
14
</Project >
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
9
9
<PackageReference Include =" Amazon.Lambda.APIGatewayEvents" Version =" 2.7.0" />
10
10
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
11
- <PackageReference Include =" AWS.Lambda.Powertools.Idempotency" Version =" 1.2.2 " />
12
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
11
+ <PackageReference Include =" AWS.Lambda.Powertools.Idempotency" Version =" 1.3.0 " />
12
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
13
13
</ItemGroup >
14
14
</Project >
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
9
9
<PackageReference Include =" Amazon.Lambda.APIGatewayEvents" Version =" 2.7.0" />
10
10
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
11
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
11
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
12
12
<PackageReference Include =" AWSSDK.DynamoDBv2" Version =" 3.7.301.18" />
13
13
</ItemGroup >
14
14
</Project >
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ public async Task<APIGatewayProxyResponse> FunctionHandler(APIGatewayProxyReques
82
82
83
83
// Add Metric to capture the amount of time
84
84
Metrics . PushSingleMetric (
85
- metricName : "CallingIP" ,
85
+ name : "CallingIP" ,
86
86
value : 1 ,
87
87
unit : MetricUnit . Count ,
88
88
service : "lambda-powertools-metrics-example" ,
89
- defaultDimensions : new Dictionary < string , string >
89
+ dimensions : new Dictionary < string , string >
90
90
{
91
91
{ "Metric Type" , "Single" }
92
92
} ) ;
@@ -104,11 +104,11 @@ public async Task<APIGatewayProxyResponse> FunctionHandler(APIGatewayProxyReques
104
104
try
105
105
{
106
106
Metrics . PushSingleMetric (
107
- metricName : "RecordsSaved" ,
107
+ name : "RecordsSaved" ,
108
108
value : 1 ,
109
109
unit : MetricUnit . Count ,
110
110
service : "lambda-powertools-metrics-example" ,
111
- defaultDimensions : new Dictionary < string , string >
111
+ dimensions : new Dictionary < string , string >
112
112
{
113
113
{ "Metric Type" , "Single" }
114
114
} ) ;
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
9
9
<PackageReference Include =" Amazon.Lambda.APIGatewayEvents" Version =" 2.7.0" />
10
10
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
11
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
12
- <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 1.7.1 " />
11
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
12
+ <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 2.0.0 " />
13
13
<PackageReference Include =" AWSSDK.DynamoDBv2" Version =" 3.7.301.18" />
14
14
</ItemGroup >
15
15
</Project >
Original file line number Diff line number Diff line change 13
13
</PropertyGroup >
14
14
<ItemGroup >
15
15
<PackageReference Include =" Amazon.Lambda.AspNetCoreServer" Version =" 9.0.0" />
16
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
17
- <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 1.7.1 " />
18
- <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.0 " />
16
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
17
+ <PackageReference Include =" AWS.Lambda.Powertools.Metrics" Version =" 2.0.0 " />
18
+ <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.1 " />
19
19
</ItemGroup >
20
20
</Project >
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Amazon.Lambda.Core" Version =" 2.2.0" />
9
9
<PackageReference Include =" Amazon.Lambda.APIGatewayEvents" Version =" 2.7.0" />
10
10
<PackageReference Include =" Amazon.Lambda.Serialization.SystemTextJson" Version =" 2.4.3" />
11
- <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.3 " />
12
- <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.0 " />
11
+ <PackageReference Include =" AWS.Lambda.Powertools.Logging" Version =" 1.6.5 " />
12
+ <PackageReference Include =" AWS.Lambda.Powertools.Tracing" Version =" 1.6.1 " />
13
13
<PackageReference Include =" AWSSDK.DynamoDBv2" Version =" 3.7.301.18" />
14
14
</ItemGroup >
15
15
</Project >
You can’t perform that action at this time.
0 commit comments