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
36k
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.3k
Other Decks in Technology
See All in Technology
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
360
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
370
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.1k
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
290
いざ、BSC討伐の旅
nikinusu
2
780
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
The Role of Developer Relations in AI Product Success.
giftojabu1
0
120
ハイパーパラメータチューニングって何をしているの
toridori_dev
0
140
Featured
See All Featured
Six Lessons from altMBA
skipperchong
27
3.5k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Done Done
chrislema
181
16k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Unsuck your backbone
ammeep
668
57k
For a Future-Friendly Web
brad_frost
175
9.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
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 ݕࡧͷͨΊͷϝλσʔλͷૹ৴