Comments (7)
Hey @Cheesebaron, thanks for the feature request. That does sound interesting. Do you have an idea/snippet of what that could look like?
from sentry-dotnet.
So in a couple of my Android and iOS Apps I just create a ServiceCollection like this and add dependencies to it:
var serviceCollection = new ServiceCollection();
So ideally I would just be able to add Sentry there with:
serviceCollection.AddSentry();
I had a look at what you are doing in the MAUI package for adding stuff to the service collection, I see you add:
- Logging
- Options
- Hook into lifecycle events
The last one is very interesting and not sure if that comes out of the box if you just initialize Sentry directly through SentrySdk. Will lifecycle get observed? Perhaps these are mainly to hook into MAUI specific events to know when pages/windows/shell events are triggered?
EDIT:
After digging more into the code it also seems that you have extra handling for:
- Screenshots
- Listening to network changes
from sentry-dotnet.
I see. Thanks again for your input!
We've seen an uptick in interest in mobile projects outside of MAUI. We'll have to see how we can prioritize this.
from sentry-dotnet.
What I am requesting more or less what the Sentry.Xamarin project does: https://github.com/getsentry/sentry-xamarin/tree/main/Src/Sentry.Xamarin just without the Xamarin.Forms or MAUI UI framework bits.
from sentry-dotnet.
I think that's a fair request but realistically speaking, we won't get to adding this anytime soon.
from sentry-dotnet.
I did the porting myself here: https://github.com/Cheesebaron/sentry-dotnet-mobile (currently private), but only for iOS and Android. Let me know if you want this upstream I can invite you if you want to have a look. It has a big overlap with the MAUI package, just without all the MAUI UI framework specifics and some parts from the older Xamarin variant.
If you don't want it upstream, is it OK I package this myself and publish? Only downside is that using IConfiguration
doesn't work as I don't have access to BindableSentryLoggingOptions
as its visibility is internal to Sentry signed stuff.
from sentry-dotnet.
Let me know if you want this upstream I can invite you if you want to have a look.
That'd be awesome!
from sentry-dotnet.
Related Issues (20)
- Improve Sentry CLI utilization HOT 1
- Deprecate `EnableTracing`
- Consider `Mechanism.Handled` for non-thrown captured exceptions HOT 1
- Envelopes stuck in `__processing` until restart HOT 2
- Instrumenting failed AWS SDK requests throws due to AWS's use of UriCreationOptions.DangerousDisablePathAndQueryCanonicalization HOT 3
- UWP events missing debug_meta.images information HOT 1
- Exceptions captured through `Extensions.Logging` marked as `handled = true` HOT 9
- ASP.NET Core Telemetry: Failed invoking event handler in anonymous routes HOT 5
- Azure Functions Worker docs
- Support Caches Module
- Support Queues Module
- Memory Leak when using Sentry Profiling HOT 4
- DiagnosticSource FileLoadException at sentry init HOT 5
- Scopes not configured on MAUI HOT 3
- Performance tracing in ASP.NET middlewares HOT 1
- `SentryUser.Segment` is now deprecated
- Session Replays Not Working for Front End Errors in AspNetCore HOT 7
- Memory issue/leak with Tracing enabled
- Replace `ConcurrentBag<T>` with a simpler data structure
- Crons: Sentry.Hangfire not reporting finished jobs and reporting jobs that were not started
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-dotnet.