SentryReflect

open class SentryReflect

Reflection bridge that routes the SDK's handled exceptions / logs / custom keys to Sentry, mirroring FirebaseCrashlyticsReflect. The SDK core has NO compile-time dependency on io.sentry — every call is resolved reflectively at runtime and silently no-ops when Sentry is not on the classpath (e.g. a consumer app that does not use Sentry). Like FirebaseCrashlyticsReflect, routing is GUARDED to com.mapsted.* apps so the SDK never leaks its telemetry into a third-party embedder's Sentry project. It also only forwards once the host app's Sentry.init(...) has actually run (checked live via Sentry.isEnabled()), so ordering between app init and SDK init does not matter.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun init(appContext: Context)
must be called before any other methods are called (mirror of init).
Link copied to clipboard
open fun log(message: String)
make sure to call init early in your application onCreate
Link copied to clipboard
make sure to call init early in your application onCreate
Link copied to clipboard
open fun setCustomKey(key: String, value: String)
make sure to call init early in your application onCreate