Skip to content

Sentry Maui Automatic Breadcrumb capture not working for Maui WinUI app #5037

@akhilvswoodplc

Description

@akhilvswoodplc

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

10.0.3

OS

Windows

OS Version

Microsoft Windows 10.0.26100

Development Environment

Other

Other Error Monitoring Solution

No

Other Error Monitoring Solution Name

No response

SDK Version

6.2.0

Self-Hosted Sentry Version

No response

Workload Versions

Welcome to .NET 10.0!
---------------------
SDK Version: 10.0.103

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------

Workload version: 10.0.100-manifests.c992be6d

Installed Workload Id      Manifest Version         Installation Source
---------------------------------------------------------------------------------------
android                    36.1.2/10.0.100          VS 17.14.36221.1, VS 18.3.11512.155
ios                        26.2.10191/10.0.100      VS 17.14.36221.1, VS 18.3.11512.155
maccatalyst                26.2.10191/10.0.100      VS 17.14.36221.1, VS 18.3.11512.155
maui-windows               10.0.20/10.0.100         VS 17.14.36221.1, VS 18.3.11512.155
wasm-tools                 10.0.103/10.0.100        VS 17.14.36221.1
wasm-tools-net7            10.0.103/10.0.100        VS 17.14.36221.1
wasm-tools-net8            10.0.103/10.0.100        VS 17.14.36221.1

UseSentry or SentrySdk.Init call

builder.UseSentry(options =>
{
    options.Dsn = AppConstants.SentryDSN;            
    options.Release = AppInfo.VersionString;
    options.AutoSessionTracking = true;
    options.IncludeTextInBreadcrumbs = true;
    options.IncludeTitleInBreadcrumbs = true;
    options.IncludeBackgroundingStateInBreadcrumbs = true;

    options.SetBeforeSend((sentryEvent, hint) => 
    {
        return sentryEvent; 
    });
});

Steps to Reproduce

  • Create a .Net Maui app (.net 10) with WinUI platform support.
  • Add Sentry.Maui 6.2.0 sdk
  • Add error handling and trigger an exception or message (No Manual breadcrumb capture)
  • Check the sentry portal
  • Breadcrumbs are not showing only for Windows version
  • For Android version works fine

Expected Result

  • Automatic Breadcrumb capture should appear for Windows app as well

Actual Result

  • No Breadcrumb appearing

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions