{"id":28070,"date":"2025-01-17T12:56:55","date_gmt":"2025-01-17T03:56:55","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=28070"},"modified":"2025-01-17T12:56:55","modified_gmt":"2025-01-17T03:56:55","slug":"aws-x-ray-sdk-for-python-%e5%ae%9f%e8%b7%b5%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b9%e8%a8%ad%e5%ae%9a%e3%81%8b%e3%82%89%e5%8f%af%e8%a6%96%e5%8c%96%e3%81%be%e3%81%a7","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/aws-x-ray-sdk-for-python-%e5%ae%9f%e8%b7%b5%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b9%e8%a8%ad%e5%ae%9a%e3%81%8b%e3%82%89%e5%8f%af%e8%a6%96%e5%8c%96%e3%81%be%e3%81%a7\/","title":{"rendered":"AWS X-Ray SDK for Python \u5b9f\u8df5\u30ac\u30a4\u30c9\uff1a\u30c8\u30ec\u30fc\u30b9\u8a2d\u5b9a\u304b\u3089\u53ef\u8996\u5316\u307e\u3067\u6df1\u5800\u308a\u3057\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b <a id=\"intro\"><\/a><\/h2>\n<p>\u4eca\u56de\u306f <strong>X-Ray SDK for Python<\/strong> \u306e\u4f7f\u3044\u65b9\u3068\u3001\u5b9f\u969b\u306bAWS\u4e0a\u3067\u8a2d\u5b9a\u3057\u3066\u3069\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u304b\u306b\u3064\u3044\u3066\u6df1\u6398\u308a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u4eca\u56de\u5229\u7528\u3059\u308b\u74b0\u5883\u3000<a id=\"\u4eca\u56de\u5229\u7528\u3059\u308b\u74b0\u5883\"><\/a><\/h3>\n<p>API Gateway\u306bAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3059\u308b\u3068\u3001Lambda\u304cDynamoDB\u3068S3\u306b\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3046\u69cb\u6210\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305f\u3001CloudShell\u304b\u3089CloudFormation(SAM)\u3092\u5b9f\u884c\u3057\u74b0\u5883\u30c7\u30d7\u30ed\u30a4\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\" alt=\"\" width=\"702\" height=\"318\" class=\"size-full wp-image-28092 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg 702w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6-300x136.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a>\n<ul>\n<li>AWS\u69cb\u6210: API Gateway + Lambda + DyanmoDB \/ S3<\/li>\n<li>SAM CLI:  1.131.0<\/li>\n<li>Python: 3.9<\/li>\n<li>aws-xray-sdk: 2.14.0<\/li>\n<\/ul>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#intro\">\u306f\u3058\u3081\u306b<\/a>\n<ul>\n<li><a href=\"#\u4eca\u56de\u5229\u7528\u3059\u308b\u74b0\u5883\">\u4eca\u56de\u5229\u7528\u3059\u308b\u74b0\u5883<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#AWSX-RaySDKforPython\u8a2d\u5b9a\u65b9\u6cd5\">AWS X-Ray SDK for Python \u8a2d\u5b9a\u65b9\u6cd5<\/a>\n<ul>\n<li><a href=\"#\u305d\u306e1-\u624b\u52d5\u3067\u958b\u59cb\u4f4d\u7f6e\u3068\u7d42\u4e86\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\">\u305d\u306e1: \u624b\u52d5\u3067\u958b\u59cb\u4f4d\u7f6e\u3068\u7d42\u4e86\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b<\/a><\/li>\n<li><a href=\"#\u305d\u306e2-\u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\">\u305d\u306e2: \u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b<\/a><\/li>\n<li><a href=\"#\u305d\u306e3-sdk\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\">\u305d\u306e3: SDK\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li>\n<li><a href=\"#\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\">\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b\">\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b<\/a>\n<ul>\n<li><a href=\"#\u30c7\u30d7\u30ed\u30a4\u624b\u9806\">\u30c7\u30d7\u30ed\u30a4\u624b\u9806<\/a><\/li>\n<li><a href=\"#lambda\u3067sdk\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\">Lambda\u3067SDK\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#AWS\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30c8\u30ec\u30fc\u30b9\u6709\u52b9\u5316\u3068SDK\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b\">AWS\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30c8\u30ec\u30fc\u30b9\u6709\u52b9\u5316\u3068SDK\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b<\/a>\n<ul>\n<li><a href=\"#1-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9-lambda\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9--sdk\u3092\u7121\u52b9\">1: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9 \/ SDK\u3092\u7121\u52b9<\/a><\/li>\n<li><a href=\"#2-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--sdk\u3092\u7121\u52b9\">2: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ SDK\u3092\u7121\u52b9<\/a><\/li>\n<li><a href=\"#3-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--sdk\u3092\u6709\u52b9\">3: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ SDK\u3092\u6709\u52b9<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2>AWS X-Ray SDK for Python \u8a2d\u5b9a\u65b9\u6cd5\u3000<a id=\"AWSX-RaySDKforPython\u8a2d\u5b9a\u65b9\u6cd5\"><\/a><\/h2>\n<p>\u307e\u305a\u306f\u3058\u3081\u306b\u3001AWS X-Ray SDK for Python \u306e\u4f7f\u3044\u65b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>\u53c2\u7167\uff1a aws-xray-sdk - Basic Usage<br \/>\n<a href=\"https:\/\/docs.aws.amazon.com\/xray-sdk-for-python\/latest\/reference\/basic.html#manually-create-segment-subsegment\">https:\/\/docs.aws.amazon.com\/xray-sdk-for-python\/latest\/reference\/basic.html#manually-create-segment-subsegment<\/a><\/p>\n<\/blockquote>\n<p>X-Ray SDK for Python \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u306e\u901a\u308a\u3067\u3059\u304c\u3001\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u3067\u5404\u7b87\u6240\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u8a2d\u5b9a\u65b9\u6cd5\u306f\uff13\u3064\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u307f\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>\u305d\u306e1: \u624b\u52d5\u3067\u958b\u59cb\u4f4d\u7f6e\u3068\u7d42\u4e86\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u3000<a id=\"\u305d\u306e1-\u624b\u52d5\u3067\u958b\u59cb\u4f4d\u7f6e\u3068\u7d42\u4e86\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\"><\/a><\/h3>\n<p>\u7279\u5b9a\u306e\u7b87\u6240\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n<strong>segments<\/strong> \/ <strong>subsegments<\/strong> \u3092\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4efb\u610f\u306e\u7b87\u6240\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067begin~end\u307e\u3067\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\nfrom aws_xray_sdk.core import xray_recorder\nxray_recorder.begin_segment('name')\n\n# your code here\n\nxray_recorder.begin_subsegment('name')\n# some code block you want to record\nxray_recorder.end_subsegment()\n\nxray_recorder.end_segment()\n<\/pre>\n<h3>\u305d\u306e2: \u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b <a id=\"\u305d\u306e2-\u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\"><\/a><\/h3>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5404\u6240\u306b\u958b\u59cb\u3068\u7d42\u4e86\u306e\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3093\u3067\u3044\u304f\u306e\u306f\u975e\u5e38\u306b\u624b\u9593\u3067\u3059\u3002\u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u95a2\u6570\u3092\u30b5\u30d6\u30bb\u30b0\u30e1\u30f3\u30c8\u3068\u3057\u8a08\u6e2c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u7279\u5b9a\u306e\u95a2\u6570\u306b\u304b\u304b\u308b\u6642\u9593\u3092\u8a08\u6e2c\u3057\u305f\u3044\u3068\u304d\u306f\u3053\u3061\u3089\u306e <strong>capture<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>\n@xray_recorder.capture('name')\ndef my_func():\n    #do something\n<\/pre>\n<h3>\u305d\u306e3: SDK\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b <a id=\"\u305d\u306e3-sdk\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\"><\/a><\/h3>\n<p>\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001<strong>patch_all()<\/strong> \u3067\u30ea\u30af\u30a8\u30b9\u30c8~\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30b5\u30fc\u30d3\u30b9\u30fb\u30b7\u30b9\u30c6\u30e0\u304c\u5206\u5272\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u5834\u5408\u3001DB\u63a5\u7d9a\u3084HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u3069\u5916\u90e8\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u51e6\u7406\u3092\u81ea\u52d5\u3067\u8a08\u6e2c\u3057\u3066\u304f\u308c\u308b\u306e\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<pre>\nfrom aws_xray_sdk.core import patch_all\n\npatch_all()\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u901a\u308a\u3001\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u307f\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\nfrom aws_xray_sdk.core import patch\n\ni_want_to_patch = ('botocore') #a tuple that contains the libs you want to patch\npatch(i_want_to_patch)\n<\/pre>\n<p>\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3001AWS\u30b5\u30fc\u30d3\u30b9\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u3069\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u63a5\u7d9a\u306f\u4e00\u901a\u308a\u5229\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>\u53c2\u7167\uff1aThird Party Library Support<br \/>\n<a href=\"https:\/\/docs.aws.amazon.com\/xray-sdk-for-python\/latest\/reference\/thirdparty.html\">https:\/\/docs.aws.amazon.com\/xray-sdk-for-python\/latest\/reference\/thirdparty.html<\/a><\/p>\n<p>--<br \/>\nSUPPORTED_MODULES = (<br \/>\n'aioboto3',<br \/>\n'aiobotocore',<br \/>\n'boto3',<br \/>\n'botocore',<br \/>\n'pynamodb',<br \/>\n'requests',<br \/>\n'sqlite3',<br \/>\n'mysql',<br \/>\n'httplib',<br \/>\n'pymongo',<br \/>\n'pymysql',<br \/>\n'psycopg2',<br \/>\n'pg8000',<br \/>\n'sqlalchemy_core',<br \/>\n'httpx',<br \/>\n)<\/p>\n<\/blockquote>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f\u8a73\u7d30\u307e\u3067\u306f\u89e6\u308c\u307e\u305b\u3093\u304c\u3001<br \/>\nX-Ray SDK for Python \u3067\u306f\u4e0b\u8a18\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Django<\/li>\n<li>Flask<\/li>\n<li>Aiohttp<\/li>\n<\/ul>\n<h3>\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a <a id=\"\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\"><\/a><\/h3>\n<p>\u4ed6\u306b\u3082\u3001\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30fb\u30e1\u30bf\u30c7\u30fc\u30bf\u3068\u3044\u3063\u305f\u60c5\u5831\u3092\u30c8\u30ec\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308b\u30e6\u30fc\u30b6\u30fcID\u3084\u30bb\u30c3\u30b7\u30e7\u30f3ID\u306a\u3069\u306e\u60c5\u5831\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30bf\u30fc\u30f3\u3084\u554f\u984c\u767a\u751f\u6642\u306e\u72b6\u6cc1\u3092\u5206\u6790\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\nfrom aws_xray_sdk.core import xray_recorder\n\nsegment = xray_recorder.current_segment()\n# value can be string, number or bool\nsegment.put_annotation('key', value)\n# namespace and key must be string and value is an object\n# that can be serialized to json\nsegment.put_metadata('key', json, 'namespace')\n<\/pre>\n<p>\u305f\u3068\u3048\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u3059\u308b\u3068 subsegment_1 \u306b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30fb\u30e1\u30bf\u30c7\u30fc\u30bf\u60c5\u5831\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\nxray_recorder.begin_subsegment('subsegment_1')\n\nsegment = xray_recorder.current_subsegment()\n# value can be string, number or bool\nsegment.put_annotation('annotation1', \"annotation test\")\n# namespace and key must be string and value is an object\n# that can be serialized to json\nsegment.put_metadata('data', {\"key1\": \"value1\"}, 'subsegment_1_metadata')\nxray_recorder.end_subsegment()\n<\/pre>\n<p>\u5b9f\u969b\u306eX-Ray\u3067\u306e\u8868\u793a\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b-1024x472.jpg\" alt=\"\" width=\"728\" height=\"336\" class=\"size-large wp-image-28076 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b-1024x472.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b-300x138.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b-768x354.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b-728x335.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/196d4323371b5895d6bfbedb2601242b.jpg 1415w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h2>\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b <a id=\"\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b\"><\/a><\/h2>\n<p>API Gateway \u306eX-Ray\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9\u306b\u3057\u3064\u3064\u3001Lambda\u3067X-Ray\u3092\u6709\u52b9\u306b\u3057\u305f\u3082\u306e\u3068\u3057\u3066\u3044\u306a\u3044\u3082\u306e\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u898b\u6bd4\u3079\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u306f\u3001API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3068\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092DynamoDB\u306b\u4fdd\u5b58\u3057\u3001\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u3092S3\u306b\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u7c21\u5358\u306a\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u6210\uff1a<\/p>\n<ul>\n<li>API Gateway: RESTful API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/li>\n<li>Lambda: \u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306e\u51e6\u7406<\/li>\n<li>DynamoDB: \u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306e\u4fdd\u5b58<\/li>\n<li>S3: \u30e6\u30fc\u30b6\u30fc\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58<\/li>\n<\/ul>\n<\/blockquote>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\" alt=\"\" width=\"702\" height=\"318\" class=\"size-full wp-image-28092 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg 702w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6-300x136.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a>\n<p>CloudFormation\u3067\u4f5c\u6210\u3057\u305f\u306e\u3067\u4e0b\u8a18\u306e\u901a\u308a\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30c7\u30d7\u30ed\u30a4\u624b\u9806 <a id=\"\u30c7\u30d7\u30ed\u30a4\u624b\u9806\"><\/a><\/h3>\n<h4>CloudFormation\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h4>\n<p>CloudShell\u304b\u3089\u4e0b\u8a18\u306e\u901a\u308a\u5b9f\u884c\u3057\u3066\u74b0\u5883\u30c7\u30d7\u30ed\u30a4\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u69cb\u6210\u3068\u306a\u308b\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre>\nproject\/\n  \u251c\u2500\u2500 template.yaml\n  \u2514\u2500\u2500 src\/\n      \u251c\u2500\u2500 app.py\n      \u2514\u2500\u2500 requirements.txt\n<\/pre>\n<ul>\n<li>template.yaml<\/li>\n<\/ul>\n<pre>\nAWSTemplateFormatVersion: '2010-09-09'\nTransform: AWS::Serverless-2016-10-31\n\nParameters:\n  EnvironmentName:\n    Type: String\n    Default: xray-sample\n    Description: Environment name\n\nResources:\n  # API Gateway\n  ApiGateway:\n    Type: AWS::Serverless::Api\n    Properties:\n      StageName: dev\n      TracingEnabled: true\n\n  # Lambda Function\n  ProcessUserFunction:\n    Type: AWS::Serverless::Function\n    Properties:\n      CodeUri: .\/src\/\n      Handler: app.lambda_handler\n      Runtime: python3.9\n      Timeout: 15\n      Architectures:\n        - x86_64\n      Tracing: Active\n      Policies:\n        - DynamoDBCrudPolicy:\n            TableName: !Ref UserTable\n        - S3CrudPolicy:\n            BucketName: !Ref UserFilesBucket\n      Environment:\n        Variables:\n          TABLE_NAME: !Ref UserTable\n          BUCKET_NAME: !Ref UserFilesBucket\n      Events:\n        ApiEvent:\n          Type: Api\n          Properties:\n            Path: \/users\n            Method: post\n            RestApiId: !Ref ApiGateway\n\n  # DynamoDB Table\n  UserTable:\n    Type: AWS::DynamoDB::Table\n    Properties:\n      TableName: !Sub ${EnvironmentName}-users-table\n      AttributeDefinitions:\n        - AttributeName: userId\n          AttributeType: S\n      KeySchema:\n        - AttributeName: userId\n          KeyType: HASH\n      BillingMode: PAY_PER_REQUEST\n\n  # S3 Bucket\n  UserFilesBucket:\n    Type: AWS::S3::Bucket\n    Properties:\n      BucketName: !Sub ${AWS::StackName}-user-files\n\nOutputs:\n  ApiEndpoint:\n    Description: API Gateway endpoint URL\n    Value: !Sub https:\/\/${ApiGateway}.execute-api.${AWS::Region}.amazonaws.com\/dev\/users\n<\/pre>\n<ul>\n<li>src\/app.py<\/li>\n<\/ul>\n<pre>\nimport json\nimport os\nimport boto3\nimport uuid\nimport time\n\nfrom aws_xray_sdk.core import patch_all\nfrom aws_xray_sdk.core import xray_recorder\n\n# \u305d\u306e3: \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b5\u30dd\u30fc\u30c8\n# X-Ray SDK\u3067boto3\u3092\u30d1\u30c3\u30c1\npatch_all()\n\n### \u305d\u306e1: \u624b\u52d5\u3067\u30c8\u30ec\u30fc\u30b9\u306e\u958b\u59cb\u3068\u7d42\u4e86\u3092\u6307\u5b9a\ndef xray_function_sample1():\n    xray_recorder.begin_segment('segment_1')    \n    xray_recorder.begin_subsegment('subsegment_1')\n    time.sleep(0.1)\n\n    segment = xray_recorder.current_subsegment()\n    # value can be string, number or bool\n    segment.put_annotation('annotation1', \"annotation test\")\n    # namespace and key must be string and value is an object\n    # that can be serialized to json\n    segment.put_metadata('data', {\"key1\": \"value1\"}, 'subsegment_1_metadata')\n\n    xray_recorder.begin_subsegment('subsegment_2')\n    time.sleep(0.1)\n    xray_recorder.begin_subsegment('subsegment_3-1')\n    time.sleep(0.1)\n    xray_recorder.end_subsegment()\n    xray_recorder.begin_subsegment('subsegment_3-2')\n    time.sleep(0.1)\n    xray_recorder.end_subsegment()\n    xray_recorder.end_subsegment()\n    xray_recorder.end_subsegment()\n    xray_recorder.end_segment()\n\n# \u305d\u306e2: \u95a2\u6570\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\n@xray_recorder.capture('xray_function_sample2')\ndef xray_function_sample2():\n    xray_recorder.begin_subsegment('subsegment_1')\n    time.sleep(0.1)\n    xray_recorder.end_subsegment()\n\n# \u305d\u306e3: \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b5\u30dd\u30fc\u30c8\ndef xray_function_sample3(body, user_id):\n    try:\n        xray_recorder.begin_subsegment('boto test')\n\n        # AWS \u30b5\u30fc\u30d3\u30b9\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u521d\u671f\u5316\n        dynamodb = boto3.resource('dynamodb')\n        s3 = boto3.client('s3')\n\n        # DynamoDB\u306b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4fdd\u5b58\n        table = dynamodb.Table(os.environ['TABLE_NAME'])\n        table.put_item(\n            Item={\n                'userId': user_id,\n                'name': body.get('name'),\n                'email': body.get('email')\n            }\n        )\n\n        # S3\u306b\u30c0\u30df\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\n        bucket_name = os.environ['BUCKET_NAME']\n        file_content = f\"User data for {user_id}\"\n        s3.put_object(\n            Bucket=bucket_name,\n            Key=f\"users\/{user_id}\/info.txt\",\n            Body=file_content\n        )\n\n        return {\n            'statusCode': 200,\n            'body': json.dumps({\n                'userId': user_id,\n                'message': 'User created successfully'\n            })\n        }\n        xray_recorder.end_subsegment()\n\n    except Exception as e:\n        return {\n            'statusCode': 500,\n            'body': json.dumps({\n                'error': str(e)\n            })\n        }\n\ndef lambda_handler(event, context):\n    # \u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306e\u53d6\u5f97\n    body = json.loads(event['body'])\n    # \u30e6\u30fc\u30b6\u30fcID\u306e\u751f\u6210\n    user_id = str(uuid.uuid4())\n\n    # 1. segments\/subsegments\u3067\u30c8\u30ec\u30fc\u30b9\u3055\u308c\u308b\u30b5\u30f3\u30d7\u30eb\n    xray_function_sample1()\n\n    # 2. \u95a2\u6570\u30c7\u30b3\u30ec\u30fc\u30bf\u3067\u30c8\u30ec\u30fc\u30b9\u3055\u308c\u308b\u30b5\u30f3\u30d7\u30eb\n    xray_function_sample2()\n\n    # 3. \u4ee5\u4e0b\u3001boto\u306fpatch_all()\u306b\u3066\u30c8\u30ec\u30fc\u30b9\u3055\u308c\u308b\u30b5\u30f3\u30d7\u30eb\n    res = xray_function_sample3(body, user_id)\n\n    return res\n<\/pre>\n<ul>\n<li>src\/requirements.txt<\/li>\n<\/ul>\n<pre>\naws-xray-sdk\n<\/pre>\n<h4>2. \u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>aws-xray-sdk\u306f\u5c55\u958b\u3057\u3066Lambda\u3078\u4e00\u7dd2\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\npip install -r src\/requirements.txt -t .\/src\n<\/pre>\n<h4>3. \u30c7\u30d7\u30ed\u30a4\u306e\u5b9f\u884c<\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u6e96\u5099\u3067\u304d\u305f\u3089SAM\u30c7\u30d7\u30ed\u30a4\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u203bsam-cli\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u74b0\u5883\u306e\u5834\u5408\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304b\u3089\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>\nsam build\nsam deploy --guided\n<\/pre>\n<p>\u53c2\u8003\u307e\u3067\u306b\u4e0b\u8a18\u306e\u901a\u308a\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3baeda834f43e7e7992fb50b72d002f2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3baeda834f43e7e7992fb50b72d002f2.jpg\" alt=\"\" width=\"746\" height=\"278\" class=\"size-full wp-image-28150 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3baeda834f43e7e7992fb50b72d002f2.jpg 746w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3baeda834f43e7e7992fb50b72d002f2-300x112.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3baeda834f43e7e7992fb50b72d002f2-728x271.jpg 728w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/a>\n<h4>4. API\u5b9f\u884c<\/h4>\n<p>SAM\u306e\u5b9f\u884c\u7d50\u679c\u306b\u3042\u308b\u3001ApiEndpoint \u306e\u5024\u304b\u3089API Gateway \u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u78ba\u8a8d\u3057\u3001\u4e0b\u8a18\u306e\u901a\u308a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncurl -X POST https:\/\/{ApiEndpoint}\/dev\/users \\\n-H \"Content-Type: application\/json\" \\\n-d '{\"name\": \"Test User\", \"email\": \"test@example.com\"}'\n<\/pre>\n<p>API\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u969b\u306eURL\u306b\u3064\u3044\u3066\u306f\u3001sam deploy\u306eOutPuts\u306bURL\u304c\u51fa\u529b\u3055\u308c\u308b\u306e\u3067\u305d\u3061\u3089\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b.jpg\" alt=\"\" width=\"994\" height=\"366\" class=\"size-full wp-image-28153 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b.jpg 994w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b-300x110.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b-768x283.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/8f5010a52faa7fa54695160e1694aa4b-728x268.jpg 728w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/a>\n<h4>5. \u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<p>AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u300cCloudWatch - X-Ray\u30c8\u30ec\u30fc\u30b9 - \u30c8\u30ec\u30fc\u30b9\u300d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u65b0\u306e\u30c8\u30ec\u30fc\u30b9\u306b\u5148\u307b\u3069\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u305d\u3061\u3089\u3092\u62bc\u4e0b\u3057\u3066\u30c8\u30ec\u30fc\u30b9\u3055\u308c\u305f\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf-1024x570.jpg\" alt=\"\" width=\"728\" height=\"405\" class=\"size-large wp-image-28083 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf-1024x570.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf-300x167.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf-768x428.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf-728x405.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/f104d1d978a643b63ef47d1d4d1321cf.jpg 1207w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u3053\u306e\u3088\u3046\u306b\u30c8\u30ec\u30fc\u30b9\u304c\u78ba\u8a8d\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<br \/>\n\u300c\u30c8\u30ec\u30fc\u30b9\u306e\u8a73\u7d30\u300d\u3092\u898b\u308b\u3068\u3001<br \/>\nAPI Gateway\u304b\u3089Lambda\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u305d\u308c\u305e\u308cDynamoDB\u3068S3\u3078\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71-1024x441.jpg\" alt=\"\" width=\"728\" height=\"314\" class=\"size-large wp-image-28085 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71-1024x441.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71-300x129.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71-768x331.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71-728x314.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/2773e5116999cc3f37c855794b628f71.jpg 1247w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u7d9a\u3044\u3066\u3001\u300c\u30bb\u30b0\u30e1\u30f3\u30c8\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u300d\u3092\u898b\u3066\u307f\u307e\u3059\u3002<br \/>\n\u305d\u308c\u305e\u308c <strong>\u30bb\u30b0\u30e1\u30f3\u30c8\uff08\u51e6\u7406\uff09\u306b\u304b\u304b\u3063\u305f\u6642\u9593<\/strong> \u3068 <strong>\u51e6\u7406\u304c\u6210\u529f\u30fb\u5931\u6557<\/strong> \u3057\u305f\u304b\u304c\u4e0b\u8a18\u306e\u901a\u308a\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\nAPI Gateway\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1\u3057\u3066\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u307e\u3067\u306e\u6642\u9593\u3068\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306eLambda\u304c\u305d\u308c\u305e\u308c\u306e\u51e6\u7406\u306b\u304b\u304b\u3063\u305f\u6642\u9593\u3092\u7c21\u5358\u306b\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc-1024x639.jpg\" alt=\"\" width=\"728\" height=\"454\" class=\"size-large wp-image-28088 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc-1024x639.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc-300x187.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc-768x479.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc-728x454.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1319b12b93396a85cb20ff8871e20dcc.jpg 1258w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u307e\u305f\u3001SDK\u306e\u8a08\u6e2c\u65b9\u6cd5\u305d\u308c\u305e\u308c\uff13\u7a2e\u985e\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<br \/>\nsubsegments\u306e\u5165\u308c\u5b50\u69cb\u9020\u3084\u3001\u95a2\u6570\u30c7\u30b3\u30ec\u30fc\u30bf\u5185\u306esubsegements\u306a\u3069\u3001\u610f\u56f3\u901a\u308a\u8a08\u6e2c\u304c\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350.jpg\" alt=\"\" width=\"843\" height=\"577\" class=\"size-full wp-image-28089\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350.jpg 843w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350-300x205.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350-768x526.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/025d28e52008a00d1c577608284ce350-728x498.jpg 728w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/a>\n<h4>Lambda\u3067SDK\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9<\/h4>\n<p>\u5b9f\u884c\u6642\u306eLogs\u306b\u3082\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001Lambda\u3067\u306f <strong>segments<\/strong> \u306f\u5229\u7528\u3067\u304d\u305a\u3001<strong>subsegments<\/strong> \u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<br \/>\n\u53c2\u8003\u307e\u3067\u306b\u3001\u4e0b\u8a18\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<blockquote>\n[WARNING] Cannot create segments inside Lambda function. Discarded.<\/p>\n<\/blockquote>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a-1024x270.jpg\" alt=\"\" width=\"728\" height=\"192\" class=\"size-large wp-image-28090\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a-1024x270.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a-300x79.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a-768x202.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a-728x192.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5160569e18823b81de8450170f7e128a.jpg 1162w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h2>AWS\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30c8\u30ec\u30fc\u30b9\u6709\u52b9\u5316\u3068SDK\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b <a id=\"AWS\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30c8\u30ec\u30fc\u30b9\u6709\u52b9\u5316\u3068SDK\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b\"><\/a><\/h2>\n<p>\u4eca\u56de\u3001APIGateway\/Lambda\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9\u306b\u3057\u3001SDK\u306b\u3066\u5185\u90e8\u306e\u30c8\u30ec\u30fc\u30b9\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u308c\u305e\u308c\u306e\u8a2d\u5b9a\u3067\u3069\u3053\u307e\u3067\u53d6\u5f97\u3067\u304d\u308b\u306e\u304b\u3082\u78ba\u8a8d\u3057\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>1: <strong>API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9<\/strong> \/Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9 \/ SDK\u3092\u7121\u52b9<\/li>\n<li>2: <strong>API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9<\/strong> \/ SDK\u3092\u7121\u52b9<\/li>\n<li>3: <strong>API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ SDK\u3092\u6709\u52b9<\/strong><\/li>\n<\/ul>\n<p>\u5148\u307b\u3069\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3001\u8a2d\u5b9a\u3068\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u304b\u3089\u4fee\u6b63\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002\u203b\u7121\u52b9\u5316\u3059\u308b\u65b9\u6cd5\u306f\u4eca\u56de\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg\" alt=\"\" width=\"702\" height=\"318\" class=\"size-full wp-image-28092 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6.jpg 702w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/efd52d7166f77e07f897680dd90f89c6-300x136.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a>\n<h3>1: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9 \/ SDK\u3092\u7121\u52b9 <a id=\"1-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9-lambda\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9--sdk\u3092\u7121\u52b9\"><\/a><\/h3>\n<p>API Gateway \u306e\u30b9\u30c6\u30fc\u30b8\u8a2d\u5b9a\u3067\u3001\u300cX-Ray\u30c8\u30ec\u30fc\u30b9\u300d\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<br \/>\nLambda\u30c8\u30ec\u30fc\u30b9\u306f\u7121\u52b9\u5316\u306b\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314.jpg\" alt=\"\" width=\"886\" height=\"562\" class=\"size-full wp-image-28098 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314.jpg 886w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314-300x190.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314-768x487.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/6c04bf6b9d969ce57c944f516a259314-728x462.jpg 728w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/a>\n<p>\u3053\u306e\u72b6\u614b\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<br \/>\nAPI Gateway\u3068Lambda\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002S3\/DynamoDB\u306f\u8868\u793a\u3055\u308c\u305a\u3001SDK\u3082\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u306e\u3067Lambda\u5185\u306e\u30c8\u30ec\u30fc\u30b9\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u72b6\u614b\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11-1024x547.jpg\" alt=\"\" width=\"728\" height=\"389\" class=\"size-large wp-image-28099 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11-1024x547.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11-300x160.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11-768x410.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11-728x389.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/1822088ab2e594278e42d2c6af651a11.jpg 1062w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h3>2: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ SDK\u3092\u7121\u52b9 <a id=\"2-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--sdk\u3092\u7121\u52b9\"><\/a><\/h3>\n<p>\u7d9a\u3044\u3066\u3001Lambda\u306e\u30b5\u30fc\u30d3\u30b9\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf-1024x480.jpg\" alt=\"\" width=\"728\" height=\"341\" class=\"size-large wp-image-28100 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf-1024x480.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf-300x141.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf-768x360.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf-728x341.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/3d1c7e15fa5edf2a48efe6a1e4ce66bf.jpg 1043w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<br \/>\n\u4eca\u56de\u3082API Gateway\u3068Lambda\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002S3\/DynamoDB\u306f\u8868\u793a\u3055\u308c\u305a\u3001SDK\u3082\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u306e\u3067Lambda\u5185\u306e\u30c8\u30ec\u30fc\u30b9\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u72b6\u614b\u3067\u3059\u3002<br \/>\n\u9055\u3044\u3068\u3044\u3048\u3070\u4e00\u70b9\u3001Lambda Function\u306e\u60c5\u5831\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437.jpg\" alt=\"\" width=\"1021\" height=\"834\" class=\"size-full wp-image-28118 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437.jpg 1021w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437-300x245.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437-768x627.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/9ac5558ebbcfefbc2f717e0e563c8437-728x595.jpg 728w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/a>\n<h3>3: API Gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ Lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9 \/ SDK\u3092\u6709\u52b9 <a id=\"3-api-gateway\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--lambda\u30c8\u30ec\u30fc\u30b9\u3092\u6709\u52b9--sdk\u3092\u6709\u52b9\"><\/a><\/h3>\n<p>\u6700\u5f8c\u306bLambda\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067X-Ray SDK\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/ffde9484f70c569ab9600c311c653a91.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/ffde9484f70c569ab9600c311c653a91.jpg\" alt=\"\" width=\"610\" height=\"372\" class=\"size-full wp-image-28141 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/ffde9484f70c569ab9600c311c653a91.jpg 610w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/ffde9484f70c569ab9600c311c653a91-300x183.jpg 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a>\n<p>Lambda\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066API\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u3001Lambda\u304cboto3\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308bDynamoDB\u30fbS3\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec-1024x515.jpg\" alt=\"\" width=\"728\" height=\"366\" class=\"size-large wp-image-28120 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec-1024x515.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec-300x151.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec-768x386.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec-728x366.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/e51b9e052435aa8d0c9caacaeaafc9ec.jpg 1133w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<p>\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u3082DynamoDB\/S3\u304c\u8ffd\u52a0\u3055\u308c\u3001\u5404\u51e6\u7406\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3084\u51e6\u7406\u306b\u304b\u304b\u3063\u305f\u6642\u9593\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2-1024x499.jpg\" alt=\"\" width=\"728\" height=\"355\" class=\"size-large wp-image-28121 img-border\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2-1024x499.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2-300x146.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2-768x374.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2-728x355.jpg 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/01\/5455203866e164ec231a11151a5f06a2.jpg 1145w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h2>\u307e\u3068\u3081 <a id=\"\u307e\u3068\u3081\"><\/a><\/h2>\n<p>\u5b9f\u969b\u306bX-Ray\u3092\u4f7f\u3063\u3066\u307f\u305f\u3053\u3068\u3067\u5b9f\u88c5\u65b9\u6cd5\u3084\u8868\u793a\u5185\u5bb9\u306a\u3069\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\nX-Ray\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3051\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5206\u6790\u3084\u554f\u984c\u89e3\u6c7a\u304c\u52b9\u7387\u7684\u306b\u884c\u3048\u308b\u306e\u3067\u662f\u975e\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<ul>\n<li><a href=\"https:\/\/d1.awsstatic.com\/webinars\/jp\/pdf\/services\/20200526_BlackBelt_X-Ray.pdf\">https:\/\/d1.awsstatic.com\/webinars\/jp\/pdf\/services\/20200526_BlackBelt_X-Ray.pdf<\/a><br \/>\n\u4eca\u56de\u3067\u3066\u304d\u305f\u7528\u8a9e\u3084X-Ray\u306e\u6982\u5ff5\u306a\u3069\u306e\u8a73\u7d30\u306b\u89e3\u8aac\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u4eca\u56de\u306f X-Ray SDK for Python \u306e\u4f7f\u3044\u65b9\u3068\u3001\u5b9f\u969b\u306bAWS\u4e0a\u3067\u8a2d\u5b9a\u3057\u3066\u3069\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u304b\u306b\u3064\u3044\u3066\u6df1\u6398\u308a\u3057\u307e\u3059\u3002 \u4eca\u56de\u5229\u7528\u3059\u308b\u74b0\u5883\u3000 API Gateway\u306bAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3059\u308b\u3068&#8230;<\/p>\n","protected":false},"author":53,"featured_media":28157,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=28070","footnotes":""},"categories":[20],"tags":[102,687,1326],"class_list":{"0":"post-28070","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"tag-aws","9":"tag-aws-x-ray","10":"tag-1326","11":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=28070"}],"version-history":[{"count":53,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28070\/revisions"}],"predecessor-version":[{"id":28185,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28070\/revisions\/28185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/28157"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=28070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=28070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=28070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}