-
Notifications
You must be signed in to change notification settings - Fork 2
crashlytics attribution per library
github-actions[bot] edited this page Jun 2, 2026
·
1 revision
title: "How do I attribute a crash to a specific cmp-* library?" reviewed_by: date: 2026-06 version: 3.5.x
When FirebaseCrashlyticsAttributionHook is registered, every cmp-* library
auto-tags its own initialization, navigation, and uncaught exceptions with a
cmp_library custom key so you can filter Crashlytics issues per library
without per-call boilerplate.
import org.koin.core.context.startKoin
import com.mobilebytelabs.kmptoolkit.observe.koin.observeKoinModule
import com.mobilebytelabs.kmptoolkit.observe.koin.FirebaseCrashlyticsAttributionHook
startKoin {
modules(
observeKoinModule(
hooks = listOf(FirebaseCrashlyticsAttributionHook()),
),
)
}In the Firebase console:
Crashlytics → Issues → Filter → Custom key: cmp_library == "cmp-share"
- Tag is set on the cmp-*
notifyInitthread — if a crash happens during JVM startup before any cmp-* module initializes, the tag is absent. - iOS: custom keys propagate to Crashlytics within 200ms (vs Android's synchronous setCustomKey).
- The
cmp_librarykey reflects the LAST library to callnotifyIniton the current thread; for genuine multi-library crashes, inspect the breadcrumbs trail rather than the tag alone.
- Module: cmp-observe-koin
- Library observability surface:
RULE-LIB-OBSERVABILITY-SURFACE-001 - See also: Register Firebase hooks at app startup
** Partials**
App Intents
Bubble
Clipboard
Cookbook
- Clipboard Copy Text
- Clipboard Read Text
- Consumer Anon Key Setup
- Crashlytics Attribution Per Library
- Ifonline Block
- Index
- Index
- Index
- Index
- Open Url Compose
- Pick And Share Image
- React To Offline
- Register Firebase Hooks
- Share Pdf Android
- Share Text
- Wifi Vs Cellular
Firebase Analytics
In App Update
Intent Launcher
Inter App Comms
Modules
- Cmp App Intents
- Cmp App Intents Compose
- Cmp Bubble
- Cmp Clipboard
- Cmp Deep Link
- Cmp Firebase Analytics
- Cmp In App Update
- Cmp Intent Launcher
- Cmp Intent Launcher Compose
- Cmp Library
- Cmp Network Monitor
- Cmp Network Monitor Compose
- Cmp Observe
- Cmp Observe Koin
- Cmp Open Url
- Cmp Pdf Generator
- Cmp Product Tickets
- Cmp Remote Config
- Cmp Share
- Cmp Share Compose
- Cmp Toast
Network Monitor
Open Url
Pdf Generator
Remote Config
Share
Toast
User Tickets
General