Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Health Sessions not sent from ios devices. #3848

Open
rodolfoBee opened this issue Dec 16, 2024 · 1 comment
Open

Release Health Sessions not sent from ios devices. #3848

rodolfoBee opened this issue Dec 16, 2024 · 1 comment

Comments

@rodolfoBee
Copy link
Member

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:

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.

@bruno-garcia
Copy link
Member

Auto release health should be on by default on Android and iOS. In both cases from the .NET layer, not the native one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: No status
Development

No branches or pull requests

2 participants