Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Distributed Tracing with OpenCensus at Wantedly...
Search
Yuichi Saito
April 03, 2019
Technology
3
5.1k
Distributed Tracing with OpenCensus at Wantedly, Inc.
OpenCensus meetup vol.1
https://opencensus.connpass.com/event/123885/
Yuichi Saito
April 03, 2019
Tweet
Share
More Decks by Yuichi Saito
See All by Yuichi Saito
失敗から学ぶ - ポストモーテム / Postmotem culture at Wantedly
munisystem
3
35k
OpenCensus による APM の実現と、未来 / Implementing APM with OpenCensus
munisystem
8
6.8k
Effective Health Checking
munisystem
2
710
Learn more about Admission Webhooks
munisystem
1
1.6k
An introduction to monitoring Go Application with OpenCensus
munisystem
1
1.2k
Dgraph - A high performance graph database written in pure Go
munisystem
7
7.2k
Other Decks in Technology
See All in Technology
バクラクにおける可観測性向上の取り組み
yuu26
3
420
Jr. Championsになって、強く連携しながらAWSをもっと使いたい!~AWSに対する期待と行動~
amixedcolor
0
190
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
LeSSに潜む「隠れWF病」とその処方箋
lycorptech_jp
PRO
2
120
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.6k
ABEMA のコンテンツ制作を最適化!生成 AI x クラウド映像編集システム / abema-ai-editor
cyberagentdevelopers
PRO
1
180
Apple/Google/Amazonの決済システムの違いを踏まえた定期購読課金システムの構築 / abema-billing-system
cyberagentdevelopers
PRO
1
220
Product Engineer Night #6プロダクトエンジニアを育む仕組み・施策
hacomono
PRO
1
470
Commitment vs Harrisonism - Keynote for Scrum Niseko 2024
miholovesq
6
1.1k
10分でわかるfreee エンジニア向け会社説明資料
freee
18
520k
ネット広告に未来はあるか?「3rd Party Cookie廃止とPrivacy Sandboxの効果検証の裏側」 / third-party-cookie-privacy
cyberagentdevelopers
PRO
1
130
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.9k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Faster Mobile Websites
deanohume
304
30k
Adopting Sorbet at Scale
ufuk
73
9k
Optimizing for Happiness
mojombo
376
69k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Testing 201, or: Great Expectations
jmmastey
38
7k
Transcript
©2018 Wantedly, Inc. Distributed Tracing with OpenCensus at Wantedly, Inc.
OpenCensus meetup vol.1 03.Apr.2019 - @munisystem
©2018 Wantedly, Inc. 0QFO$FOTVTͷಋೖഎܠ 8BOUFEMZ *ODʹ͓͚ΔࢄτϨʔγϯά ݱঢ়ͷ՝
·ͱΊ Agenda
©2018 Wantedly, Inc. !NVOJTZTUFN:VJDIJ4BJUP *OGSBTUSVDUVSF5FBNBU8BOUFEMZ *OD
©2018 Wantedly, Inc. 0QFO$FOTVTͷಋೖഎܠ
©2018 Wantedly, Inc. 8BOUFEMZʹ͓͚Δ.JDSPTFSWJDFTͷݱঢ় w 1PMZHMPU w 3VCZͱ(P͕ϝΠϯ w αʔϏεͷυϝΠϯʹΑͬͯ1ZUIPO/PEFɺ3VTU࠾༻
w .VMUJ$MPVE w "84 ,VCFSOFUFTPO&$ 3%4 &MBTUJDBDIF ʜ w ($1 #JH2VFSZ $MPVE%BUBTUPSF $MPVE1VC4VC ʜ
©2018 Wantedly, Inc. ͳͥ.JDSPTFSWJDFTΛ࠾༻ͨ͠ͷ͔ ͷ8BOUFEMZ1FPQMFͷ։ൃ͔Β.JDSPTFSWJDFTΛ࠾༻ w ࣌ϞϊϦγοΫͳ3BJMTΞϓϦέʔγϣϯ͕ݸଘࡏ w αʔϏεͷಛੑ্ɺ3BJMTͰ࣮ݱ͠ʹ͍͘ػೳΛ࣮ݱ͢Δඞཁ͕͋ͬͨ w
ฒྻԽɺػցֶश w ߴͳ։ൃͱϦϦʔεͷཁٻ w ϦϦʔεαΠΫϧͷ
©2018 Wantedly, Inc. ύϑΥʔϚϯεܭଌͷ͠͞ w 8BOUFEMZͰ"1.ͷج൫ͱͯ͠/FX3FMJDΛ࠾༻͍ͯͨ͠
©2018 Wantedly, Inc. ύϑΥʔϚϯεܭଌͷ͠͞ w 8BOUFEMZͰ"1.ͷج൫ͱͯ͠/FX3FMJDΛ࠾༻͍ͯͨ͠ w SVOUJNFϨϕϧͰͷϝτϦΫεͷऩू w -BUFODZ
4UBDLUSBDF ($IFBQTJ[F ʜ w .JDSPTFSWJDFTͰαʔϏεؒͷσʔλͷΓऔΓ͕ωοτϫʔΫӽ͠ʹߦΘΕΔ w ϦΫΤετઌͰͲΜͳॲཧ͕ߦΘΕ͍ͯΔͷ͔ΛஅͰ͖ͳ͍
©2018 Wantedly, Inc. ύϑΥʔϚϯεܭଌͷ͠͞ Receive A /api/products/1 timeline DB Access
Request B /api/reviews/1 #Ͱͳʹ͕ߦΘΕ͍ͯΔͷ͔"ͷ4UBDL5SBDF্͔ΒஅͰ͖ͳ͍
©2018 Wantedly, Inc. ύϑΥʔϚϯεܭଌͷ͠͞ w 8BOUFEMZͰ"1.ͷج൫ͱͯ͠/FX3FMJDΛ࠾༻͍ͯͨ͠ w SVOUJNFϨϕϧͰͷϝτϦΫεͷऩू w -BUFODZ
4UBDLUSBDF ($IFBQTJ[F ʜ w .JDSPTFSWJDFTͰαʔϏεؒͷσʔλͷΓऔΓ͕ωοτϫʔΫӽ͠ʹߦΘΕΔ w ϦΫΤετઌͰͲΜͳॲཧ͕ߦΘΕ͍ͯΔͷ͔ΛஅͰ͖ͳ͍ ࢄτϨʔγϯάͷಋೖ
©2018 Wantedly, Inc. ࢄτϨʔγϯά
©2018 Wantedly, Inc. ࢄτϨʔγϯάಋೖͷΞϓϩʔν ͬ͘͟Γಋೖํ๏௨ΓʹྨͰ͖Δ w ϕϯμʔ͕ఏڙ͢Δ-JCSBSZͷར༻ͱ࣮ʢྫ"NB[PO93BZ w 0QFO$FOTVT0QFO5SBDJOHʹද͢Δڞ௨Խ࣮
©2018 Wantedly, Inc. ٕज़બΛ͢Δͱ͖ʹߟ͑ͨ͜ͱ w όοΫΤϯυͷมߋ༰қੑͷ୲อ w ܗ͞ΕͨΤίγεςϜͷར༻͕Մೳ w 1PMZHMPUͳڥͰ͋Δ͜ͱΛҙࣝ͢Δͱɺ
গ͠ͰΤίγεςϜʹΕΔܗʹ͍ͨ͠ ڞ௨ԽϑϨʔϜϫʔΫͷ࠾༻
©2018 Wantedly, Inc. Կނ0QFO$FOTVTΛ࠾༻ͨ͠ͷ͔ w ͲͪΒ࣮ΛϕϯμʔΛ͢Δͱ͍͏తҰॹ w ࢄτϨʔγϯάҎ֎ͷར༻ՁΛߟ͑ͨ w 0QFO5SBDJOHࢄτϨʔγϯά͚ͩͰ͋Δͷʹର͠ɺ
0QFO$FOTVT0CTFSWBCJMJUZશൠʹϑΥʔΧε͍ͯ͠Δ w ΞϓϦέʔγϣϯͷϝτϦΫεͷऩूΛݟਾ͑ͨ w ΤίγεςϜͷͷݟࠐΈ w (PPHMF4UBDLESJWFSͰ0QFO$FOTVTͷར༻Λਪ͍ͯͨ͠
©2018 Wantedly, Inc. 8BOUFEMZ *ODʹ͓͚ΔࢄτϨʔγϯά
©2018 Wantedly, Inc. ࢄτϨʔγϯάͷόοΫΤϯυ w όοΫΤϯυʹ%BUBEPH"1.ͱ4UBDLESJWFS5SBDFΛ࠾༻ w %BUBEPH"1.͕ϝΠϯ w ͱͱ%BUBEPHΛར༻͍ͯͨ͠ͱ͍͏എܠ
w %BUBEPH"1.Ͱಛఆͷڥ͚ͩͯ͢ͷ5SBDFΛ͢ࣄ͕Ͱ͖ͳ͍ w ͜ΕΛ୲อ͢ΔͨΊʹ4UBDLESJWFS5SBDFͱซ༻͍ͯ͠Δ w কདྷతʹόοΫΤϯυΛ౷Ұͤ͞Δ
©2018 Wantedly, Inc. 4IBSFE-JCSBSZʹΑΔڞ௨Խ w ࣾʹϚΠΫϩαʔϏεʹඞཁͳϩδοΫΛ֤αʔϏεʹఏڙ͢ΔͨΊͷ ڞ௨Խ࣮͕ଘࡏ͍ͯͨ͠ w 5JNFPVU3FUSZ"VUIFOUJDBUPO-PHHJOH w
ࢄτϨʔγϯάͷ࣮͜Εʹแ͍ͤͯ͞Δ w 3VCZͱ(PͷΈͰఏڙ w 1ZUIPOͦͷଞͷݴޠϦΫΤετͷͰར༻͞ΕΔέʔε͕ଟ͍ w ߋʹ%#ͷSFBEXSJUF΄΅ແ͍ w VQTUSFBNͷϦΫΤετͷ4QBO͚ͩͰ͋Δఔஅ͕Մೳ
©2018 Wantedly, Inc. ར༻͍ͯ͠Δ-JCSBSZ w (Pʹؔͯ͠ެࣜͷͷΛར༻ w 3VCZGPSL IUUQTHJUIVCDPNXBOUFEMZPQFODFOTVTSVCZ Λར༻
w ࣌UPQMFWFMͷ4QBO͕ࢠ4QBOʹൖ͞Εͳ͍ͱ͍͏க໋తͳόά͕͋ͬͨ w 13Λૹ͕ͬͨɺϝϯςφෆࡏͰϦϦʔε͞Εͳ͍࠷ۙϚʔδ͞Εͨ w UPQMFWFM4QBOʹ"UUSJCVUFΛࠩ͠ࠐΉͨΊͷIPPLΛࣗ࡞͍ͯͯ͠ɺ ͦΕ͕·ͩຊମʹ13Λग़͍ͯ͠ͳ͍ w %BUBEPHͷ&YQPSUFSʹؔͯࣗ͠࡞ w IUUQTHJUIVCDPNNVOJTZTUFNPQFODFOTVTEBUBEPH
©2018 Wantedly, Inc. ϝλσʔλͷૠೖ w ݕࡧͷͨΊʹϝλσʔλ w ,VCFSOFUFTNFUBEBUB w 3FRVFTU*%
w 6TFS*% w %BUBEPH"1.ͷ࠷దԽͷͨΊͷϝλσʔλ
©2018 Wantedly, Inc. 3FRVFTU*%ͷൖ w 3FRVFTU*%ผαʔϏεʹൖ͍ͯ͠Δ w "DDFTT-PHHJOH w &SSPSUSBDLFS
)POFZCBEHFS
©2018 Wantedly, Inc. )551)FBEFS1SPQBHBUJPO w 5SBDF$POUFYUQSPQBHBUJPOGPSNBUΛ࠾༻ w 0QFO$FOTVTͷ༷Ͱ5SBDF$POUFYUͷؚ࣮͕·Ε͍ͯΔ w PQFODFOTVTSVCZ#͕·࣮ͩ͞Ε͍ͯͳ͍
©2018 Wantedly, Inc. 4BNQMJOH w ։ൃڥͯ͢ͷϦΫΤετͷॲཧΛτϨʔεͰ͖ΔΑ͏ʹɺ αϯϓϦϯάߦ͍ͬͯͳ͍ w 1SPEVDUJPOڥαʔϏεΤϯυϙΠϯτʹؔΘΒͣҰˋͰઃఆ w
ϦΫΤετ4QBOͷ͕ଟ͍ͨΊ w ΞϓϦέʔγϣϯଆͷQFSGPSNBODFJTTVF w όοΫΤϯυͷQSJDJOH
©2018 Wantedly, Inc. ($1Ͱͷར༻ w 4%,ଆͰ0QFO$FOTVT͕ରԠ͞Ε͍ͯΔ w ಛʹͳʹͤͣFDPTZTUFNʹΕΔ
©2018 Wantedly, Inc. ݱঢ়ͷ՝
©2018 Wantedly, Inc. όοΫΤϯυݻ༗ͷ࠷దԽͷ࣮ݱ w ༩͞Ε͍ͯΔ"UUSJCVUFʹΑͬͯόοΫΤϯυͷৼΔ͍͕มΘΔ w %BUBEPH"1.ͰTQBOUZQFͷͰαʔϏεͷΧςΰϥΠζ͕มΘΔ w UPQMFWFMͷ4QBOͰղܾ͢ΔͷͳΒ·͍͍ͩ
w SFEJTDMJFOUʹಛఆͷ"UUSJCVUFΛࠩ͠ࠐΉʹͲ͏͢Δ w SFEJTDMJFOUଆͰIPPLΛ༻ҙ͢Δ w NPOLFZQBUDIΛ͋ͯΔ
©2018 Wantedly, Inc. ΞϓϦέʔγϣϯίʔυͱϕϯμʔͷશͳ w &YQPSUFSίʔυʹґଘ w ϥΠϒϥϦͷΞοϓσʔτͷ͠͞ w 1PMZHMPUͱ&YQPSUFS࣮
w ओཁͳݴޠ͚࣮ͩ͢Δͷݱ࣮తͰͳ͍ w &YQPSUFSͷࣗ࡞ͱ͍͏બࢶ w ϕϯμʔଆͷػೳͷैͷίετ
©2018 Wantedly, Inc. 0QFO$FOTVT4FSWJDF https://github.com/census-instrumentation/opencensus-service/blob/master/images/opencensus-service-deployment-models.png
©2018 Wantedly, Inc. 0QFO$FOTVT4FSWJDF w ϕϯμʔͱΞϓϦέʔγϣϯͷશͳͷ࣮ݱ w "HFOUʜ5SBDF4UBUTͷऩूɺ$PMMFDUPSͷू w $PMMFDUPSʜҙͷόοΫΤϯυʹूͨ͠5SBDF4UBUTΛૹ৴
w ར w TBNQMJOHTUSBUFHZͷมߋϝλσʔλͷ༩Λ$PMMFDUPSଆͰ࣮ݱ w ϕϯμʔ(Pͷ࣮͚ͩ༻ҙ͢Εྑ͍
©2018 Wantedly, Inc. ·ͱΊ w 0QFO$FOTVTΛࢄτϨʔγϯάͰར༻͢ΔϝϦοτ w ϕϯμʔͱίʔυͷͷ࣮ݱ w ϩάϝτϦΫεͷऩूͷ֦ுੑ
w ΤίγεςϜͷେ͖͞ w 8BOUFEMZ *ODʹ͓͚ΔࢄτϨʔγϯά w 4IBSFE-JCSBSZʹΑΔ࣮ͷڞ௨Խ w ݕࡧͷͨΊͷϝλσʔλͷૹ৴