getsentry / getsentry/sentry-dotnet

Support event caching for Blazor WebAssembly

Open
#2,291 2 comments 0 reactions 0 assignees View on GitHub
.NET Feature Framework: Blazor Platform: Wasm
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### Problem Statement

General .NET implementations of Sentry support a CacheDirectoryPath option for enabling caching of events, should there be an interruption in Internet connectivity. A Blazor WebAssembly application can successfully run during an Internet outage. The existing option doesn't and can't work, since WebAssembly applications have limited access to the local file system. But, there are other options for caching events locally that Sentry could be taking advantage of.

### Solution Brainstorm

- Abstract the underlying storage mechanism used for caching and provide a mechanism for integrators to be able to define their own implementation. This actually solves this and other needs, as it would allow integrators to override the basic implementation, to target a database, for instance.
- Provide an implementation behind an option that utilizes local storage for persisting events that need to be submitted to the server.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.