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
AWS X-Rayを利用したサーバーレスのパフォーマンス分析 / Serverless p...
Search
shiro seike
PRO
September 05, 2024
Programming
2
200
AWS X-Rayを利用したサーバーレスのパフォーマンス分析 / Serverless performance analysis using AWS X-Ray
shiro seike
PRO
September 05, 2024
Tweet
Share
More Decks by shiro seike
See All by shiro seike
Amazon Q Developer Proで効率化するAPI開発入門
seike460
PRO
0
120
(再)ひとり技術広報からの脱却 / Re:Breaking away from one-man technical public relations
seike460
PRO
1
140
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
900
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
260
AWS reInvent 2024サービスアップデートデモ / AWS reInvent 2024 Service Update Demo
seike460
PRO
0
44
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
620
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
1.2k
実践サーバーレスパフォーマンスチューニング ~その実力に迫る~ / Practical Serverless Performance Tuning ~A Close Look at its Power~
seike460
PRO
2
390
PHPを書く理由、PHPを書いていて良い理由 / Reasons to write PHP and why it is good to write PHP
seike460
PRO
5
680
Other Decks in Programming
See All in Programming
AIプログラミング雑キャッチアップ
yuheinakasaka
9
1.5k
ソフトウェアエンジニアの成長
masuda220
PRO
12
2k
DROBEの生成AI活用事例 with AWS
ippey
0
140
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
160
AI Agent系IDEを使って 開発生産性を爆アゲする
ouchi2501
1
100
CI改善もDatadogとともに
taumu
0
180
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
180
.NET Frameworkでも汎用ホストが使いたい!
tomokusaba
0
180
Datadog Workflow Automation で圧倒的価値提供
showwin
1
100
法律の脱レガシーに学ぶフロントエンド刷新
oguemon
5
740
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
5
400
Domain-Driven Transformation
hschwentner
2
1.9k
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Bash Introduction
62gerente
611
210k
Navigating Team Friction
lara
183
15k
How to Think Like a Performance Engineer
csswizardry
22
1.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
What's in a price? How to price your products and services
michaelherold
244
12k
Become a Pro
speakerdeck
PRO
26
5.2k
Producing Creativity
orderedlist
PRO
344
40k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
KATA
mclloyd
29
14k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Transcript
©Fusic Co., Ltd. 1 AWS X-RayΛར༻ͨ͠ αʔόʔϨεͷύϑΥʔϚϯεੳ 2024.09.05 @seike460 Fusic
x ϑΥʔδϏδϣϯ x Ϋϥεϝιου Vol.2
©Fusic Co., Ltd. 2 ਗ਼Ո ࢙ @seike460 AWS Community Builder
Serverless BacklogWorld2024 ࣮ߦҕһ 12/14 at ԣ ίϛϡχςΟ Fukuoka.php Fukuoka.go JAWS-UG Fukuoka Serverless Meetup Fukuoka Cloudflare Meetup Fukuoka JP_Stripes Fukuoka ࣗݾհ ͡Ίʹ גࣜձࣾFusic ϓϦϯγύϧΤϯδχΞ/ΤόϯδΣϦετ
©Fusic Co., Ltd. 3 CONTENTS ࣍ 1. AWS X-Rayͱ 2.
ద༻ํ๏ 3. Demo 4. AWS X-RayͷϝϦοτͱڥք 5. ·ͱΊ
©Fusic Co., Ltd. 4 AWS X-Rayͱ 1
©Fusic Co., Ltd. 5 AWS X-Ray ΞϓϦέʔγϣϯͷύϑΥʔϚϯεΛ͠ՄࢹԽ͢ΔͨΊͷαʔϏε τϨʔεΛͬͯࢄγεςϜͷϦΫΤετͷྲྀΕΛࢹ֮Խ ಛʹαʔόʔϨεΞʔΩςΫνϟͰ༗༻
©Fusic Co., Ltd. 6 AWS X-Ray ͷΈ - τϨʔγϯάσʔλͷऩू -
࠷ॳʹτϨʔε IDΛੜͯ͠ɺ֤छαʔϏεʹ࿈ܞ - τϨʔεηάϝϯτΛར༻ͯ͠ՄࢹԽ͢Δ - LambdaɺAPI GatewayɺDynamoDB ͳͲͷαʔϏε - ޙड़ͷҙͷαϒηάϝϯτͷ֓೦ಋೖՄೳ - τϨʔεͷྲྀΕ - ϦΫΤετ͕ͲͷαʔϏεΛ௨ա͢Δ͔ΛՄࢹԽ Ͳ͜Ͱ͍͔ɺΤϥʔ͕ൃੜ͍ͯ͠ͳ͍͔֬ೝՄೳ
©Fusic Co., Ltd. 7 ద༻ํ๏ 2
©Fusic Co., Ltd. 8 AWS X-Rayͷ༗ޮԽ - AWS SAMͳͲʹͯ༗ޮԽ -
Globalsʹهड़͢Δ͜ͱՄ - AWS X-Rayͷ ॻࠐݖݶΕͣʹ
©Fusic Co., Ltd. 9 Python ϓϩδΣΫτͰͷ X-Ray ಋೖ
©Fusic Co., Ltd. 10 Python ϓϩδΣΫτͰͷ X-Ray ಋೖ
©Fusic Co., Ltd. 11 SDKؔ܊ patch_all() … Xrayͷ༗ޮԽ SQSϦιʔε୯ҐͰͷTrace xray_recorder()
… ؔ୯Ґ ઃఆ͍ͯ͠ΔؔͷTrace in_subsegment() … ࢦఆ୯Ґ ࢦఆൣғͷTrace
©Fusic Co., Ltd. 12 X-Ray ͷ࣮ߦྫ
©Fusic Co., Ltd. 13 AWS X-Ray ηάϝϯτͷλΠϜϥΠϯ
©Fusic Co., Ltd. 14
©Fusic Co., Ltd. 15 ϦΫΤετʹؔΘΔαʔϏεͷՄࢹԽ
©Fusic Co., Ltd. 16 Τϥʔ࣌ͷঢ়گͷτϨʔγϯάϩά֬ೝ
©Fusic Co., Ltd. 17 Demo 3
©Fusic Co., Ltd. 18 AWS X-RayͷϝϦοτͱڥք 4
©Fusic Co., Ltd. 19 AWS X-Ray Λ༻͢ΔϝϦοτͱରԠՄೳൣғ - ϘτϧωοΫͷಛఆ -
ΤϥʔύϑΥʔϚϯεͷ τϥϒϧγϡʔςΟϯά - StepFunctionsͳͲͩͱ ؤுͬͯ͏ʂͰ͓ख্͛ - ࢄγεςϜʹ͓͚Δ ϦΫΤετͷτϥοΩϯά
©Fusic Co., Ltd. 20 ίʔυϨϕϧʹͳΔͱಛఆ͍͠ ʮͲͷίʔυͰʯΛಛఆ͢Δʹ AWS X-RayͰͨΓΛ͚ͭͨޙʹ ؔϓϩϑΝΠϦϯά͠ͳ͍ͱ͍͠ ▪ؔϓϩϑΝΠϦϯά
Python CProfiler -> SnakeViz PHP Xdebug -> Xhprof ͜ΕΛLambdaͰ࣮͢Δඞཁ͋Γ
©Fusic Co., Ltd. 21 ίʔυϨϕϧʹͳΔͱಛఆ͍͠
©Fusic Co., Ltd. 22 JAWS FESTAʹ࣮ͯྗʹഭΒͳ͚ΕͳΒͳ͍ JAWS FESTA 2024ʹࢀՃ͞ΕΔํʂͥͻฉ͖ʹདྷ͍ͯͩ͘͞ʂ
©Fusic Co., Ltd. 23 ·ͱΊ 5
©Fusic Co., Ltd. 24 ·ͱΊ AWS X-RayɺαʔόʔϨεΞʔΩςΫνϟͷ֤ίϯϙʔωϯτؒͰͷϦΫΤετͷྲྀΕΛՄࢹԽग़དྷΔ Point 01 Step
FunctionsͳͲͷࢄγεςϜͰ͕ൃੜ͍ͯ͠Δ͔ΛτϨʔε͠ɺΤϥʔΛޮతʹಛఆग़དྷΔ Point 02 SDKΛར༻͢Δ͜ͱͰؔ୯Ґαϒηάϝϯτ୯ҐͰͷৄࡉͳτϨʔγϯάΛ࣮ݱग़དྷΔ Point 03 ؔϓϩϑΝΠϦϯάπʔϧͰͷಛఆͰΑΓਂງΓՄೳɺJAWS FESTA 2024ͷൃදฉ͖ʹདྷ͍ͯͩ͘͞ʂ Point 04
©Fusic Co., Ltd. 25 Thank You We are Hiring! https://recruit.fusic.co.jp/
͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠