Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Trace outside of stack trace

Trace outside of stack trace

2f8b61ad31dd9c6ada4a90af746290fd?s=128

Shota Kashihara

May 28, 2019
Tweet

Transcript

  1. ©2019 Wantedly, Inc. Trace outside of stack trace w/ Firebase

    Crashlytics Firebase Meetup #13 May 28, 2019 - @kashihararara
  2. ©2019 Wantedly, Inc. Introduction Shota Kashihara Wantedly People / iOS

  3. ©2019 Wantedly, Inc. Firebase Crashlytics Introduction

  4. ©2019 Wantedly, Inc. RoadmapΛܰ͘ Introduction https://get.fabric.io/roadmap

  5. ©2019 Wantedly, Inc. RoadmapΛܰ͘ Introduction https://get.fabric.io/roadmap Ҿ༻: https://get.fabric.io/roadmap

  6. ©2019 Wantedly, Inc. RoadmapΛܰ͘ Introduction https://get.fabric.io/roadmap Ҿ༻: https://get.fabric.io/roadmap

  7. ©2019 Wantedly, Inc. 2020೥݄̏·Ͱʹ Fabric console ʹ ผΕΛࠂ͛Α͏ Introduction

  8. ©2019 Wantedly, Inc. ຊ୊ Stack trace

  9. ©2019 Wantedly, Inc. ΞϓϦ͕Ϋϥογϡͨ࣌͠ʹੜ੒͞ΕΔ৘ใ Stack trace

  10. ©2019 Wantedly, Inc. ελοΫτϨʔε Stack trace

  11. ©2019 Wantedly, Inc. Stack trace ελοΫτϨʔε Ϋϥογϡͷൃੜ৔ॴ΍ɺൃੜܦ࿏Λه࿥ͨ͠ϩά

  12. ©2019 Wantedly, Inc. Stack trace ΫϥογϡͷݪҼͱͳΔϝοηʔδ ιʔεͷ৔ॴ·Ͱڭ͑ͯ͘ΕΔ

  13. ©2019 Wantedly, Inc. ελοΫτϨʔε͸ڧ͍ຯํ Stack trace

  14. ©2019 Wantedly, Inc. Ͱ΋શ෦͕શ෦ ͦ͏͡Όͳ͍͜ͱΛ Stack trace ࢲͨͪ͸஌͍ͬͯΔ

  15. ©2019 Wantedly, Inc. Stack trace

  16. ©2019 Wantedly, Inc. Stack trace

  17. ©2019 Wantedly, Inc. Stack trace

  18. ©2019 Wantedly, Inc. ελοΫτϨʔε͕ऑ͍ Stack trace

  19. ©2019 Wantedly, Inc. ελοΫτϨʔε͕ऑ͍ͱԿ͕ࠔΔ Stack trace - ࠶ݱํ๏͕Θ͔Βͳ͍ - ݪҼ΋͸͖ͬΓͱ͠ͳ͍

    - ֬ೝ͠ͳ͚Ε͹ͳΒͳ͍͜ͱ͕Ұؾʹ૿͑Δ
  20. ©2019 Wantedly, Inc. ελοΫτϨʔε͕ऑ͍ͱԿ͕ࠔΔ Stack trace - ࠶ݱํ๏͕Θ͔Βͳ͍ - ݪҼ΋͸͖ͬΓͱ͠ͳ͍

    - ֬ೝ͠ͳ͚Ε͹ͳΒͳ͍͜ͱ͕Ұؾʹ૿͑Δ - ൃੜ৚݅͸ͳΜͳͷ͔ - όʔδϣϯ΁ͷґଘ - ୺຤΁ͷґଘ
  21. ©2019 Wantedly, Inc. ελοΫτϨʔε͕ऑ͍ͱԿ͕ࠔΔ Stack trace - ࠶ݱํ๏͕Θ͔Βͳ͍ - ݪҼ΋͸͖ͬΓͱ͠ͳ͍

    - ֬ೝ͠ͳ͚Ε͹ͳΒͳ͍͜ͱ͕Ұؾʹ૿͑Δ - ൃੜ৚݅͸ͳΜͳͷ͔ - όʔδϣϯ΁ͷґଘ - ୺຤΁ͷґଘ → ղܾ͍͕͔͔ͨ͠Δ޻਺ͷݟੵ΋Γ͕ग़དྷͳ͍ɻ
  22. ©2019 Wantedly, Inc. Stack trace ΫϥογϡΛθϩʹ͢Δ͜ͱ͸Ͱ͖ͳ͍ɻ લఏͱͯ͠ ଥڠ఺͕ඞཁ͕ͩͲ͜ʹஔ͔͘͸αʔϏεͷن໛ͱΫϥογϡͷن໛ͱ͔͔Δ޻਺ͷن໛ʹΑΔɻ

  23. ©2019 Wantedly, Inc. Stack trace ࠶ݱखॱΛݟ͚ͭΔͨΊʹɺ ϦονͳΫϥογϡϨϙʔτ͕ඞཁͩɻ

  24. ©2019 Wantedly, Inc. Let’s customize crash reporting

  25. ©2019 Wantedly, Inc. Customize crash reporting Customize crash reporting Firebase

    Crashlytics ʹ͸ Analytics ͱͷ౷߹ͨ͠ϨϙʔςΟϯά΍ ΫϥογϡϨϙʔςΟϯάͷͨΊͷϩάɺKey-Value͕ಠࣗʹ௥ՃͰ͖Δ ࢀর: https://firebase.google.com/docs/crashlytics/customize-crash-reports
  26. ©2019 Wantedly, Inc. Customize crash reporting Customize crash reporting -

    ΧελϜϩάϝοηʔδ - ΧελϜΩʔ - ϢʔβʔID
  27. ©2019 Wantedly, Inc. ΧελϜϩάϝοηʔδ Customize crash reporting Ϋϥογϡ͕ൃੜ͢Δ·Ͱͷܦ࿏ͳͲΛϨϙʔτʹ௥هͰ͖Δ

  28. ©2019 Wantedly, Inc. ΧελϜϩάϝοηʔδ Customize crash reporting Ϋϥογϡ͕ൃੜ͢Δ·Ͱͷܦ࿏ͳͲΛϩάͱͯ͠Ϩϙʔτʹ௥ه͢Δ͜ͱ͕ग़དྷΔ

  29. ©2019 Wantedly, Inc. ΧελϜϩάϝοηʔδ Customize crash reporting - ͋Δͱخ͍͠ϝοηʔδ ΞϓϦͷঢ়ଶมԽʢىಈɺऴྃɺαΠϯΞοϓɺϩάΠϯ/ϩάΞ΢τʣ

    ΞϓϦͷॏཁΠϕϯτʢWantedly People ͷ৔߹͸ɺ໊ࢗεΩϟϯʣ ؀ڥґଘΠϕϯτʢόοΫάϥ΢ϯυfetch)
  30. ©2019 Wantedly, Inc. ΧελϜΩʔ Customize crash reporting Ϋϥογϡ͕ൃੜͨ͠ࡍͷΞϓϦͷঢ়ଶΛϨϙʔτʹ௥هͰ͖Δ

  31. ©2019 Wantedly, Inc. ΧελϜΩʔ Customize crash reporting Ϋϥογϡ͕ൃੜͨ͠ࡍͷΞϓϦͷঢ়ଶΛϨϙʔτʹ௥هͰ͖Δ

  32. ©2019 Wantedly, Inc. Customize crash reporting ͋Δͱخ͍͠ - ͍͔ͭΒ࢖͍࢝Ίͨͷ͔ʢΠϯετʔϧʣ -

    લճىಈͨ͠ͷ͸͍͔ͭ - ϔϏʔϢʔβʔͳͷ͔ϥΠτϢʔβʔͳͷ͔ ɹࢦඪͱͳΔObjective͕͋Δͱྑ͍ ɹεφοϓγϣοτͱͯ͠༗༻ͳ৔໘΋ଟ͍ ΧελϜΩʔ
  33. ©2019 Wantedly, Inc. ϢʔβʔID Customize crash reporting Ϋϥογϡ͕ൃੜͨ͠ϢʔβʔΛಛఆ͢Δͷʹ໾ཱͭ

  34. ©2019 Wantedly, Inc. Analyticsͱͷ࿈ܞ Customize crash reporting Crash reporting ϩά

    Analytics Πϕϯτ screen_view ΍ tap_button ͳͲɺ ͢Ͱʹܭଌ͍ͯ͠Δϩά͕׆͖Δ ⚠ ࿈ܞͰ͖ͳ͍͜ͱ΋͋ΔͷͰա৴͸ې෺
  35. ©2019 Wantedly, Inc. ͍··Ͱ Crash! 16:55

  36. ©2019 Wantedly, Inc. ͜Ε͔Β 1. ΞϓϦΛىಈͯ͠ 2. ࿈བྷઌը໘Λ։͍ͯ 3. όοΫάϥ΢ϯυʹߦ͘ͱ

    Crash! - ΧελϜϩάϝοηʔδ - Analytics ͷ screen_view 16:55:04 16:55:06 16:55:10 16:55
  37. ©2019 Wantedly, Inc. ڧ͍ Customize crash reporting ΫϥογϡϨϙʔτ ऑ͍ ελοΫτϨʔε

  38. ©2019 Wantedly, Inc. ڧ͍ΫϥογϡϨϙʔτΛ࡞Ζ͏ Customize crash reporting ࠶ݱखॱʹ͍ۙΫϥογϡϨϙʔτΛ༻ҙ͢Δ͜ͱ͕Ͱ͖ͨɻ গͳ͘ͱ΋৘ใ͕૿͑Δ͚ͩͰ৭ʑͳԱଌཱ͕ͭ ޻਺ͷݟੵ΋Γ͕Ͱ͖Δʢ͔΋͠Εͳ͍ʣ

  39. ©2019 Wantedly, Inc. ·ͱΊ Customize crash reporting Crash Reporting ϩά

    Λऔ͓ͬͯ͘ͱɺ࠶ݱखॱͷखֻ͔ΓʹͳΔ ΧελϜKey-Value ͰΞϓϦͷεφοϓγϣοτΛऔ͓ͬͯ͜͏ Firebase Crashlytics ίϯιʔϧ͸͍͍ͧ