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
SentrySdk.Init(options =>
{
options.Dsn = dsn; //dsn for a specific project
options.AutoSessionTrackingInterval = new TimeSpan(0, 0, 30);
var flavor = //get build flavor
options.Environment = flavor switch {
BuildFlavorEnum.DEV => "Development",
BuildFlavorEnum.QA => "Quality",
BuildFlavorEnum.STAGE => "Stage",
BuildFlavorEnum.PROD => "Production",
_ => "Unknown"
};
options.Release = <Release>
options.InitCacheFlushTimeout=new TimeSpan(0,0,0);
options.SetBeforeSend((sentryEvent, sentryHint) => {
scope.User = new SentryUser() {
//Set user id
};
// if there is a need to attach a file then attach a file to an event. In some situation.
{
var filePath = GetFileToAttach();
sentryHint.AddAttachment(filePath);
}
return sentryEvent;
});
}); // end of init.
Deploy the app on Android and ios devices.
Run the app.
Expected Result
Release health sessions are sent for both Android and ios devices.
Actual Result
Release health Sessions are not sent from ios devices. The project also did not get any events from Native ios code (sentry.native.dotnet or sentry.cocoa.dotnet).
The DotNet layer does not send sessions health because options.AutoSessionTracking is not set to true in the SDK initialisation. If the underlying Android SDK is able to send this information, we expect the Cocoa SDK to also be able to send it.
The text was updated successfully, but these errors were encountered:
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.6
OS
iOS
SDK Version
4.4.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
Configure the DotNet SDK as follows:
Deploy the app on Android and ios devices.
Run the app.
Expected Result
Release health sessions are sent for both Android and ios devices.
Actual Result
Release health Sessions are not sent from ios devices. The project also did not get any events from Native ios code (
sentry.native.dotnet
orsentry.cocoa.dotnet
).The DotNet layer does not send sessions health because
options.AutoSessionTracking
is not set to true in the SDK initialisation. If the underlying Android SDK is able to send this information, we expect the Cocoa SDK to also be able to send it.The text was updated successfully, but these errors were encountered: