{"id":38606,"date":"2025-04-24T07:10:22","date_gmt":"2025-04-23T23:10:22","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=38606"},"modified":"2025-04-24T07:10:22","modified_gmt":"2025-04-23T23:10:22","slug":"skywalking%e5%a6%82%e4%bd%95%e6%94%af%e6%8c%81%e8%b7%a8%e8%af%ad%e8%a8%80%e5%92%8c%e8%b7%a8%e6%96%87%e5%8c%96%e7%9a%84%e5%9b%a2%e9%98%9f%e5%8d%8f%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/38606.html","title":{"rendered":"SkyWalking\u5982\u4f55\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u6587\u5316\u7684\u56e2\u961f\u534f\u4f5c"},"content":{"rendered":"<p style=\"text-align: center;\">\n<p><img decoding=\"async\" src=\"https:\/\/pic.zadbj010.com\/2025\/c2bc56ed216e4a1.webp\" alt=\"SkyWalking\u5982\u4f55\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u6587\u5316\u7684\u56e2\u961f\u534f\u4f5c\" ><\/p>\n<\/p>\n<h2>\u8de8\u8bed\u8a00\u652f\u6301<\/h2>\n<p>SkyWalking\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u8ffd\u8e2a\u7cfb\u7edf\uff0c\u63d0\u4f9b\u8de8\u8bed\u8a00\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u56e2\u961f\u6253\u7834\u8bed\u8a00\u58c1\u5792\uff0c\u5b9e\u73b0\u5bf9\u8de8\u8bed\u8a00\u9879\u76ee\u7684\u5168\u9762\u8ffd\u8e2a\u548c\u76d1\u63a7\u3002<\/p>\n<h2>\u652f\u6301\u7684\u8bed\u8a00\u548c\u6846\u67b6<\/h2>\n<p>SkyWalking\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u6846\u67b6\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a<\/p>\n<li>Java<\/li>\n<li>Go<\/li>\n<li>Node.js<\/li>\n<li>Python<\/li>\n<li>Spring Cloud<\/li>\n<li>OpenTelemetry<\/li>\n<li>Dubbo<\/li>\n<li>gRPC<\/li>\n<li>MongoDB<\/li>\n<li>Kafka<\/li>\n<li>HTTP<\/li>\n<li>MySQL<\/li>\n<h2>\u6570\u636e\u91c7\u96c6\u4e0e\u8ffd\u8e2a<\/h2>\n<p>SkyWalking\u901a\u8fc7Agent\u81ea\u52a8\u62e6\u622a\u670d\u52a1\u7684HTTP\u8bf7\u6c42\u3001\u6570\u636e\u5e93\u8bbf\u95ee\u3001RPC\u8c03\u7528\u7b49\u64cd\u4f5c\uff0c\u4e3a\u6bcf\u4e2a\u64cd\u4f5c\u751f\u6210Trace\u548cSpan\u3002\u8fd9\u4e9b\u6570\u636e\u53ef\u4ee5\u901a\u8fc7HTTP\u6216gRPC\u534f\u8bae\u4f20\u8f93\u5230SkyWalking\u7684Collector\uff0c\u786e\u4fdd\u5728\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\u5404\u670d\u52a1\u8282\u70b9\u80fd\u591f\u5171\u4eab\u76f8\u540c\u7684\u8ffd\u8e2a\u4e0a\u4e0b\u6587\uff0c\u5f62\u6210\u5b8c\u6574\u7684\u8ffd\u8e2a\u94fe\u8def\u3002<\/p>\n<h2>\u8de8\u8bed\u8a00\u96c6\u6210\u793a\u4f8b<\/h2>\n<p>\u4ee5OpenTelemetry\u4e0eSkyWalking\u96c6\u6210\u4e3a\u4f8b\uff1a<\/p>\n<p>1. <strong>\u5b89\u88c5OpenTelemetry SDK<\/strong>\uff1a\u5728Java\u9879\u76ee\u4e2d\u6dfb\u52a0OpenTelemetry\u7684\u4f9d\u8d56\uff0c\u5982`io.opentelemetry opentelemetry-api 1.6.0`\u3002<\/p>\n<p>2. <strong>\u914d\u7f6eOpenTelemetry Collector<\/strong>\uff1a\u914d\u7f6eCollector\u7684\u5bfc\u51fa\u5668\uff08Exporter\uff09\u5c06\u6570\u636e\u53d1\u9001\u81f3SkyWalking\u7684OAP\u5730\u5740\u3002\u4f8b\u5982\uff1a<\/p>\n<p>yaml<\/p>\n<p>receivers:<\/p>\n<p>otlp:<\/p>\n<p>protocols:<\/p>\n<p>http:<\/p>\n<p>grpc:<\/p>\n<p>exporters:<\/p>\n<p>skywalking:<\/p>\n<p>endpoint: &#8221;<\/p>\n<p>service:<\/p>\n<p>pipelines:<\/p>\n<p>traces:<\/p>\n<p>receivers: [otlp]<\/p>\n<p>exporters: [skywalking]<\/p>\n<p>3. <strong>\u542f\u52a8\u5e94\u7528\u5e76\u53d1\u9001\u8ffd\u8e2a\u6570\u636e<\/strong>\uff1a\u542f\u52a8\u914d\u7f6e\u6709OpenTelemetry\u7684\u5e94\u7528\uff0c\u786e\u4fddCollector\u914d\u7f6e\u7684endpoint\u4e3aSkyWalking OAP\u670d\u52a1\u7684\u5730\u5740\u3002<\/p>\n<h2>\u8de8\u6587\u5316\u652f\u6301<\/h2>\n<p>SkyWalking\u4f5c\u4e3aApache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\u7684\u9879\u76ee\uff0c\u9075\u5faaApache Way\uff0c\u5f3a\u8c03\u793e\u533a\u3001\u534f\u4f5c\u548c\u5f00\u653e\u3002\u8fd9\u79cd\u6587\u5316\u6709\u52a9\u4e8e\u8de8\u6587\u5316\u56e2\u961f\u7684\u534f\u4f5c\u3002<\/p>\n<h2>Apache Way\u7684\u7279\u70b9<\/h2>\n<li><strong>\u5173\u6ce8\u5f00\u53d1\u8005\u9700\u6c42<\/strong>\uff1a\u63d0\u4f9b\u57fa\u7840\u8bbe\u65bd\u3001\u5de5\u5177\u548c\u8d44\u6e90\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u4e13\u6ce8\u4e8e\u6280\u672f\u548c\u9879\u76ee\u53d1\u5c55\u3002<\/li>\n<li><strong>\u77e5\u8bc6\u5206\u4eab\u548c\u534f\u4f5c<\/strong>\uff1a\u9f13\u52b1\u6210\u5458\u4e4b\u95f4\u7684\u77e5\u8bc6\u5206\u4eab\u548c\u534f\u4f5c\uff0c\u63d0\u4f9b\u5b66\u4e60\u548c\u6210\u957f\u7684\u673a\u4f1a\u3002<\/li>\n<li><strong>\u793e\u533a\u9a71\u52a8<\/strong>\uff1a\u9879\u76ee\u7684\u53d1\u5c55\u7531\u793e\u533a\u6210\u5458\u5171\u540c\u9a71\u52a8\uff0c\u6ce8\u91cd\u5efa\u7acb\u957f\u671f\u7684\u5f00\u6e90\u793e\u533a\u3002<\/li>\n<h2>\u8de8\u6587\u5316\u56e2\u961f\u534f\u4f5c\u7684\u4f18\u52bf<\/h2>\n<li><strong>\u5168\u7403\u89c6\u91ce<\/strong>\uff1a\u5438\u5f15\u6765\u81ea\u4e0d\u540c\u6587\u5316\u80cc\u666f\u7684\u5f00\u53d1\u8005\uff0c\u5e26\u6765\u591a\u6837\u5316\u7684\u89c6\u89d2\u548c\u89e3\u51b3\u65b9\u6848\u3002<\/li>\n<li><strong>\u5f00\u6e90\u7cbe\u795e<\/strong>\uff1a\u9075\u5faa\u5f00\u6e90\u539f\u5219\uff0c\u4fc3\u8fdb\u4ee3\u7801\u548c\u77e5\u8bc6\u7684\u5171\u4eab\uff0c\u964d\u4f4e\u6c9f\u901a\u6210\u672c\u3002<\/li>\n<li><strong>\u793e\u533a\u652f\u6301<\/strong>\uff1a\u4f9d\u6258Apache\u793e\u533a\u7684\u8d44\u6e90\u548c\u652f\u6301\uff0c\u56e2\u961f\u6210\u5458\u53ef\u4ee5\u83b7\u5f97\u6280\u672f\u6307\u5bfc\u548c\u9879\u76ee\u7ba1\u7406\u7ecf\u9a8c\u3002<\/li>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u5f0f\uff0cSkyWalking\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u6280\u672f\u4e0a\u7684\u8de8\u8bed\u8a00\u652f\u6301\uff0c\u8fd8\u5728\u6587\u5316\u5c42\u9762\u4fc3\u8fdb\u4e86\u5168\u7403\u8303\u56f4\u5185\u7684\u56e2\u961f\u534f\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8de8\u8bed\u8a00\u652f\u6301 SkyWalking\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u8ffd\u8e2a\u7cfb\u7edf\uff0c\u63d0\u4f9b\u8de8\u8bed\u8a00\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u56e2\u961f\u6253\u7834\u8bed\u8a00\u58c1\u5792\uff0c\u5b9e\u73b0\u5bf9\u8de8\u8bed\u8a00\u9879\u76ee\u7684\u5168\u9762\u8ffd\u8e2a\u548c\u76d1\u63a7\u3002 \u652f\u6301\u7684\u8bed\u8a00\u548c\u6846\u67b6 SkyWalking\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u6846\u67b6\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a Java Go Node.js Python Spring Cloud OpenTelemetry Dubbo gRPC MongoDB Kafka HTTP MySQL \u6570\u636e\u91c7\u96c6\u4e0e\u8ffd\u8e2a SkyWalking\u901a\u8fc7Agent\u81ea\u52a8\u62e6\u622a\u670d\u52a1\u7684HTTP\u8bf7\u6c42\u3001\u6570\u636e\u5e93\u8bbf\u95ee\u3001RPC\u8c03\u7528\u7b49\u64cd\u4f5c\uff0c\u4e3a\u6bcf\u4e2a\u64cd\u4f5c\u751f\u6210Trace\u548cSpan\u3002\u8fd9\u4e9b\u6570\u636e\u53ef\u4ee5\u901a\u8fc7HTTP\u6216gRPC\u534f\u8bae\u4f20\u8f93\u5230SkyWalking\u7684Collector\uff0c\u786e\u4fdd\u5728\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\u5404\u670d\u52a1\u8282\u70b9\u80fd\u591f\u5171\u4eab\u76f8\u540c\u7684\u8ffd\u8e2a\u4e0a\u4e0b\u6587\uff0c\u5f62\u6210\u5b8c\u6574\u7684\u8ffd\u8e2a\u94fe\u8def\u3002 \u8de8\u8bed\u8a00\u96c6\u6210\u793a\u4f8b \u4ee5OpenTelemetry\u4e0eSkyWalking\u96c6\u6210\u4e3a\u4f8b\uff1a 1. \u5b89\u88c5OpenTelemetry SDK\uff1a\u5728Java\u9879\u76ee\u4e2d\u6dfb\u52a0OpenTelemetry\u7684\u4f9d\u8d56\uff0c\u5982`io.opentelemetry opentelemetry-api 1.6.0`\u3002 2. \u914d\u7f6eOpenTelemetry Collector\uff1a\u914d\u7f6eCollector\u7684\u5bfc\u51fa\u5668\uff08Exporter\uff09\u5c06\u6570\u636e\u53d1\u9001\u81f3SkyWalking\u7684OAP\u5730\u5740\u3002\u4f8b\u5982\uff1a yaml receivers: otlp: protocols: http: grpc: exporters: skywalking: endpoint: &#8221; service: pipelines: traces: receivers: [otlp] exporters: [skywalking] 3. \u542f\u52a8\u5e94\u7528\u5e76\u53d1\u9001\u8ffd\u8e2a\u6570\u636e\uff1a\u542f\u52a8\u914d\u7f6e\u6709OpenTelemetry\u7684\u5e94\u7528\uff0c\u786e\u4fddCollector\u914d\u7f6e\u7684endpoint\u4e3aSkyWalking OAP\u670d\u52a1\u7684\u5730\u5740\u3002 \u8de8\u6587\u5316\u652f\u6301 SkyWalking\u4f5c\u4e3aApache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\u7684\u9879\u76ee\uff0c\u9075\u5faaApache Way\uff0c\u5f3a\u8c03\u793e\u533a\u3001\u534f\u4f5c\u548c\u5f00\u653e\u3002\u8fd9\u79cd\u6587\u5316\u6709\u52a9\u4e8e\u8de8\u6587\u5316\u56e2\u961f\u7684\u534f\u4f5c\u3002 Apache Way\u7684\u7279\u70b9 \u5173\u6ce8\u5f00\u53d1\u8005\u9700\u6c42\uff1a\u63d0\u4f9b\u57fa\u7840\u8bbe\u65bd\u3001\u5de5\u5177\u548c\u8d44\u6e90\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u4e13\u6ce8\u4e8e\u6280\u672f\u548c\u9879\u76ee\u53d1\u5c55\u3002 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-38606","post","type-post","status-publish","format-standard","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38606","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=38606"}],"version-history":[{"count":1,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38606\/revisions"}],"predecessor-version":[{"id":38607,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38606\/revisions\/38607"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=38606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=38606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=38606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}