You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We built a .NET 8 console app to run as an ECS task using native AOT deployment but it was throwing this exception when ran in ECS. We are using the X-Ray's default instance configuration.
To get it working, we had to exclude the X-Ray from the trimmer
.csproj
<ProjectSdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PublishAot>true</PublishAot>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<TrimMode>partial</TrimMode> <!-- needed to include this -->
</PropertyGroup>
<!-- needed to include this -->
<ItemGroup>
<TrimmerRootAssemblyInclude="Amazon.XRay.*" />
</ItemGroup>
</Project>
I tried to manually configure the sampling strategy in hope that it would get rid of the exception, but that didn't work
The text was updated successfully, but these errors were encountered:
We built a .NET 8 console app to run as an ECS task using native AOT deployment but it was throwing this exception when ran in ECS. We are using the X-Ray's default instance configuration.
To get it working, we had to exclude the X-Ray from the trimmer
.csproj
I tried to manually configure the sampling strategy in hope that it would get rid of the exception, but that didn't work
The text was updated successfully, but these errors were encountered: