Skip to content

Commit 68af7e1

Browse files
committed
add UA tracking
1 parent c64eccf commit 68af7e1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
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>
16-
<PackageReference Include="Amazon.Lambda.Core" />
17+
<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.Kafka/PowertoolsKafkaSerializerBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using System.Text.Json;
2222
using System.Text.Json.Serialization;
2323
using System.Text.Json.Serialization.Metadata;
24+
using AWS.Lambda.Powertools.Common;
2425

2526
namespace AWS.Lambda.Powertools.Kafka;
2627

@@ -83,6 +84,8 @@ protected PowertoolsKafkaSerializerBase(JsonSerializerOptions jsonOptions, JsonS
8384
{
8485
JsonOptions = jsonOptions ?? new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
8586
SerializerContext = serializerContext;
87+
88+
SystemWrapper.Instance.SetExecutionEnvironment(this);
8689
}
8790

8891
/// <summary>

0 commit comments

Comments
 (0)