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
250
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
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
880
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
440
地方のPHPerもクラウドを使う理由 ~コストの最適化とチームに向き合う~ / Why even local PHPers use the cloud ~optimize costs and face the team
seike460
PRO
0
77
OpenTelemetryで始めるベンダーフリーなobservability / Vendor-free observability starting with OpenTelemetry
seike460
PRO
0
210
AIコーディングの本質は“コード“ではなく“構造“だった / The essence of AI coding is not “code” but "structure
seike460
PRO
2
1.2k
OpenTelemetryを活用したObservability入門 / Introduction to Observability with OpenTelemetry
seike460
PRO
1
840
Amazon Q Developer Proで効率化するAPI開発入門
seike460
PRO
0
430
実行委員長が振り返るBacklogWorldの裏側と運営Backlog術 / The chairperson of the executive committee looks back on the backstage of BacklogWorld and the art of managing Backlog.
seike460
PRO
0
16
Amazon Aurora DSQLパフォーマンスチェック / Amazon Aurora DSQL Performance Check
seike460
PRO
0
32
Other Decks in Programming
See All in Programming
AI 駆動開発におけるコミュニティと AWS CDK の価値
konokenj
5
280
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
520
Devvox Belgium - Agentic AI Patterns
kdubois
1
150
AkarengaLT vol.38
hashimoto_kei
1
130
CSC305 Lecture 09
javiergs
PRO
0
320
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
Claude CodeによるAI駆動開発の実践 〜そこから見えてきたこれからのプログラミング〜
iriikeita
0
360
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
440
Ktorで簡単AIアプリケーション
tsukakei
0
110
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
260
Foundation Modelsを実装日本語学習アプリを作ってみた!
hypebeans
0
130
PHPに関数型の魂を宿す〜PHP 8.5 で実現する堅牢なコードとは〜 #phpcon_hiroshima / phpcon-hiroshima-2025
shogogg
1
340
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
Speed Design
sergeychernyshev
32
1.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
The World Runs on Bad Software
bkeepers
PRO
72
11k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Mobile First: as difficult as doing things right
swwweet
225
10k
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/
͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠