-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Describe the bug
When a .Net Core application is published with trimming enabled, the telemetry messages sent to the Raygun api only contain the OccurredOn timestamp. No other data is sent.
The Raw Data tab in the Raygun dashboard shows the following was received:
{
"OccurredOn": "2025-08-07T23:12:23.8553019Z"
}
To Reproduce
Steps to reproduce the behavior:
- Create a new .Net console application
dotnet new console - Add the Raygun Nuget package
dotnet package add Mindscape.Raygun4Net.NetCore - Add the following lines to the Program.cs
using Mindscape.Raygun4Net;
await new RaygunClient("API KEY HERE").SendAsync(new Exception("Log Message"));
- Add the following entries to the project file to enable trimming
<PropertyGroup>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>full</TrimMode>
</PropertyGroup>
- Compile and publish the application
dotnet publish - Run the resulting executable
Expected behavior
A full set of metadata (including MachineName, VersionNumber, Exception information, Environment data) should be captured by the Raygun client and sent to the Raygun api
Additional context
Changing the TrimMode to partial <TrimMode>partial</TrimMode> results in the correct telemetry being sent.
Metadata
Metadata
Assignees
Labels
No labels