{"id":35269,"date":"2025-03-19T09:31:55","date_gmt":"2025-03-19T01:31:55","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=35269"},"modified":"2025-03-19T09:31:55","modified_gmt":"2025-03-19T01:31:55","slug":"skywalking%e7%9a%84api%e6%96%87%e6%a1%a3%e5%92%8c%e8%b5%84%e6%ba%90%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/35269.html","title":{"rendered":"SkyWalking\u7684API\u6587\u6863\u548c\u8d44\u6e90\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<p style=\"text-align: center;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.yunshan.net\/blog\/wp-content\/uploads\/2025\/03\/1W9Q3xB.jpg\" alt=\"SkyWalking\u7684API\u6587\u6863\u548c\u8d44\u6e90\u6709\u54ea\u4e9b\uff1f\" ><\/p>\n<\/p>\n<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u548c\u5fae\u670d\u52a1\u67b6\u6784\u4e3b\u5bfc\u6280\u672f\u751f\u6001\u7684\u4eca\u5929\uff0c<strong>\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08APM\uff09<\/strong>\u5df2\u6210\u4e3a\u5f00\u53d1\u8005\u4fdd\u969c\u7cfb\u7edf\u7a33\u5b9a\u6027\u7684\u6838\u5fc3\u80fd\u529b\u3002\u4f5c\u4e3aApache\u9876\u7ea7\u5f00\u6e90\u9879\u76ee\uff0c<strong><a href=\"https:\/\/www.yunshan.net\/\"   target=\"_blank\" style=\"color:blue\">SkyWalking<\/a><\/strong>\u51ed\u501f\u5176<a href=\"https:\/\/www.yunshan.net\/\"   target=\"_blank\" style=\"color:blue\">\u5206\u5e03\u5f0f\u8ffd\u8e2a<\/a>\u3001\u670d\u52a1\u7f51\u683c\u89c2\u6d4b\u3001\u6307\u6807\u5206\u6790\u7b49\u80fd\u529b\uff0c\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u4f18\u5316\u7cfb\u7edf\u6027\u80fd\u7684\u9996\u9009\u5de5\u5177\u4e4b\u4e00\u3002\u7136\u800c\uff0c\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u5e38\u56e0<strong>API\u6587\u6863\u5206\u6563<\/strong>\u3001<strong>\u5b66\u4e60\u8d44\u6e90\u5e9e\u6742<\/strong>\u800c\u9677\u5165\u6548\u7387\u74f6\u9888\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u6027\u68b3\u7406<strong><a href=\"https:\/\/www.yunshan.net\/\"   target=\"_blank\" style=\"color:blue\">SkyWalking<\/a>\u7684\u5b98\u65b9API\u6587\u6863\u4f53\u7cfb<\/strong>\u4e0e<strong>\u5173\u952e\u5b66\u4e60\u8d44\u6e90<\/strong>\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u5b8c\u6574\u7684\u77e5\u8bc6\u56fe\u8c31\u3002<\/p>\n<hr>\n<h3 id=\"\u4e00-\u5b98\u65b9\u6587\u6863\u4f53\u7cfb-\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u7684\u57fa\u77f3\">\u4e00\u3001\u5b98\u65b9\u6587\u6863\u4f53\u7cfb\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u7684\u57fa\u77f3<\/h3>\n<p><strong>SkyWalking\u5b98\u7f51<\/strong>\uff08<a href=\"https:\/\/skywalking.apache.org\/\uff09\u662f\u83b7\u53d6\u6743\u5a01\u6280\u672f\u6587\u6863\u7684\u7b2c\u4e00\u5165\u53e3\uff0c\u5176\u6587\u6863\u7ed3\u6784\u7ecf\u8fc7\u591a\u5e74\u8fed\u4ee3\u5df2\u5f62\u6210\u6e05\u6670\u7684\u5c42\u6b21\uff1a\" target=\"_blank\">https:\/\/skywalking.apache.org\/\uff09\u662f\u83b7\u53d6\u6743\u5a01\u6280\u672f\u6587\u6863\u7684\u7b2c\u4e00\u5165\u53e3\uff0c\u5176\u6587\u6863\u7ed3\u6784\u7ecf\u8fc7\u591a\u5e74\u8fed\u4ee3\u5df2\u5f62\u6210\u6e05\u6670\u7684\u5c42\u6b21\uff1a<\/a><\/p>\n<ol>\n<li>\n<p><strong>\u6838\u5fc3\u6982\u5ff5\u6587\u6863<\/strong><br \/>\n\u9488\u5bf9<em>\u670d\u52a1\uff08Service\uff09<\/em>\u3001<em>\u670d\u52a1\u5b9e\u4f8b\uff08Service Instance\uff09<\/em>\u3001*\u7aef\u70b9\uff08Endpoint\uff09*\u7b49\u76d1\u63a7\u6a21\u578b\u7684\u5b9a\u4e49\u4e0e\u5173\u8054\u903b\u8f91\u8fdb\u884c\u8be6\u7ec6\u9610\u91ca\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u7406\u89e3\u6570\u636e\u91c7\u96c6\u80cc\u540e\u7684\u8bbe\u8ba1\u54f2\u5b66\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u90e8\u7f72\u914d\u7f6e\u6307\u5357<\/strong><br \/>\n\u6db5\u76d6\u5355\u673a\u90e8\u7f72\u3001\u96c6\u7fa4\u90e8\u7f72\u3001Kubernetes\u96c6\u6210\u7b49\u573a\u666f\uff0c\u7279\u522b\u5bf9*OAP Server*\u7684\u914d\u7f6e\u6587\u4ef6<code>application.yml<\/code>\u4e2d<strong>\u961f\u5217\u5bb9\u91cf<\/strong>\u3001<strong>\u5b58\u50a8\u7b56\u7565<\/strong>\u7b49\u5173\u952e\u53c2\u6570\u63d0\u4f9b\u9010\u884c\u6ce8\u91ca\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u63a2\u9488\u5f00\u53d1\u624b\u518c<\/strong><br \/>\n\u91cd\u70b9\u89e3\u6790Java\u3001.NET\u3001Node.js\u7b49\u8bed\u8a00\u63a2\u9488\u7684*\u5b57\u8282\u7801\u589e\u5f3a*\u539f\u7406\uff0c\u5e76\u63d0\u4f9b<strong>\u81ea\u5b9a\u4e49Span<\/strong>\u7684\u4ee3\u7801\u793a\u4f8b\u3002\u4f8b\u5982\u901a\u8fc7<code>@Trace<\/code>\u6ce8\u89e3\u5b9e\u73b0\u65b9\u6cd5\u7ea7\u8ffd\u8e2a\uff1a<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-java\">@Trace(operationName = &quot;executePayment&quot;)  \r\npublic void processPayment() {  \r\n\/\/ \u4e1a\u52a1\u903b\u8f91  \r\n}  \r\n<\/code><\/pre>\n<ol>\n<li><strong>\u67e5\u8be2API\u53c2\u8003<\/strong><br \/>\n\u516c\u5f00GraphQL\u548cRESTful\u4e24\u79cd\u63a5\u53e3\u89c4\u8303\uff0c\u8be6\u7ec6\u8bf4\u660e<em>Trace ID\u67e5\u8be2<\/em>\u3001<em>\u670d\u52a1\u62d3\u6251\u56fe\u751f\u6210<\/em>\u3001*\u6307\u6807\u805a\u5408*\u7b49\u9ad8\u9891\u64cd\u4f5c\u7684\u53c2\u6570\u683c\u5f0f\u3002\u5178\u578b\u5982\u83b7\u53d6\u6700\u8fd11\u5c0f\u65f6\u9519\u8bef\u7387\u8d85\u8fc75%\u7684\u670d\u52a1\u5217\u8868\uff1a\n<\/li>\n<\/ol>\n<pre><code class=\"language-graphql\">query {  \r\nreadMetricsValues(condition: {  \r\nname: &quot;service_percent&quot;,  \r\nentity: {scope: Service, serviceName: &quot;payment-service&quot;},  \r\nduration: {start: &quot;2023-09-01 1000&quot;, end: &quot;2023-09-01 1100&quot;, step: MINUTE}  \r\n}) {  \r\nvalues { value }  \r\n}  \r\n}  \r\n<\/code><\/pre>\n<hr>\n<h3 id=\"\u4e8c-github\u751f\u6001-\u5b9e\u6218\u8fdb\u9636\u7684\u52a0\u901f\u5668\">\u4e8c\u3001GitHub\u751f\u6001\uff1a\u5b9e\u6218\u8fdb\u9636\u7684\u52a0\u901f\u5668<\/h3>\n<p>SkyWalking\u5728<strong>GitHub\u4ed3\u5e93<\/strong>\uff08<a href=\"https:\/\/github.com\/apache\/skywalking\uff09\u62e5\u6709\u8d85\u8fc723k\u661f\u6807\uff0c\u5176\u5185\u5bb9\u8fdc\u8d85\u51fa\u4ee3\u7801\u6258\u7ba1\u8303\u7574\uff1a\" target=\"_blank\">https:\/\/github.com\/apache\/skywalking\uff09\u62e5\u6709\u8d85\u8fc723k\u661f\u6807\uff0c\u5176\u5185\u5bb9\u8fdc\u8d85\u51fa\u4ee3\u7801\u6258\u7ba1\u8303\u7574\uff1a<\/a><\/p>\n<ul>\n<li>\n<p><strong>\u6d4b\u8bd5\u7528\u4f8b\u6570\u636e\u5e93<\/strong><br \/>\n\u5728<code>test\/e2e-v2\/cases<\/code>\u76ee\u5f55\u4e2d\uff0c\u53ef\u627e\u5230<strong>\u5168\u94fe\u8def\u538b\u6d4b\u811a\u672c<\/strong>\u548c<strong>\u5f02\u5e38\u6ce8\u5165\u6d4b\u8bd5\u65b9\u6848<\/strong>\uff0c\u4f8b\u5982\u6a21\u62df\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u8017\u5c3d\u65f6\u7684\u76d1\u63a7\u6570\u636e\u6355\u83b7\u903b\u8f91\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u89c2\u6d4b\u6027\u6f14\u793a\u5de5\u7a0b<\/strong><br \/>\n<code>demo<\/code>\u5b50\u9879\u76ee\u63d0\u4f9bSpring Cloud\u3001Dubbo\u3001gRPC\u7b49\u5fae\u670d\u52a1\u6846\u67b6\u7684\u96c6\u6210\u793a\u4f8b\uff0c\u7279\u522b\u662f*\u8d1f\u8f7d\u5747\u8861\u5f02\u5e38\u5b9a\u4f4d*\u7684\u573a\u666f\u590d\u73b0\u6781\u5177\u53c2\u8003\u4ef7\u503c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8d21\u732e\u8005\u6307\u5357<\/strong><br \/>\n<code>CONTRIBUTING.md<\/code>\u6587\u4ef6\u660e\u786e\u6807\u6ce8\u4e86<em>\u6587\u6863\u4fee\u8ba2<\/em>\u3001<em>\u63d2\u4ef6\u5f00\u53d1<\/em>\u3001*UI\u4f18\u5316*\u4e09\u79cd\u8d21\u732e\u8def\u5f84\uff0c\u65b0\u624b\u53ef\u901a\u8fc7<code>good first issue<\/code>\u6807\u7b7e\u5feb\u901f\u627e\u5230\u9002\u914d\u4efb\u52a1\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3 id=\"\u4e09-\u793e\u533a\u8d44\u6e90-\u95ee\u9898\u89e3\u51b3\u4e0e\u7ecf\u9a8c\u6c89\u6dc0\">\u4e09\u3001\u793e\u533a\u8d44\u6e90\uff1a\u95ee\u9898\u89e3\u51b3\u4e0e\u7ecf\u9a8c\u6c89\u6dc0<\/h3>\n<ol>\n<li><strong>Stack Overflow\u77e5\u8bc6\u5e93<\/strong><br \/>\n\u5728<a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/skywalking\" target=\"_blank\">skywalking\u6807\u7b7e<\/a>\u4e0b\u79ef\u7d2f\u8d85\u8fc74200\u4e2a\u95ee\u7b54\uff0c\u9ad8\u9891\u95ee\u9898\u96c6\u4e2d\u5728\uff1a\n<\/li>\n<\/ol>\n<ul>\n<li>\u63a2\u9488\u4e0eSpring Boot 3.0\u7684\u517c\u5bb9\u6027\u914d\u7f6e\n<\/li>\n<li>\u8de8Kubernetes\u96c6\u7fa4\u7684\u8ffd\u8e2a\u6570\u636e\u5173\u8054\n<\/li>\n<li>Elasticsearch\u7d22\u5f15\u6eda\u52a8\u7b56\u7565\u4f18\u5316\n<\/li>\n<\/ul>\n<ol>\n<li>\n<p><strong>Apache\u90ae\u4ef6\u5217\u8868<\/strong><br \/>\n\u901a\u8fc7*dev@skywalking.apache.org*\u53ef\u53c2\u4e0e\u67b6\u6784\u8bbe\u8ba1\u8ba8\u8bba\uff0c\u4f8b\u59822023\u5e74\u5173\u4e8e<strong>Log Sampling\u91c7\u6837\u7b97\u6cd5\u4f18\u5316<\/strong>\u7684\u6280\u672f\u63d0\u6848\uff0c\u76f4\u63a5\u5f71\u54cd\u4e868.12\u7248\u672c\u7684\u65e5\u5fd7\u91c7\u96c6\u6027\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4e2d\u6587\u5f00\u53d1\u8005\u793e\u533a<\/strong><br \/>\nSkyWalking\u4e2d\u56fd\u7528\u6237\u7ec4\u5b9a\u671f\u4e3e\u529e\u7ebf\u4e0a\u5206\u4eab\uff0c\u8fd1\u671f\u8bae\u9898\u5305\u62ec\uff1a<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\u5728\u4e07\u4ebf\u7ea7\u8c03\u7528\u573a\u666f\u4e0b\u5982\u4f55\u8c03\u6574<em>OAP\u5806\u5185\u5b58\u53c2\u6570<\/em>\n<\/li>\n<li>\u57fa\u4e8e*<a href=\"https:\/\/www.yunshan.net\/\"   target=\"_blank\" style=\"color:blue\">Prometheus<\/a> Receiver*\u5b9e\u73b0\u81ea\u5b9a\u4e49\u6307\u6807\u91c7\u96c6\n<\/li>\n<li>\u4f7f\u7528<strong>SkyWalking Rover<\/strong>\u8fdb\u884ceBPF\u65e0\u4fb5\u5165\u5f0f\u76d1\u63a7\n<\/li>\n<\/ul>\n<hr>\n<h3 id=\"\u56db-\u6269\u5c55\u5de5\u5177\u94fe-\u80fd\u529b\u5ef6\u4f38\u7684\u5173\u952e\u7ec4\u4ef6\">\u56db\u3001\u6269\u5c55\u5de5\u5177\u94fe\uff1a\u80fd\u529b\u5ef6\u4f38\u7684\u5173\u952e\u7ec4\u4ef6<\/h3>\n<ol>\n<li><strong>\u53ef\u89c6\u5316\u589e\u5f3a\u5de5\u5177<\/strong>\n<\/li>\n<\/ol>\n<ul>\n<li><strong>SkyWalking CLI<\/strong>\uff1a\u652f\u6301\u901a\u8fc7\u547d\u4ee4\u884c\u6279\u91cf\u5bfc\u51fa\u62d3\u6251\u56fe\u4e0e\u6307\u6807\u62a5\u8868\n<\/li>\n<li><strong>Grafana Dashboard\u6a21\u677f<\/strong>\uff1a\u5728<a href=\"https:\/\/github.com\/apache\/skywalking\/tree\/master\/oap-server\/server-starter\/src\/main\/resources\/grafana\" target=\"_blank\">\u5b98\u65b9\u4ed3\u5e93<\/a>\u53ef\u83b7\u53d6\u9884\u7f6e\u7684JVM\u76d1\u63a7\u3001\u670d\u52a1\u4f9d\u8d56\u7b49\u53ef\u89c6\u5316\u65b9\u6848\n<\/li>\n<\/ul>\n<ol>\n<li>\n<p><strong>\u6570\u636e\u6e90\u9002\u914d\u5668<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u5b58\u50a8\u7c7b\u578b<\/th>\n<th>\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<\/th>\n<th>\u6027\u80fd\u8c03\u4f18\u5efa\u8bae<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Elasticsearch<\/td>\n<td>config\/elasticsearch.yml<\/td>\n<td>\u8bbe\u7f6e<code>index.refresh_interval: 30s<\/code><\/td>\n<\/tr>\n<tr>\n<td>TiDB<\/td>\n<td>config\/tidb-storage.yml<\/td>\n<td>\u8c03\u6574<code>maxConnections: 50<\/code><\/td>\n<\/tr>\n<tr>\n<td>MySQL<\/td>\n<td>config\/mysql-storage.yml<\/td>\n<td>\u542f\u7528<code>connectionTimeout: 5000<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p><strong>\u751f\u6001\u96c6\u6210\u63d2\u4ef6<\/strong><\/p>\n<\/li>\n<\/ol>\n<ul>\n<li><strong>Service Mesh<\/strong>\uff1a\u652f\u6301Istio\u3001Linkerd\u7684\u6570\u636e\u9762\u6307\u6807\u91c7\u96c6\n<\/li>\n<li><strong>\u6d88\u606f\u961f\u5217<\/strong>\uff1a\u63d0\u4f9bKafka\u3001RocketMQ\u751f\u4ea7\u6d88\u8d39\u5ef6\u8fdf\u5206\u6790\n<\/li>\n<li><strong>\u6570\u636e\u5e93<\/strong>\uff1a\u5185\u7f6eMySQL\u8fde\u63a5\u6c60\u76d1\u63a7\u3001Redis\u6162\u67e5\u8be2\u68c0\u6d4b\n<\/li>\n<\/ul>\n<hr>\n<h3 id=\"\u4e94-\u6301\u7eed\u5b66\u4e60\u8def\u5f84-\u4ece\u6587\u6863\u5230\u5b9e\u8df5\">\u4e94\u3001\u6301\u7eed\u5b66\u4e60\u8def\u5f84\uff1a\u4ece\u6587\u6863\u5230\u5b9e\u8df5<\/h3>\n<ol>\n<li>\n<p><strong>\u5b98\u65b9\u535a\u5ba2\u6df1\u5ea6\u89e3\u6790<\/strong><br \/>\nApache\u57fa\u91d1\u4f1a\u6bcf\u6708\u53d1\u5e03\u6280\u672f\u6587\u7ae0\uff0c\u4f8b\u5982\u300a<em>SkyWalking 9.x Trace Profiling\u539f\u7406\u5256\u6790<\/em>\u300b\u8be6\u7ec6\u89e3\u8bfb\u4e86\u5982\u4f55\u901a\u8fc7<strong>\u706b\u7130\u56fe<\/strong>\u5b9a\u4f4d\u4ee3\u7801\u70ed\u70b9\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9e\u6218\u5de5\u4f5c\u574a\u6750\u6599<\/strong><br \/>\n\u5728<a href=\"https:\/\/github.com\/SkyAPMWorkshop\" target=\"_blank\">Workshop\u4ed3\u5e93<\/a>\u4e2d\uff0c\u53ef\u627e\u5230\u57fa\u4e8eDocker Compose\u7684<strong>\u5168\u94fe\u8def\u538b\u6d4b\u6c99\u7bb1<\/strong>\uff0c\u9884\u7f6e\u4e86\u670d\u52a1\u7194\u65ad\u3001\u6570\u636e\u5e93\u6b7b\u9501\u7b49\u6545\u969c\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u5347\u7ea7\u6307\u5357<\/strong><br \/>\n\u6bcf\u4e2aRelease Notes\u5747\u6807\u6ce8<strong>\u4e0d\u517c\u5bb9\u53d8\u66f4<\/strong>\uff0c\u59828.4\u7248\u672c\u5f03\u7528H2\u5b58\u50a8\u65b9\u6848\u65f6\uff0c\u63d0\u4f9b\u81ea\u52a8\u5316\u6570\u636e\u8fc1\u79fb\u811a\u672c<code>h2-to-elasticsearch.sh<\/code>\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u548c\u5fae\u670d\u52a1\u67b6\u6784\u4e3b\u5bfc\u6280\u672f\u751f\u6001\u7684\u4eca\u5929\uff0c\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08APM\uff09\u5df2\u6210\u4e3a\u5f00\u53d1\u8005\u4fdd\u969c\u7cfb\u7edf\u7a33\u5b9a\u6027\u7684\u6838\u5fc3\u80fd\u529b\u3002\u4f5c\u4e3aApache\u9876\u7ea7\u5f00\u6e90\u9879\u76ee\uff0cSkyWalking\u51ed\u501f\u5176\u5206\u5e03\u5f0f\u8ffd\u8e2a\u3001\u670d\u52a1\u7f51\u683c\u89c2\u6d4b\u3001\u6307\u6807\u5206\u6790\u7b49\u80fd\u529b\uff0c\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u4f18\u5316\u7cfb\u7edf\u6027\u80fd\u7684\u9996\u9009\u5de5\u5177\u4e4b\u4e00\u3002\u7136\u800c\uff0c\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u5e38\u56e0API\u6587\u6863\u5206\u6563\u3001\u5b66\u4e60\u8d44\u6e90\u5e9e\u6742\u800c\u9677\u5165\u6548\u7387\u74f6\u9888\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u6027\u68b3\u7406SkyWalking\u7684\u5b98\u65b9API\u6587\u6863\u4f53\u7cfb\u4e0e\u5173\u952e\u5b66\u4e60\u8d44\u6e90\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u5b8c\u6574\u7684\u77e5\u8bc6\u56fe\u8c31\u3002 \u4e00\u3001\u5b98\u65b9\u6587\u6863\u4f53\u7cfb\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u7684\u57fa\u77f3 SkyWalking\u5b98\u7f51\uff08https:\/\/skywalking.apache.org\/\uff09\u662f\u83b7\u53d6\u6743\u5a01\u6280\u672f\u6587\u6863\u7684\u7b2c\u4e00\u5165\u53e3\uff0c\u5176\u6587\u6863\u7ed3\u6784\u7ecf\u8fc7\u591a\u5e74\u8fed\u4ee3\u5df2\u5f62\u6210\u6e05\u6670\u7684\u5c42\u6b21\uff1a \u6838\u5fc3\u6982\u5ff5\u6587\u6863 \u9488\u5bf9\u670d\u52a1\uff08Service\uff09\u3001\u670d\u52a1\u5b9e\u4f8b\uff08Service Instance\uff09\u3001*\u7aef\u70b9\uff08Endpoint\uff09*\u7b49\u76d1\u63a7\u6a21\u578b\u7684\u5b9a\u4e49\u4e0e\u5173\u8054\u903b\u8f91\u8fdb\u884c\u8be6\u7ec6\u9610\u91ca\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u7406\u89e3\u6570\u636e\u91c7\u96c6\u80cc\u540e\u7684\u8bbe\u8ba1\u54f2\u5b66\u3002 \u90e8\u7f72\u914d\u7f6e\u6307\u5357 \u6db5\u76d6\u5355\u673a\u90e8\u7f72\u3001\u96c6\u7fa4\u90e8\u7f72\u3001Kubernetes\u96c6\u6210\u7b49\u573a\u666f\uff0c\u7279\u522b\u5bf9*OAP Server*\u7684\u914d\u7f6e\u6587\u4ef6application.yml\u4e2d\u961f\u5217\u5bb9\u91cf\u3001\u5b58\u50a8\u7b56\u7565\u7b49\u5173\u952e\u53c2\u6570\u63d0\u4f9b\u9010\u884c\u6ce8\u91ca\u3002 \u63a2\u9488\u5f00\u53d1\u624b\u518c \u91cd\u70b9\u89e3\u6790Java\u3001.NET\u3001Node.js\u7b49\u8bed\u8a00\u63a2\u9488\u7684*\u5b57\u8282\u7801\u589e\u5f3a*\u539f\u7406\uff0c\u5e76\u63d0\u4f9b\u81ea\u5b9a\u4e49Span\u7684\u4ee3\u7801\u793a\u4f8b\u3002\u4f8b\u5982\u901a\u8fc7@Trace\u6ce8\u89e3\u5b9e\u73b0\u65b9\u6cd5\u7ea7\u8ffd\u8e2a\uff1a @Trace(operationName = &quot;executePayment&quot;) public void processPayment() { \/\/ \u4e1a\u52a1\u903b\u8f91 } \u67e5\u8be2API\u53c2\u8003 \u516c\u5f00GraphQL\u548cRESTful\u4e24\u79cd\u63a5\u53e3\u89c4\u8303\uff0c\u8be6\u7ec6\u8bf4\u660eTrace ID\u67e5\u8be2\u3001\u670d\u52a1\u62d3\u6251\u56fe\u751f\u6210\u3001*\u6307\u6807\u805a\u5408*\u7b49\u9ad8\u9891\u64cd\u4f5c\u7684\u53c2\u6570\u683c\u5f0f\u3002\u5178\u578b\u5982\u83b7\u53d6\u6700\u8fd11\u5c0f\u65f6\u9519\u8bef\u7387\u8d85\u8fc75%\u7684\u670d\u52a1\u5217\u8868\uff1a query { readMetricsValues(condition: { name: &quot;service_percent&quot;, entity: {scope: Service, serviceName: &quot;payment-service&quot;}, duration: {start: &quot;2023-09-01 1000&quot;, end: &quot;2023-09-01 1100&quot;, step: MINUTE} }) { values { value } } } \u4e8c\u3001GitHub\u751f\u6001\uff1a\u5b9e\u6218\u8fdb\u9636\u7684\u52a0\u901f\u5668 SkyWalking\u5728GitHub\u4ed3\u5e93\uff08https:\/\/github.com\/apache\/skywalking\uff09\u62e5\u6709\u8d85\u8fc723k\u661f\u6807\uff0c\u5176\u5185\u5bb9\u8fdc\u8d85\u51fa\u4ee3\u7801\u6258\u7ba1\u8303\u7574\uff1a \u6d4b\u8bd5\u7528\u4f8b\u6570\u636e\u5e93 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":35270,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-35269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product-news"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/35269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=35269"}],"version-history":[{"count":1,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/35269\/revisions"}],"predecessor-version":[{"id":35271,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/35269\/revisions\/35271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/35270"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=35269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=35269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=35269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}