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

#phpcon2022 エラーと向き合い、自信を持って サービス開発に取り組み、前に進む

hideki kinjyo
September 25, 2022

#phpcon2022 エラーと向き合い、自信を持って サービス開発に取り組み、前に進む

PHP Conference Japan 2022での発表資料です。
発表時にはスキップしていたスライドも含む「配布版」になります。

https://fortee.jp/phpcon-2022/proposal/ace60290-0c64-4a64-80ca-74fa5e27e446

hideki kinjyo

September 25, 2022
Tweet

More Decks by hideki kinjyo

Other Decks in Programming

Transcript

  1. ϓϩҙࣝʹ݉Ͷඋ͑ΒΕΔ΂͖ʮج४ʯ CTO S**T S**T  [ग़య] ᴷ Robert C. Martin,֯

    ੐య. Clean Craftsmanshipɹن཯ɺج४ɺྙཧ (Japanese Edition) Kindle ൛ P292
  2. ͓͠ͳ͕͖ 1. - - 2. - - 3. - -

    4. - with Sentry- 5. 
  3. Τϥʔ͕ͳ͚Ε͹Ғ͍ɺͱ͍͏༁Ͱ΋ͳ͍͕ɾɾɾ ,10,000 , , 10,000,000,000,000,000,000,000,000,000 , , , , 

    [ग़య] ᴷ Weinberg, Gerald M, େ໺ ₼࿠(؂༁). ϫΠϯόʔάͷγεςϜࢥߟ๏ P198
  4. Ձ஋ΛੜΈग़͢ͷʹ࢖͍͑ͯΔ࣌ؒ͸ᶃ 49% 21% 38% 27%  [ग़య] ᴷ Nicole Forsgren

    Ph.D.,Jez Humble,Gene Kim,෢ࣷ޿޾, ෢ࣷΔΈ. LeanͱDevOpsͷՊֶ[Accelerate] ςΫϊϩδʔͷઓུత׆༻͕૊৫มֵΛՃ଎͢Δ P63
  5. ಛఆ͕Ͱ͖ͯ΋ɾɾ૿͑ଓ͚͍ͯΔίετ , , , , , ( ) 1 ,

    , , , ,  [ग़య] ᴷ Pete McBreen, ଜ্ խষ. XPΤΫετϦʔϜϓϩάϥϛϯάջٙฤʕXP͸ιϑτ΢ΣΞ։ൃͷٹੈओͨΓ͑Δͷ͔ P130
  6. ࣦഊʹؔ͢Δίετͷ੔ཧ =( ) 1. ( ) ( ) etc. 2.

    署 etc.  [ࢀߟ] ᴷ Roger S. Pressman, Bruce R. Maxim, SEPA຋༁ϓϩδΣΫτ. ࣮ફιϑτ΢ΣΞΤϯδχΞϦϯάʢୈ9൛ʣP229-230
  7. όά͸ʮൟ৩ʯ͢Δ 1 1  [ग़య] ᴷ Shore, James, Warden, Shane,

    ฏು ݈ࣇ, ໦Լ ࢙඙, ࡫Ҫ ਸ࢘ ΞʔτɾΦϒɾΞδϟΠϧσϕϩοϓϝϯτ : ૊৫Λ੒ޭʹಋ͘ΤΫετϦʔϜϓϩάϥϛϯά P169
  8. σϓϩΠͷ஗ΕσϓϩΠ΁ͷڪා৺ʹ  [ग़య] ᴷ Jeffery D. Smith, ాத ༟Ұ. γεςϜӡ༻Ξϯνύλʔϯ

    ΤϯδχΞ͕DevOpsͰղܾ͢Δ૊৫ɾࣗಈԽɾίϛϡχέʔγϣϯ P184 恐怖⼼やリスクのある デプロイが増えれば増え るほど、失敗の可能性も 増える デプロイの間の時間が⻑ くなればなるほど、デプロイ に含まれる変更の数が増え、 それによってリスクが増⼤ し、フィードバックループが ⽣じる。
  9. 

  10. 

  11. 

  12. ಥવͷએ఻ʂʂʂʂ connehito/cake-sentry PR Starろ awesome-cakephp Sentry SDK 3rd party integrations

    💪 cake4.4+ Laravel  ίωώτ͞Μͷٻਓ৘ใ΋೷͍ͯΈ͍ͯͩ͘͞ͶʂIUUQTISNPTDPQBHFTDPOOFIJUPKPCT
  13. SentryͰ0࣍ରԠΛ࣮ફ͢Δ Alert Alert Create Alert Issues Set Conditions When: A

    new issue is created Then: Send a Slack noti cation Slack Integration  Alert名が併記される Alert名が併記される
  14. SentryͰසग़Τϥʔݕ஌Λ࣮ફ͢Δ When: Number of events in an issue is more

    than XXX( ) in XXX( ) Then: Send a Slack noti cation 
  15. ิ଍: SentryͰશ͘ѻΘͳ͍Τϥʔʹ͍ͭͯ Resolve Sentry UserNotExistsException Sentry SDK 胸 FW 

    ࢀߟ 'JMUFSJOHGPS4ZNGPOZc4FOUSZ%PDVNFOUBUJPO IUUQTEPDTTFOUSZJPQMBUGPSNTQIQHVJEFTTZNGPOZDPOpHVSBUJPOpMUFSJOHpMUFSJOHFSSPSFWFOUT
  16. ࣗಈResolveᶄ: ϦϦʔεͷ࿈ಈʹΑΔղܾ 胸 胸 (Event) (Resolved -> Regression) The next

    release: The current release: Another existing release: GitHub resolve 
  17. UnresolvedͳIssueͷReview/Reviewed Issue ( ack 踏 ) GitHub Issue tracker 

    Review଴ͪIssueҰཡ ʮReviewࡁΈʯૢ࡞ͱมߋཤྺ
  18. ѻ͏EventσʔλΛॆ࣮ͤ͞Δ Sentry Event 駄 駄 ( ) etc.. Webiner 

    ࢀߟ w $POUFYUc4FOUSZ IUUQTTFOUSZJPGFBUVSFTDPOUFYU w "QQMJDBUJPO.POJUPSJOHBOE&SSPS5SBDLJOH)PXUP*NQMFNFOUBOE$POpHVSF4FOUSZ ʰ"EEJOHDPOUFYUʱ IUUQTXXXZPVUVCFDPNXBUDI W,[4VE$5EVUT
  19. ιϑτ΢ΣΞͷ඼࣭ͷ؍఺ Sentry 1. Event 2. Event Issue 3. Issue 4.

    Unresolved Issue 5. Resolve Issue 6. Issue resolved 
  20. §5

  21. ࢀߟॻ੶ɾҾ༻ͨ͠ॻ੶ Clean Craftsmanship (Japanese Edition) E ective DevOps 4 Fearless

    Change 48 Google ITIL ITIL Leading Beyond Change: A Practical Guide to Evolving Business Agility Lean DevOps [Accelerate] Observability Engineering: Achieving Production Excellence XP XP : ( ) DevOps 9 ( 3 ) 9  ޒेԻॱ
  22. Web্ͷࢀߟϦιʔε / Sentry͕ఏڙ͍ͯ͠ΔϦιʔε Product Guides | Sentry Documentation https://docs.sentry.io/product/ API

    Reference | Sentry Documentation https://docs.sentry.io/api/ Spend Less Time on Bugs & More Time on Features: Sentry + Sleuth | Sentry https://sentry.io/resources/improve-and-automate-your-work ow/ Automate, Group, and Get Alerted: A Best Practices Guide to Monitoring your Code | Sentry https://sentry.io/resources/automate-group-get-alerted/ Sentry - YouTube ろ https://www.youtube.com/c/Sentry-monitoring 
  23. Web্ͷࢀߟϦιʔε / Sentryͷಋೖɾ׆༻ࣄྫ / PHPerKaigi2022 - Speaker Deck https://speakerdeck.com/kazatohiei/phperkaigi2022 Sentry

    | Wedding Park CREATORS Blog https://engineers.weddingpark.co.jp/sentry/ Raygun Sentry - BASE https://devblog.thebase.in/entry/raygun2sentry - https://daisuki.nichiyoubi.land/entry/2020/07/01/ 123616#%E3%81%AA%E3%81%9C%E3%82%84%E3%82%8B%E3%81%AE%E3%81%8B 
  24. Web্ͷࢀߟϦιʔε / DevOpsɺϞχλϦϯά Monitoring Check Smells https://benjiweber.co.uk/blog/2015/03/02/monitoring-check-smells/ 5 2020 (1/2)

    CodeZine https://codezine.jp/article/detail/12052 https://www.youtube.com/watch?v=9RPgdJyeA7Y&t=4784s State of DevOps Four Keys ( ) / Introduction to State of DevOps and Four Keys for Visualizing Productivity in Development Organizations expanded and revised edition - Speaker Deck https://speakerdeck.com/isanasan/introduction-to-state-of-devops-and-four-keys-for-visualizing- productivity-in-development-organizations-expanded-and-revised-edition 
  25. Web্ͷࢀߟϦιʔε / ඼࣭ɾอकɾ༧๷ https://blogs.itmedia.co.jp/morisaki/2012/04/post-7e5d.html - Cybozu Inside Out | https://blog.cybozu.io/entry/2016/05/18/103000

    - 領 / Growing Reliable Code PHPerKaigi 2022 - Speaker Deck https://speakerdeck.com/twada/growing-reliable-code-phperkaigi-2022 / Agility and Quality Characteristics Developers Summit 2021 Summer - Speaker Deck https://speakerdeck.com/twada/agility-and-quality-characteristics-developers-summit-2021-summer - pixiv inside https://inside.pixiv.blog/shimashima/6247 
  26. Web্ͷࢀߟϦιʔε / ͦͷଞ(จԽɺ૊৫ͳͲ) I - https://daisuki.nichiyoubi.land/entry/2021/12/11/182323 #scrumosaka / Scrum Fest

    Osaka 2021 Keynote - Speaker Deck https://speakerdeck.com/bu erings/scrum-fest-osaka-2021-keynote / The Debt - Speaker Deck https:// speakerdeck.com/toricls/the-debt / You won't be in the team forever - Speaker Deck https://speakerdeck.com/toricls/you-wont-be-in-the-team-forever