Skip to content

Commit cbbe17a

Browse files
authored
Merge pull request #917 from aws-powertools/chore/missing-ua
chore: add missing UA to event handler and bedrock agents
2 parents 3660b0a + f2c4766 commit cbbe17a

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

libraries/src/AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction/AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111
<RunAOTCompilation>true</RunAOTCompilation>
12+
<IncludeCommonFiles>true</IncludeCommonFiles>
1213
</PropertyGroup>
1314

1415
<ItemGroup>
1516
<PackageReference Include="Amazon.Lambda.Core"/>
1617
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
18+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
1719
</ItemGroup>
1820

1921
</Project>

libraries/src/AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction/BedrockAgentFunctionResolver.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
using System.Text.Json.Serialization.Metadata;
1717
using Amazon.Lambda.Core;
18+
using AWS.Lambda.Powertools.Common;
1819
using AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction.Models;
1920
using AWS.Lambda.Powertools.EventHandler.Resolvers.BedrockAgentFunction.Helpers;
2021

@@ -54,6 +55,7 @@ private readonly
5455
public BedrockAgentFunctionResolver(IJsonTypeInfoResolver? typeResolver = null)
5556
{
5657
_parameterMapper = new ParameterMapper(typeResolver);
58+
SystemWrapper.Instance.SetExecutionEnvironment(this);
5759
}
5860

5961
/// <summary>

libraries/src/AWS.Lambda.Powertools.EventHandler/AWS.Lambda.Powertools.EventHandler.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
<TargetMultiFramework>false</TargetMultiFramework>
1111
<ImplicitUsings>enable</ImplicitUsings>
1212
<Nullable>enable</Nullable>
13+
<IncludeCommonFiles>true</IncludeCommonFiles>
1314
</PropertyGroup>
1415

1516
<ItemGroup>
1617
<PackageReference Include="Amazon.Lambda.Core" />
18+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
1719
</ItemGroup>
1820

1921
</Project>

libraries/src/AWS.Lambda.Powertools.EventHandler/AppSyncEvents/AppSyncEventsResolver.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Amazon.Lambda.Core;
2+
using AWS.Lambda.Powertools.Common;
23
using AWS.Lambda.Powertools.EventHandler.Internal;
34

45
namespace AWS.Lambda.Powertools.EventHandler.AppSyncEvents;
@@ -20,6 +21,7 @@ public AppSyncEventsResolver()
2021
{
2122
_publishRoutes = new RouteHandlerRegistry<AppSyncEventsRequest, object>();
2223
_subscribeRoutes = new RouteHandlerRegistry<AppSyncEventsRequest, bool>();
24+
SystemWrapper.Instance.SetExecutionEnvironment(this);
2325
}
2426

2527
#region OnPublish Methods

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"Parameters": "1.3.1",
1010
"Idempotency": "1.3.0",
1111
"BatchProcessing": "1.2.1",
12-
"EventHandler": "1.0.0",
13-
"EventHandler.Resolvers.BedrockAgentFunction": "1.0.0",
12+
"EventHandler": "1.0.1",
13+
"EventHandler.Resolvers.BedrockAgentFunction": "1.0.1",
1414
"Kafka.Json" : "1.0.1",
1515
"Kafka.Avro" : "1.0.1",
1616
"Kafka.Protobuf" : "1.0.1"

0 commit comments

Comments
 (0)