Package io.sentry.cache
Class PersistingScopeObserver
java.lang.Object
io.sentry.ScopeObserverAdapter
io.sentry.cache.PersistingScopeObserver
- All Implemented Interfaces:
IScopeObserver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tread(@NotNull SentryOptions options, @NotNull String fileName, @NotNull Class<T> clazz) static <T,R> T read(@NotNull SentryOptions options, @NotNull String fileName, @NotNull Class<T> clazz, @Nullable JsonDeserializer<R> elementDeserializer) voidsetBreadcrumbs(@NotNull Collection<Breadcrumb> breadcrumbs) voidsetContexts(@NotNull Contexts contexts) voidvoidsetFingerprint(@NotNull Collection<String> fingerprint) voidsetLevel(@Nullable SentryLevel level) voidsetReplayId(@NotNull SentryId replayId) voidsetRequest(@Nullable Request request) voidvoidsetTrace(@Nullable SpanContext spanContext, @NotNull IScope scope) voidsetTransaction(@Nullable String transaction) voidstatic <T> voidstore(@NotNull SentryOptions options, T entity, @NotNull String fileName) Methods inherited from class io.sentry.ScopeObserverAdapter
addBreadcrumb, removeExtra, removeTag, setExtra, setTag
-
Field Details
-
SCOPE_CACHE
- See Also:
-
USER_FILENAME
- See Also:
-
BREADCRUMBS_FILENAME
- See Also:
-
TAGS_FILENAME
- See Also:
-
EXTRAS_FILENAME
- See Also:
-
CONTEXTS_FILENAME
- See Also:
-
REQUEST_FILENAME
- See Also:
-
LEVEL_FILENAME
- See Also:
-
FINGERPRINT_FILENAME
- See Also:
-
TRANSACTION_FILENAME
- See Also:
-
TRACE_FILENAME
- See Also:
-
REPLAY_FILENAME
- See Also:
-
-
Constructor Details
-
PersistingScopeObserver
-
-
Method Details
-
setUser
- Specified by:
setUserin interfaceIScopeObserver- Overrides:
setUserin classScopeObserverAdapter
-
setBreadcrumbs
- Specified by:
setBreadcrumbsin interfaceIScopeObserver- Overrides:
setBreadcrumbsin classScopeObserverAdapter
-
setTags
- Specified by:
setTagsin interfaceIScopeObserver- Overrides:
setTagsin classScopeObserverAdapter
-
setExtras
- Specified by:
setExtrasin interfaceIScopeObserver- Overrides:
setExtrasin classScopeObserverAdapter
-
setRequest
- Specified by:
setRequestin interfaceIScopeObserver- Overrides:
setRequestin classScopeObserverAdapter
-
setFingerprint
- Specified by:
setFingerprintin interfaceIScopeObserver- Overrides:
setFingerprintin classScopeObserverAdapter
-
setLevel
- Specified by:
setLevelin interfaceIScopeObserver- Overrides:
setLevelin classScopeObserverAdapter
-
setTransaction
- Specified by:
setTransactionin interfaceIScopeObserver- Overrides:
setTransactionin classScopeObserverAdapter
-
setTrace
- Specified by:
setTracein interfaceIScopeObserver- Overrides:
setTracein classScopeObserverAdapter
-
setContexts
- Specified by:
setContextsin interfaceIScopeObserver- Overrides:
setContextsin classScopeObserverAdapter
-
setReplayId
- Specified by:
setReplayIdin interfaceIScopeObserver- Overrides:
setReplayIdin classScopeObserverAdapter
-
store
public static <T> void store(@NotNull @NotNull SentryOptions options, @NotNull T entity, @NotNull @NotNull String fileName) -
read
@Nullable public static <T> T read(@NotNull @NotNull SentryOptions options, @NotNull @NotNull String fileName, @NotNull @NotNull Class<T> clazz) -
read
@Nullable public static <T,R> T read(@NotNull @NotNull SentryOptions options, @NotNull @NotNull String fileName, @NotNull @NotNull Class<T> clazz, @Nullable @Nullable JsonDeserializer<R> elementDeserializer)
-