{"id":10021176,"date":"2026-01-08T15:24:37","date_gmt":"2026-01-08T07:24:37","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021176"},"modified":"2026-01-08T15:24:37","modified_gmt":"2026-01-08T07:24:37","slug":"%e6%b7%b1%e5%ba%a6%e5%ae%9e%e8%b7%b5%ef%bc%9a%e5%be%97%e7%89%a9%e7%ae%97%e6%b3%95%e5%9f%9f%e5%85%a8%e6%99%af%e5%8f%af%e8%a7%82%e6%b5%8b%e6%80%a7%e4%bb%8e-0-%e5%88%b0-1-%e7%9a%84%e6%bc%94%e8%bf%9b","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021176","title":{"rendered":"\u6df1\u5ea6\u5b9e\u8df5\uff1a\u5f97\u7269\u7b97\u6cd5\u57df\u5168\u666f\u53ef\u89c2\u6d4b\u6027\u4ece 0 \u5230 1 \u7684\u6f14\u8fdb\u4e4b\u8def"},"content":{"rendered":"<h2>\u4e00\u3001\u524d\u8a00<\/h2>\n<p>\u5728\u5f97\u7269\uff08Poizon\uff09\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u7b97\u6cd5\u751f\u6001\u5df2\u6f14\u8fdb\u4e3a\u6db5\u76d6\u4ea4\u6613\u641c\u7d22\u3001\u793e\u533a\u63a8\u8350\u3001\u56fe\u50cf\u8bc6\u522b\u53ca\u5e7f\u544a\u7b56\u7565\u7684\u591a\u7ef4\u590d\u6742\u7cfb\u7edf\u3002\u8bf7\u6c42\u4eceJava\u7f51\u5173\u4e0b\u53d1\uff0c\u8fdb\u5165 C++ \u6784\u5efa\u7684\u9ad8\u6027\u80fd\u7b97\u6cd5\u6838\u5fc3\uff08DSearch\u68c0\u7d22\u3001DGraph\u56fe\u8ba1\u7b97\u3001DFeature\u7279\u5f81\u63d0\u53d6\u7b49\uff09\u3002<\/p>\n<p>\u968f\u7740\u7cfb\u7edf\u590d\u6742\u5ea6\u7684\u6307\u6570\u7ea7\u589e\u957f\uff0c\u6211\u4eec\u5bf9\u73b0\u6709\u7cfb\u7edf\u7684\u53ef\u89c2\u6d4b\u6027\u8fdb\u884c\u4e86\u5168\u9762\u68b3\u7406\uff0c\u4e3a\u4e86\u63d0\u9ad8\u7a33\u5b9a\u6027\uff0c\u6211\u4eec\u5e0c\u671b\u5efa\u8bbe\u4e00\u4e2a<strong>\u4e1a\u52a1\u573a\u666f\u7ef4\u5ea6\u5168\u94fe\u8def\u53d8\u66f4\u4e8b\u4ef6\u4e2d\u5fc3\uff0c<\/strong> \u4ee5\u201c\u805a\u7126\u505a\u597d\u53ef\u89c2\u6d4b\u6027\u201d\u4e3a\u6838\u5fc3\u76ee\u6807\uff0c\u901a\u8fc7\u5efa\u8bbe\u76d1\u63a7\u5e73\u53f0\u7684\u4e8b\u4ef6\u4e2d\u5fc3\u4e0e\u5168\u94fe\u8def\u53ef\u89c2\u6d4b\u7684\u6838\u5fc3\u4ea7\u54c1\uff0c\u6574\u5408\u5404\u5e73\u53f0\u8d44\u6e90\u4e0e\u6570\u636e\uff0c\u63d0\u5347\u7cfb\u7edf\u7684\u6574\u4f53\u900f\u660e\u5ea6\u548c\u7a33\u5b9a\u6027\uff0c\u4ece\u800c\u63d0\u5347\u4e1a\u52a1\u7a33\u5b9a\u6027\u548c\u6545\u969c\u6b62\u8840\u6548\u7387\uff0c\u4e3a\u4ea7\u54c1\u8fed\u4ee3\u5960\u5b9a\u575a\u5b9e\u7684\u57fa\u7840\u3002<\/p>\n<h2>\u4e8c\u3001\u53ef\u89c2\u6d4b\u6027\u7684\u201c\u56db\u5927\u652f\u67f1\u201d\u4e0e\u8054\u52a8\u613f\u666f<\/h2>\n<p>\u5728\u4e1a\u754c\uff0c\u53ef\u89c2\u6d4b\u6027\u901a\u5e38\u88ab\u5b9a\u4e49\u4e3aTrace\u3001Metric\u548cLog\u4e09\u4f4d\u4e00\u4f53\u3002\u6211\u4eec\u7684\u76ee\u6807\u662f\u6253\u9020\u4e00\u5957 <strong>\u201c\u4ee5\u573a\u666f\u4e3a\u9b42\uff0c\u4ee5\u8054\u52a8\u4e3a\u9aa8\u201d<\/strong> \u7684\u53ef\u89c2\u6d4b\u4f53\u7cfb\uff0c\u6253\u7834\u6570\u636e\u5b64\u5c9b\uff0c\u5b9e\u73b0\u7b97\u6cd5\u6cbb\u7406\u7684\u667a\u80fd\u5316\u8f6c\u578b\u3002\u63d0\u51fa\u4e86 <strong>\u201c\u56db\u5927\u652f\u67f1\u8054\u52a8\u201d\uff1a<\/strong><\/p>\n<ul>\n<li><strong>Trace\u4e3a\u5f84\uff1a<\/strong> \u8d85\u8d8a\u5355\u7eaf\u7684\u62d3\u6251\u8bb0\u5f55\u3002\u901a\u8fc7<strong>Baggage<\/strong>\u673a\u5236\uff0c\u5c06\u590d\u6742\u7684\u4e1a\u52a1\u8bed\u4e49\u4e0e\u7b97\u6cd5\u7b56\u7565\u6ce8\u5165\u94fe\u8def\uff0c\u5b9e\u73b0\u8c03\u7528\u6d41\u4e0e\u4e1a\u52a1\u6d41\u7684\u6df1\u5ea6\u8026\u5408\u3002<\/li>\n<li><strong>Metric\u4e3a\u8109\uff1a<\/strong> \u901a\u8fc7Trace\u81ea\u52a8\u751f\u6210\u573a\u666f\u5316\u7684\u6027\u80fd\u6307\u6807\u3002\u5e76\u7ed3\u5408<strong>\u5143\u6570\u636e<\/strong>\u5173\u8054\u670d\u52a1\u7aef\u4e1a\u52a1\u6307\u6807\uff0c\u5b9e\u73b0\u6307\u6807\u95f4\u7684\u8054\u52a8\u3002<\/li>\n<li><strong>Log\u4e3a\u8bc1\uff1a<\/strong> \u63a8\u52a8\u5168\u94fe\u8def\u65e5\u5fd7\u683c\u5f0f\u5316\u6cbb\u7406\u3002\u89c4\u8303\u5f02\u5e38\u7801\u548c\u4e1a\u52a1\u7801\u3002<\/li>\n<li><strong>Event\u4e3a\u6e90\uff1a<\/strong> \u7b97\u6cd5\u7cfb\u7edf\u7684\u7075\u9b42\u5728\u4e8e\u6f14\u8fdb\u3002\u6253\u901a\u7b97\u6cd5\u4fa7<strong>10+\u4e2a\u53d8\u66f4\u5e73\u53f0\uff0c<\/strong> \u5c06\u65e5\u5747\u4e0a\u4e07+\u7684\u53d8\u66f4\u4e8b\u4ef6\u5b9e\u65f6\u6620\u5c04\u81f3\u94fe\u8def\u62d3\u6251\u3002<\/li>\n<\/ul>\n<h2>\u4e09\u3001\u6838\u5fc3\u653b\u575a\uff1a\u53ef\u89c2\u6d4b\u6027\u6807\u51c6\u5316<\/h2>\n<h3>Trace\u6807\u51c6\u5316<\/h3>\n<p>\u5728\u5f97\u7269\u7b97\u6cd5\u751f\u6001\u4e2d\uff0c<strong>DMerge\u3001DScatter\u3001DGraph\u3001DSearch\u3001DFeature<\/strong>\u7b49\u6838\u5fc3\u7ec4\u4ef6\u627f\u8f7d\u7740\u6781\u81f4\u7684\u6027\u80fd\u8bc9\u6c42\u3002\u7531\u4e8eC++\u4fa7Trace SDK\u7684\u957f\u671f\u7f3a\u5931\uff0c\u7b97\u6cd5\u670d\u52a1\u66fe\u5904\u4e8e\u5fae\u670d\u52a1\u89c2\u6d4b\u4f53\u7cfb\u7684\u201c\u5b64\u5c9b\u201d\uff0c\u96be\u4ee5\u4e0e\u4e0a\u4e0b\u6e38\u5b9e\u73b0\u5168\u94fe\u8def\u4e32\u8054\u3002<\/p>\n<p>C++ Trace2.0\uff08\u5f97\u7269\u5206\u5e03\u5f0f\u94fe\u8def\u8ffd\u8e2aTrace2.0\u57fa\u4e8eOpenTelemetry\u4e8c\u6b21\u5f00\u53d1\uff0c\u76ee\u524d\u5df2\u7ecf\u652f\u6301Java\/Go\/JS\/Python\u8bed\u8a00\uff09\u5e76\u6ca1\u6709\u57fa\u4e8eOpenTelemetry CPP\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u4e3b\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u6781\u81f4\u6027\u80fd\u4e0e\u53ef\u63a7\u5f00\u9500\u8981\u6c42\uff1a<\/strong> C++\u4fa7\u670d\u52a1\u4f4d\u4e8e\u8bf7\u6c42\u94fe\u8def\u5173\u952e\u8def\u5f84\uff0c\u5bf9RT\u4e0e\u5c3e\u5ef6\u8fdf\u6781\u5176\u654f\u611f\uff0c\u9700\u8981\u5bf9<strong>Span\u521b\u5efa\u3001\u4e0a\u4e0b\u6587\u4f20\u64ad\u3001\u5c5e\u6027\u5199\u5165<\/strong>\u7b49\u64cd\u4f5c\u8fdb\u884c\u4e25\u683c\u7684CPU\u4e0e\u5185\u5b58\u5f00\u9500\u63a7\u5236\uff0c\u5e76\u5bf9\u5185\u5b58\u5206\u914d\u3001\u9501\u7ade\u4e89\u53ca\u7ebf\u7a0b\u5207\u6362\u5177\u5907\u4e25\u683c\u53ef\u63a7\u6027\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cOpenTelemetry C++ SDK\u66f4\u504f\u5411<strong>\u901a\u7528\u6027\u4e0e\u6807\u51c6\u5b8c\u5907\u6027\uff0c<\/strong> \u5176\u62bd\u8c61\u5c42\u6b21\u4e0e\u6269\u5c55\u70b9\u5728\u90e8\u5206\u9ad8QPS\u573a\u666f\u4e0b\u5b58\u5728\u4e0d\u53ef\u5ffd\u7565\u7684\u6027\u80fd\u4e0d\u786e\u5b9a\u6027\u3002<\/li>\n<li><strong>\u539f\u751fSDK\u884c\u4e3a\u4e0d\u900f\u660e\u5e26\u6765\u7684\u5de5\u7a0b\u98ce\u9669\uff1a<\/strong> OpenTelemetry C++ SDK \u5185\u90e8\u5b9e\u73b0\u8f83\u4e3a\u590d\u6742\uff0c\u53ef\u80fd\u5305\u542b\u9690\u5f0f\u7ebf\u7a0b\u3001\u540e\u53f0\u4efb\u52a1\u6216\u590d\u6742\u751f\u547d\u5468\u671f\u7ba1\u7406\uff0c\u5728\u6781\u7aef\u5e76\u53d1\u6216\u5f02\u5e38\u573a\u666f\u4e0b\u7684\u95ee\u9898\u5b9a\u4f4d\u4e0e\u8fb9\u754c\u63a7\u5236\u6210\u672c\u8f83\u9ad8\uff0c\u800c\u5bf9\u6e90\u7801\u5b8c\u6574\u8bc4\u4f30\u7684\u6210\u672c\u540c\u6837\u9ad8\u6602\u3002<\/li>\n<\/ul>\n<ul>\n<li><strong>brpc+bthread\u8fd0\u884c\u6a21\u578b\u7684\u517c\u5bb9\u6027\u62c5\u5fe7\uff1a<\/strong> C++ \u670d\u52a1\u5927\u91cf\u57fa\u4e8ebrpc\u4e0ebthread\u7528\u6237\u6001\u8c03\u5ea6\u6a21\u578b\uff0c\u82e5SDK\u5185\u90e8\u4f9d\u8d56pthread\u6216\u5f15\u5165\u989d\u5916\u7cfb\u7edf\u7ebf\u7a0b\uff0c\u53ef\u80fd\u5f71\u54cdbthread worker\u7684\u8c03\u5ea6\u884c\u4e3a\uff0c\u5b58\u5728\u8fd0\u884c\u65f6\u7684\u517c\u5bb9\u98ce\u9669\u3002<\/li>\n<li><strong>\u5de5\u7a0b\u4f9d\u8d56\u4e0e\u7b26\u53f7\u51b2\u7a81\u98ce\u9669\uff08\u5c24\u5176\u662fProtobuf\uff09\uff1a<\/strong> \u73b0\u6709\u5de5\u7a0b\u4f9d\u8d56\u7279\u5b9a\u7248\u672c\u7684protobuf\uff0c\u800cOpenTelemetry C++ SDK\u5bf9\u5176\u4f9d\u8d56\u6808\u6709\u72ec\u7acb\u7248\u672c\u8981\u6c42\uff0c\u5728\u9759\u6001\u6216\u6df7\u5408\u94fe\u63a5\u573a\u666f\u4e0b\u5b58\u5728\u7b26\u53f7\u6cc4\u6f0f\u4e0eABI\u51b2\u7a81\u98ce\u9669\uff0c\u6574\u4f53\u5de5\u7a0b\u7a33\u5b9a\u6027\u4e0d\u53ef\u63a7\u3002<\/li>\n<\/ul>\n<p><strong>SDK\u6846\u67b6<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529921\" alt=\"\" title=\"\"><\/p>\n<ul>\n<li><strong>APM Cpp SDK\uff1a<\/strong> \u5b9e\u73b0Span\u7684\u521b\u5efa\u3001\u91c7\u96c6\u548c\u4e0a\u62a5\uff0c\u540c\u65f6\u4e0e\u63a7\u5236\u5e73\u9762\u5bf9\u63a5\u5b9e\u73b0\u5fc3\u8df3\u548c\u914d\u7f6e\u70ed\u66f4\u65b0\uff0c\u57fa\u4e8ekafka\u4e0a\u62a5Trace\u3002<\/li>\n<li><strong>brpc-tracer\uff1a<\/strong> brpc\u6846\u67b6\u9002\u914d\u5c42\uff0c\u652f\u6301http\u4e0ebaidu-std\u534f\u8bae\u7684\u81ea\u52a8\u4e0a\u62a5\u63a2\u9488\u3002<\/li>\n<li><strong>\u5f15\u64ce\u63a5\u5165\uff1a<\/strong> \u4e1a\u52a1\u4fa7\u901a\u8fc7\u4f9d\u8d56brpc-tracer\uff0c\u652f\u6301\u94fe\u8def\u4e0a\u62a5\u3002<\/li>\n<\/ul>\n<p><strong>\u62a5\u6587\u538b\u7f29\u65b9\u6848<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529922\" alt=\"\" title=\"\" loading=\"lazy\"><br \/>\u901a\u8fc7\u5bf9\u62a5\u6587\u8fdb\u884c\u538b\u7f29\uff0c\u663e\u8457\u964d\u4f4eTrace\u4e0a\u62a5\u8fc7\u7a0b\u4e2d\u7684\u5e26\u5bbd\u6d88\u8017\uff0c\u51cf\u5c11\u94fe\u8def\u6570\u636e\u4e0e\u4e1a\u52a1\u8bf7\u6c42\u5728\u5e26\u5bbd\u4e0a\u7684\u7ade\u4e89\uff0c\u907f\u514d\u5bf9\u6b63\u5e38\u8bf7\u6c42\u54cd\u5e94\u65f6\u5ef6\u4ea7\u751f\u5e72\u6270\uff0c\u4fdd\u969c\u4e1a\u52a1\u670d\u52a1\u7a33\u5b9a\u6027\u3002<\/p>\n<p><strong>\u538b\u7f29\u7b56\u7565\uff1a<\/strong><\/p>\n<p><strong>\u957f\u5ea6\u8fc7\u6ee4\uff1a<\/strong> \u5bf9\u5199\u7684\u5c5e\u6027\u3001\u4e8b\u4ef6\u3001\u5f02\u5e38\u8fdb\u884ckey\u3001value\u957f\u5ea6\u9650\u5236\uff0c\u5bf9Span\u7684\u6574\u4f53\u8fdb\u884c\u957f\u5ea6\u9650\u5236\uff0c\u8d85\u51fa\u9608\u503c\u90e8\u5206\u8fdb\u884c\u622a\u65ad\uff0c\u9608\u503c\u5b9e\u73b0\u4e86\u63a7\u5236\u5e73\u9762\u7684<strong>\u52a8\u6001\u66f4\u65b0\u3002<\/strong><\/p>\n<p><strong>\u5b57\u6bb5\u538b\u7f29\uff1a<\/strong> \u5c3d\u53ef\u80fd\u7684\u5bf9\u534f\u8bae\u4e2d\u7684\u6240\u6709\u5b57\u6bb5\u8fdb\u884c\u4e86\u538b\u7f29\uff0c\u4f8b\u5982\uff0c16\u8fdb\u5236\u5b57\u7b26\u4e32\u6253\u5305\u4e3a2\u8fdb\u5236\uff0c\u901a\u7528\u5b57\u6bb5\u7701\u7565key\uff0c\u901a\u8fc7\u5dee\u503c\u66ff\u4ee3\u7ed3\u675f\u65f6\u95f4\u7b49\u3002<\/p>\n<p><strong>\u6279\u91cf\u805a\u5408\uff1a<\/strong> \u5c06\u591a\u6761Span\u8fdb\u884c\u5408\u5e76\uff0c\u4f5c\u4e3a\u4e00\u6761\u62a5\u6587\u8fdb\u884c\u4e0a\u62a5\uff0c\u589e\u52a0\u541e\u5410\u91cf\u7684\u540c\u65f6\uff0c\u51cf\u5c11kafka\u96c6\u7fa4\u548c\u5e26\u5bbd\u538b\u529b\u3002\u805a\u5408\u9608\u503c\u4e5f\u5b9e\u73b0\u4e86\u63a7\u5236\u5e73\u9762\u52a8\u6001\u66f4\u65b0\u3002<\/p>\n<p><strong>\u9759\u6001\u4fe1\u606f\u62bd\u53d6\uff1a<\/strong> \u5bf9\u8fdb\u7a0b\u7ea7\u522b\u7684\u9759\u6001\u4fe1\u606f\u4eceSpan\u5bf9\u8c61\u4e2d\u5265\u79bb\uff0c\u6bcf\u4e2a\u805a\u5408\u62a5\u6587\u53ea\u6dfb\u52a0\u4e00\u4e2a\u9759\u6001\u4fe1\u606f\u526f\u672c\u3002<\/p>\n<p><strong>Snappy\u538b\u7f29\uff1a<\/strong> \u5148\u5bf9\u805a\u5408\u540e\u7684\u6d88\u606f\u5e8f\u5217\u5316\uff0c\u518d\u8fdb\u884cSnappy\u538b\u7f29\uff0c\u7ecf\u9a8c\u538b\u7f29\u6bd4\u662f30%\u5de6\u53f3\u3002<\/p>\n<p><strong>\u5f02\u6b65\u4e0a\u62a5\u548cMPSC\u65e0\u9501\u73af\u961f\u5217<\/strong><br \/><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529923\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li><strong>\u5f02\u6b65\u4e0a\u62a5\uff1a<\/strong> Span\u91c7\u96c6\u540e\u5199\u5165\u961f\u5217\uff0c\u7531\u5f02\u6b65\u7ebf\u7a0b\u6279\u91cf\u5904\u7406\u5e76\u6295\u9012\u81f3Kafka\uff1b\u5f53\u961f\u5217\u5df2\u6ee1\u6216\u4e0a\u62a5\u5931\u8d25\u65f6\u76f4\u63a5\u4e22\u5f03\uff0c\u907f\u514d\u963b\u585e\u4e1a\u52a1\u7ebf\u7a0b\u53ca\u5185\u5b58\u81a8\u80c0\u3002<\/li>\n<li><strong>MPSC\u65e0\u9501\u5faa\u73af\u961f\u5217\uff1a<\/strong> MPSC\u662f\u652f\u6301\u591a\u751f\u4ea7\u8005\u5355\u6d88\u8d39\u8005\u7684\u65e0\u9501\u961f\u5217\u7ed3\u6784\uff0c\u5229\u7528\u5faa\u73af\u6570\u7ec4\u5b9e\u73b0\u9ad8\u6548\u6570\u636e\u4f20\u9012\u3002\u901a\u8fc7\u539f\u5b50\u64cd\u4f5c\u907f\u514d\u52a0\u9501\uff0c\u51cf\u5c11\u7ebf\u7a0b\u7ade\u4e89\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u5207\u6362\u548c\u6027\u80fd\u5f00\u9500\u3002\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u80fd\u63d0\u4f9b\u66f4\u7a33\u5b9a\u7684\u541e\u5410\u91cf\u548c\u66f4\u4f4e\u7684\u5ef6\u8fdf\uff0c\u4fdd\u8bc1\u961f\u5217\u64cd\u4f5c\u7684\u9ad8\u6548\u6027\u548c\u53ef\u9884\u6d4b\u6027\u3002<\/li>\n<\/ul>\n<p><strong>RPC\u63a2\u9488<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529924\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>RPC \u63a2\u9488\u5b9e\u73b0\u4e86<\/strong>\u5728\u534f\u8bae\u5c42\u5bf9\u8bf7\u6c42\u751f\u547d\u5468\u671f\u7684\u7edf\u4e00\u611f\u77e5\u4e0eTrace\u81ea\u52a8\u5316\u5904\u7406\uff0c\u652f\u6301BRpc\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u5728\u65e0\u4e1a\u52a1\u4fb5\u5165\u7684\u524d\u63d0\u4e0b\u5b8c\u6210Trace\u7684\u81ea\u52a8\u91c7\u6837\u4e0e\u4e0a\u62a5\u3002<\/p>\n<p>\u9488\u5bf9\u4e0d\u540c\u901a\u4fe1\u573a\u666f\uff0c\u5728\u534f\u8bae\u5c42\u5f15\u5165\u7edf\u4e00\u7684RPC\u63a2\u9488\uff0c\u901a\u8fc7\u57cb\u70b9\u56de\u8c03\u5bf9\u8bf7\u6c42\u751f\u547d\u5468\u671f\u8fdb\u884c\u62e6\u622a\uff0c\u5b9e\u73b0Trace\u7684\u81ea\u52a8\u91c7\u6837\u4e0e\u57cb\u70b9\u3002<\/p>\n<p><strong>\u4e0a\u7ebf\u6548\u679c<\/strong><\/p>\n<ul>\n<li>\u652f\u6301trace_id\u94fe\u8def\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529925\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u652f\u6301\u6307\u6807\u7ef4\u5ea6\uff08\u5f02\u5e38\uff0cRT\u8303\u56f4\u7b49\uff09\u7684\u94fe\u8def\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529926\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>Log\u6807\u51c6\u5316<\/h3>\n<p>\u5728\u5168\u94fe\u8def\u53ef\u89c2\u6d4b\u4f53\u7cfb\u4e2d\uff0c\u65e5\u5fd7\u662f\u8fd8\u539f\u4e1a\u52a1\u73b0\u573a\u7684\u6700\u7ec8\u8bc1\u636e\u3002\u9488\u5bf9\u7b97\u6cd5\u4fa7<strong>Java \u4fa7\u89c4\u8303\u3001C++ \u4fa7\u6742\u4e71<\/strong>\u7684\u73b0\u72b6\uff0c\u6211\u4eec\u5b9e\u65bd\u4e86\u6df1\u5ea6\u5bf9\u9f50\u4e0e\u8bed\u4e49\u91cd\u6784\u3002<\/p>\n<ul>\n<li>\u8de8\u8bed\u8a00\u8bed\u4e49\u5bf9\u9f50\uff1a\u4ee5Java\u4fa7\u6210\u719f\u7684\u6807\u51c6\u5316\u65e5\u5fd7\u4e3a\u6807\u6746\uff0c\u901a\u8fc7\u81ea\u7814C++ Log SDK\u63a8\u884c\u7ed3\u6784\u5316\u65e5\u5fd7\u534f\u8bae\u3002<\/li>\n<li>\u4e1a\u52a1\u8bed\u4e49\u951a\u5b9a\uff1a\u5728\u65e5\u5fd7\u89c4\u8303\u4e2d\u9996\u6b21\u5f15\u5165\u4e86\u201c\u573a\u666f (Scene) + \u5f02\u5e38\u7801 (Error Code)\u201d\u3002<\/li>\n<li><strong>\u573a\u666f\u5316\u5efa\u6a21\uff1a<\/strong> \u5c06\u5177\u4f53\u7684\u4e1a\u52a1\u4e0a\u4e0b\u6587\uff08\u5982\u63a8\u8350\u3001\u641c\u7d22\uff09\u6ce8\u5165\u65e5\u5fd7\u5143\u6570\u636e\uff0c\u4f7f\u65e5\u5fd7\u5177\u5907\u4e86\u6e05\u6670\u7684\u4e1a\u52a1\u5c5e\u6027\u3002<\/li>\n<li><strong>\u5f02\u5e38\u7801\u6807\u51c6\u5316\uff1a<\/strong> \u5efa\u7acb\u7b97\u6cd5\u4fa7\u7edf\u4e00\u7684\u9519\u8bef\u5b57\u5178\uff0c\u5b9e\u73b0\u4ece\u201c\u6a21\u7cca\u63cf\u8ff0\u201d\u5230\u201c\u7cbe\u786e\u6307\u7eb9\u201d\u7684\u8de8\u8d8a\u3002<\/li>\n<\/ul>\n<p><strong>\u65e5\u5fd7\u683c\u5f0f\u89c4\u8303<\/strong><\/p>\n<p>1.\u7edf\u4e00\u6587\u4ef6\u540d<\/p>\n<pre><code>\u00a0\/logs\/\u5e94\u7528\u540d\/{\u5e94\u7528\u540d}-error.log<\/code><\/pre>\n<ul>\n<li>\u6587\u4ef6\u76ee\u5f55\u5728\/logs\/\u5e94\u7528\u540d\/<\/li>\n<li>\u7edf\u4e00\u6587\u4ef6\u540d\u53eb{\u5e94\u7528\u540d}-error.log\uff0c\u6bd4\u5982\u5f15\u64ce\u7684\u53eb\uff1adoe-server-error.log<\/li>\n<li>\u65e5\u5fd7\u91c7\u96c6\u65f6\u6309pattern: *-error.log\u91c7\u96c6<\/li>\n<\/ul>\n<p>2.\u65e5\u5fd7\u683c\u5f0f<\/p>\n<ul>\n<li>\u6309\u7167\u7ad6\u7ebf \u201c|\u201d\u5206\u9694\u7b26\u5206\u9694<\/li>\n<\/ul>\n<pre><code>\u00a0\u65f6\u95f4\u6233|\u8fdb\u7a0bID:\u7ebf\u7a0bID|\u65e5\u5fd7\u7b49\u7ea7|[\u5e94\u7528\u540d,trace_id,span_id,scene,errCode,]|\u63a5\u53e3\u540d|\u4ee3\u7801\u884c\u53f7|[\u53ef\u7528\u533a,\u96c6\u7fa4\u540d,,]|\u5f02\u5e38\u540d|message<\/code><\/pre>\n<ul>\n<li>\u5b57\u6bb5\u8be6\u7ec6\u4ecb\u7ecd<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529927\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u65e5\u5fd7\u6a21\u677f\u805a\u7c7b\u7b97\u6cd5<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529928\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u6a21\u677f\u805a\u7c7b\u6d41\u7a0b<\/strong><\/p>\n<p>\u89c4\u5219\uff1a\u4ee5\u6b63\u5219\u63a9\u7801+Drain\u89e3\u6790\u6811\u4e3a\u57fa\u7840<\/p>\n<ul>\n<li><strong>\u6b63\u5219\u63a9\u7801\uff1a<\/strong> \u901a\u8fc7\u6b63\u5219\u5bf9\u65e5\u5fd7\u8fdb\u884c\u9884\u5904\u7406\uff0c\u5982\u65f6\u95f4\uff0cIP\u5730\u5740\uff0c\u6570\u5b57\uff0c\u7b49\u7b49\u3002\u4f8b\u5982\u201c2025-12-01 10:20:30 ERROR host 10.0.1.2 connect timeout\u201d\u7ecf\u8fc7\u6b63\u5219\u63a9\u7801\u540e\uff0c\u5f97\u5230\u201c&lt;:TIME:&gt; ERROR host &lt;:IP:&gt; connect timeout\u201d<\/li>\n<li><strong>Drain\u7b97\u6cd5\uff1a<\/strong> Drain\u7b97\u6cd5\u662f\u4e00\u79cd\u7528\u4e8e\u5904\u7406\u65e5\u5fd7\u6570\u636e\u7684\u7ed3\u6784\u5316\u5206\u6790\u7b97\u6cd5\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u65e5\u5fd7\u89e3\u6790\u548c\u65e5\u5fd7\u6a21\u677f\u62bd\u53d6\u9886\u57df\u3002\u5b83\u662f\u4e00\u79cd\u57fa\u4e8e\u5c42\u6b21\u805a\u7c7b\u7684\u5728\u7ebf\u65e5\u5fd7\u89e3\u6790\u7b97\u6cd5\uff0c\u5176\u4e3b\u8981\u76ee\u6807\u662f\u4ece\u539f\u59cb\u65e5\u5fd7\u4e2d\u63d0\u53d6\u65e5\u5fd7\u6a21\u677f\uff0c\u4ece\u800c\u5c06\u975e\u7ed3\u6784\u5316\u65e5\u5fd7\u8f6c\u6362\u4e3a\u534a\u7ed3\u6784\u5316\u6570\u636e\u683c\u5f0f\uff0c\u8fd9\u6709\u52a9\u4e8e\u540e\u7eed\u7684\u65e5\u5fd7\u5206\u6790\u3001\u6545\u969c\u68c0\u6d4b\u548c\u7cfb\u7edf\u76d1\u63a7\u3002<\/li>\n<\/ul>\n<p><strong>Drain\u7b97\u6cd5\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4<\/strong><\/p>\n<ul>\n<li><strong>\u9884\u5904\u7406<\/strong><\/li>\n<\/ul>\n<p>\u9996\u5148\u9700\u8981\u5bf9\u65e5\u5fd7\u8fdb\u884c\u9884\u5904\u7406\uff0c\u5305\u62ec\u524d\u6587\u7684\u6b63\u5219\u63a9\u7801\uff0c\u4ee5\u51cf\u5c11\u5197\u4f59\u4fe1\u606f\u5bf9\u89e3\u6790\u7684\u5f71\u54cd\u3002\u53e6\u5916\uff0c\u9700\u8981\u5bf9\u65e5\u5fd7\u8fdb\u884c\u5206\u8bcd\uff0c\u6309\u7a7a\u683c\u548c\u5176\u4ed6\u5206\u5272\u7b26\u5212\u5206\u4e3a\u591a\u4e2a\u7247\u6bb5\u3002<\/p>\n<ul>\n<li><strong>drain\u89e3\u6790\u6811<\/strong><\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765\u6784\u5efa\u4e86\u4e00\u79cd\u5c42\u6b21\u7ed3\u6784\u7684\u6811\uff0c\u79f0\u4e3aparse tree\uff0c\u7528\u4e8e\u8bb0\u5f55\u548c\u7ec4\u7ec7\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<ul>\n<li>\u5728\u6811\u7684\u7b2c\u4e00\u7ea7\u8282\u70b9\uff0c\u65e5\u5fd7\u5c06\u4f1a\u4f9d\u636e\u5176\u957f\u5ea6\uff08\u5206\u8bcd\u540e\u7247\u6bb5\u6570\u76ee\uff09\u8fdb\u884c\u5206\u7c7b\u3002\u4e0d\u540c\u957f\u5ea6\u7684\u65e5\u5fd7\u4f1a\u88ab\u5206\u914d\u5230\u4e0d\u540c\u7684\u8def\u5f84\u4e0a\u3002<\/li>\n<li>\u7136\u540e\u5728\u6811\u7684\u540e\u7eed\u5c42\u7ea7\u4e2d\uff0c\u6bcf\u4e00\u5c42\u7ea7\u90fd\u5c1d\u8bd5\u6839\u636e\u5176\u4ed6\u7684\u9759\u6001\u5173\u952e\u5b57\u5bf9\u65e5\u5fd7\u6d88\u606f\u8fdb\u884c\u8fdb\u4e00\u6b65\u7ec6\u5316\u5206\u7c7b\u3002<\/li>\n<li>\u6811\u7684\u53f6\u5b50\u8282\u70b9\u4e3a\u65e5\u5fd7\u805a\u7c7b\u6876\uff0c\u9010\u4e2a\u904d\u5386\u6876\u4e2d\u7684\u805a\u7c7b\uff0c\u5206\u522b\u5224\u65ad\u5f53\u524d\u65e5\u5fd7\u4e0e\u5bf9\u5e94\u65e5\u5fd7\u805a\u7c7b\u7684\u76f8\u4f3c\u5ea6\u662f\u5426\u8fbe\u5230\u9608\u503c\uff0c\u76f8\u4f3c\u5ea6\u7b97\u6cd5\u4e3a\u76f8\u540c\u4f4d\u7f6e\u7684\u76f8\u540ctoken\u5360token\u603b\u6570\u7684\u6bd4\u4f8b\u3002<\/li>\n<li>\u5982\u679c\u76f8\u4f3c\u5219\u5c06\u5224\u65ad\u5f53\u524d\u7684\u65e5\u5fd7\u5339\u914d\u8be5\u805a\u7c7b\uff0c\u5982\u679c\u90fd\u4e0d\u76f8\u4f3c\u5219\u521b\u5efa\u65b0\u7684\u805a\u7c7b\u5e76\u52a0\u5165\u6876\u4e2d\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529929\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u4e0a\u7ebf\u6548\u679c<\/strong><\/p>\n<p>\u65e5\u5fd7\u6a21\u677f\u805a\u7c7b\u7ef4\u5ea6\u652f\u6301\uff1a\u5e94\u7528\u540d\u3001\u96c6\u7fa4\u540d\u3001\u5f02\u5e38\u540d\u3001code\u7801\u3001\u5f02\u5e38\u65e5\u5fd7\u6a21\u7248\u7b49\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529930\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u56db\u3001\u4ee5\u201c\u573a\u666f\u201d\u4e3a\u9b42\uff1a\u6784\u5efa\u7b97\u6cd5\u77e5\u8bc6\u56fe\u8c31<\/h2>\n<h3>\u573a\u666f\u5316\u5efa\u6a21 (AlgoScene)<\/h3>\n<p>\u5728\u5f97\u7269APP\u4e2d\uff0c\u7528\u6237\u6bcf\u4e00\u6b21\u641c\u7d22\u6216\u8fdb\u5165\u793e\u533a\u9891\u9053\uff0c\u5e95\u5c42\u90fd\u4f1a\u89e6\u53d1\u4e00\u6b21\u590d\u6742\u7684RPC\u8c03\u7528\u6d41\u3002\u6d41\u91cf\u5728\u7b97\u6cd5\u57df\u5185\u7a7f\u68ad\u65f6\uff0c\u4f1a\u7ecf\u5386\u591a\u6b21\u4e0d\u540c\u201c\u573a\u666f\u201d\u7b97\u5b50\u7684\u4e32\u884c\u4e0e\u5e76\u884c\u8ba1\u7b97\uff0c\u6700\u7ec8\u624d\u5c06\u63a8\u8350\u7ed3\u679c\u53cd\u9988\u7ed9\u5ba2\u6237\u7aef\u3002\u6b63\u662f\u7531\u4e8e\u8fd9\u79cd\u8c03\u7528\u8def\u5f84\u6781\u5176\u590d\u6742\u4e14\u5177\u5907\u9ad8\u5ea6\u7684\u4e1a\u52a1\u7279\u6027\uff0c\u6211\u4eec\u51b3\u5b9a\u6253\u7834\u4f20\u7edf\u7684\u7269\u7406\u94fe\u8def\u89c6\u89d2\uff0c\u8f6c\u800c\u4ee5 <strong>\u201c\u573a\u666f\u201d\u4e3a\u6838\u5fc3\u5355\u5143\u6784\u5efa\u77e5\u8bc6\u56fe\u8c31\u3002<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529931\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5982\u56fe\u6240\u793a\uff0c<\/p>\n<ul>\n<li>\u4e00\u4e2a\u573a\u666f\u7531\u591a\u4e2a\u7b97\u5b50\u7ec4\u5408<\/li>\n<li>\u6bcf\u4e2a\u7b97\u5b50\u75310..\u591a\u4e2a\u7ec4\u4ef6\u6784\u6210<\/li>\n<li>\u7ec4\u4ef6\u4e00\u822c\u901a\u8fc7RPC\uff08HTTP\/GRPC\/Dubbo\/Redis\/BRPC\/\u573a\u666f\uff09\u65b9\u5f0f\u8c03\u7528\u4e0b<\/li>\n<\/ul>\n<p><strong>AlgoScene\u573a\u666f\u540d<\/strong><\/p>\n<p>\u5728\u786e\u5b9a\u4ee5\u201c\u573a\u666f\u201d\u4e3a\u6838\u5fc3\u7684\u4e32\u8054\u903b\u8f91\u540e\uff0c\u7531\u4e8e\u5355\u6b21 RPC \u8c03\u7528\u5f80\u5f80\u6a2a\u8de8\u591a\u4e2a\u7b97\u6cd5\u8282\u70b9\uff0c\u6211\u4eec\u5fc5\u987b\u5b9e\u73b0\u5bf9<strong>\u591a\u573a\u666f\u52a8\u6001\u94fe<\/strong>\u7684\u652f\u6301\u3002<\/p>\n<p>\u8003\u8651\u5230\u7b97\u6cd5\u4efb\u52a1\u7f16\u6392\u5929\u7136\u4ee5\u573a\u666f\u4e3a\u57fa\u672c\u5355\u5143\uff0c\u6211\u4eec\u901a\u8fc7\u5728Trace SDK\u4e2d\u5c01\u88c5putAlgoSceneToBaggage\u65b9\u6cd5\uff0c\u5229\u7528<strong>Baggage\u673a\u5236<\/strong>\u5c06\u573a\u666f\u4fe1\u606f\u900f\u4f20\u81f3\u5168\u94fe\u8def\u3002\u5728\u6bcf\u4e2a\u670d\u52a1\u7684\u573a\u666f\u5165\u53e3\u5904\uff0c\u53ea\u9700\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5373\u53ef\u5b9e\u73b0\u573a\u666f\u4e0a\u4e0b\u6587\u7684\u6ce8\u5165\uff0c\u786e\u4fdd\u5168\u94fe\u8def\u4e2d\u7684\u6bcf\u4e2aSpan\u90fd\u80fd\u81ea\u52a8\u643a\u5e26algo_scene\u5b57\u6bb5\uff1a<\/p>\n<pre><code>Context\u00a0ctx\u00a0=\u00a0AlgoBaggageOperator.putAlgoSceneToBaggage(&quot;trans_product&quot;);\ntry\u00a0(Scope\u00a0scope\u00a0=\u00a0ctx.activate()) {\n\u00a0 \u00a0\u00a0\/\/ \u4e1a\u52a1\u903b\u8f91\u6267\u884c\n}<\/code><\/pre>\n<p>\u5728\u6570\u636e\u6e05\u6d17\u9636\u6bb5\uff0c\u6211\u4eec\u901a\u8fc7\u5bf9algo_scene\u5b57\u6bb5\u8fdb\u884c\u9017\u53f7\u5207\u5206\uff0c\u89e3\u6790\u51fa\u5b8c\u6574\u7684<strong>\u573a\u666f\u8def\u5f84\u94fe\uff1a<\/strong><\/p>\n<ul>\n<li><strong>algoScene\uff1a<\/strong> \u8bb0\u5f55\u5168\u94fe\u8def\u7ecf\u8fc7\u7684\u6240\u6709\u573a\u666f\u540d\uff08\u9017\u53f7\u5206\u9694\uff09\u3002<\/li>\n<li><strong>rootScene\uff1a<\/strong> \u5207\u5206\u540e\u7684\u7b2c\u4e00\u4e2a\u573a\u666f\u540d\uff0c\u4ee3\u8868\u6d41\u91cf\u8fdb\u5165\u7b97\u6cd5\u57df\u7684\u539f\u59cb\u89e6\u53d1\u6e90\u3002<\/li>\n<li><strong>currentScene\uff1a<\/strong> \u5207\u5206\u540e\u7684\u6700\u540e\u4e00\u4e2a\u573a\u666f\u540d\uff0c\u4ee3\u8868\u5f53\u524d\u8282\u70b9\u6240\u5c5e\u7684\u5177\u4f53\u7b97\u5b50\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529932\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6700\u7ec8Trace\u6548\u679c<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529933\" alt=\"\" title=\"\" loading=\"lazy\"><br \/><strong>\u4f20\u64ad\u94fe\u201cBaggage\u201d VS \u201cInnerBaggage\u201d<\/strong><\/p>\n<p><strong>Baggage<\/strong>\u662fOpenTelemetry\u89c2\u6d4b\u6807\u51c6\u4e2d\u7684\u4e00\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u3002\u5982\u679c\u8bf4TraceID\u662f\u7528\u6765\u4e32\u8054\u6574\u4e2a\u8c03\u7528\u94fe\u7684\u201c\u8eab\u4efd\u8bc1\u201d\uff0c\u90a3\u4e48<strong>Baggage\u5c31\u50cf\u662f\u968f\u8eab\u643a\u5e26\u7684\u201c\u884c\u674e\u7bb1\u201d\u3002<\/strong><\/p>\n<p>\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5728\u6574\u4e2a\u8bf7\u6c42\u94fe\u8def\u4e2d\u643a\u5e26<strong>\u81ea\u5b9a\u4e49\u7684\u952e\u503c\u5bf9\uff08Key-Value Pairs\uff09\u3002<\/strong> \u8fd9\u4e9b\u6570\u636e\u4f1a\u968f\u7740HTTP Header\u6216RPC\u5143\u6570\u636e\u5728\u5404\u4e2a\u5fae\u670d\u52a1\u4e4b\u95f4\u81ea\u52a8\u201c\u6f02\u6d41\u201d\uff0c\u786e\u4fdd\u4e0b\u6e38\u670d\u52a1\u80fd\u591f\u611f\u77e5\u4e0a\u6e38\u4f20\u9012\u7684\u4e1a\u52a1\u4e0a\u4e0b\u6587\u3002<\/p>\n<p><strong>\u6838\u5fc3\u539f\u7406<\/strong><\/p>\n<p>Baggage\u662f\u57fa\u4e8eHTTP Header\u534f\u8bae\u5b9e\u73b0\u7684\u3002\u6839\u636eW3C\u6807\u51c6\uff0c\u5b83\u4f1a\u5c06\u6570\u636e\u5b58\u653e\u5728\u540d\u4e3abaggage\u7684Header\u4e2d\u8fdb\u884c\u900f\u4f20\uff1a<\/p>\n<ul>\n<li><strong>\u683c\u5f0f\uff1a<\/strong> baggage: algoScene=recommend_v1,isTest=true<\/li>\n<li><strong>\u4f20\u64ad\u65b9\u5f0f\uff1a<\/strong> \u81ea\u52a8\u968f\u8bf7\u6c42\u4eceService A\u6d41\u8f6c\u81f3Service B\u3001C\uff0c\u65e0\u9700\u5728\u6bcf\u4e2a\u670d\u52a1\u7684\u4e1a\u52a1\u4ee3\u7801\u4e2d\u624b\u52a8\u6dfb\u52a0\u53c2\u6570\u3002<\/li>\n<\/ul>\n<p><strong>\u5e95\u5c42\u5b9e\u73b0<\/strong><\/p>\n<p>\u5982\u4f55\u5c06baggage\u4fe1\u606f\u5e94\u7528\u5230\u6bcf\u4e2aspan\u5462\uff1f\u6211\u4eec\u589e\u5f3a\u4e86spanProcessor\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>Baggage\u00a0baggage\u00a0=\u00a0Baggage.fromContext(parentContext);\nbaggage.forEach((s, baggageEntry) -&gt; {\n\u00a0 \u00a0\u00a0if\u00a0(s.startsWith(OTEL_TO_SPAN_BAGGAGE_PREFIX)) {\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0String\u00a0value\u00a0=\u00a0baggageEntry.getValue();\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0if\u00a0(value ==\u00a0null) {\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 value = NULL_VALUE;\n\u00a0 \u00a0 \u00a0 \u00a0 }\u00a0else\u00a0if\u00a0(value.isEmpty()) {\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 value = EMPTY_VALUE;\n\u00a0 \u00a0 \u00a0 \u00a0 }\n\u00a0 \u00a0 \u00a0 \u00a0 span.setAttribute(&quot;baggage:&quot;\u00a0+ s.substring(OTEL_TO_SPAN_BAGGAGE_PREFIX.length()), value);\n\u00a0 \u00a0 }\n});<\/code><\/pre>\n<p><strong>InnerBaggage<\/strong><\/p>\n<p>\u5728\u5168\u94fe\u8def\u8ffd\u8e2a\u4e2d\uff0c\u5982\u679c\u8bf4Baggage\u89e3\u51b3\u4e86\u670d\u52a1\u4e4b\u95f4\u7684\u8de8\u7ad9\u4f20\u9012\uff0c\u786e\u4fdd\u4e1a\u52a1\u4fe1\u606f\u80fd\u8de8\u8d8a\u673a\u5668\u9001\u8fbe\u4e0b\u6e38\uff1b\u90a3\u4e48InnerBaggage\u5219\u8d1f\u8d23\u670d\u52a1\u5185\u90e8\u7684\u8fdb\u7a0b\u4f20\u9012\uff0c\u786e\u4fdd\u5728\u540c\u4e00\u4e2a\u8fdb\u7a0b\u91cc\uff0c\u65e0\u8bba\u4e1a\u52a1\u903b\u8f91\u7ecf\u8fc7\u591a\u5c11\u4e2a\u7ec4\u4ef6\uff0c\u5f53\u524d\u7684\u201c\u7b97\u5b50\u540d\u201d\u7b49\u4fe1\u606f\u90fd\u80fd\u81ea\u52a8\u540c\u6b65\u5230\u6bcf\u4e00\u4e2a\u6267\u884c\u6b65\u9aa4\u4e2d\uff0c\u65e0\u9700\u5728\u4ee3\u7801\u91cc\u5c42\u5c42\u624b\u52a8\u4f20\u9012\u53c2\u6570\u3002<\/p>\n<p>\u793a\u4f8b<\/p>\n<pre><code>\/\/ \u5728\u7b97\u5b50\u5165\u53e3\u5904\uff0c\u5b9a\u4e49\u4e00\u4e2a InnerBaggage \u4f5c\u7528\u57df\ntry\u00a0(Scope ignored = InnerBaggage.with(&quot;search_processor_biz_component&quot;,\u00a0&quot;content_agg&quot;)) { \u00a0 \u00a0\u00a0\n\u00a0 \u00a0\u00a0\/\/ \u8fd9\u91cc\u7684\u903b\u8f91\u65e0\u8bba\u662f\u8c03\u7528\u6570\u636e\u5e93\u8fd8\u662f\u8ba1\u7b97\uff0c\u751f\u6210\u7684 Span \u90fd\u4f1a\u81ea\u52a8\u5e26\u4e0a search_processor_biz_component=content_agg \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 runComponentLogic(); \u00a0\n} \u00a0\n\/\/ \u4f5c\u7528\u57df\u7ed3\u675f\uff0cInnerBaggage \u81ea\u52a8\u6e05\u7406\uff0c\u9632\u6b62\u6c61\u67d3\u4e0b\u4e00\u4e2a\u7b97\u5b50<\/code><\/pre>\n<p>\u6700\u7ec8\u6548\u679c<\/p>\n<p>\u4e00\u4e2a\u8fdc\u7a0bDubbo-client\u88ab\u6210\u529f\u6807\u8bb0algo_scene\u548c\u4e1a\u52a1\u7b97\u5b50\u540d\u201ccontent_agg\u201d\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529934\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u52a8\u6001\u5143\u6570\u636e\u4e0e\u6d41\u5f0f\u8ba1\u7b97<\/h3>\n<p><strong>\u914d\u7f6e\u4e2d\u5fc3\u5143\u6570\u636e<\/strong><\/p>\n<p>\u5728\u590d\u6742\u7684\u7b97\u6cd5\u573a\u666f\u4e2d\uff0c\u7531\u4e8e\u53d8\u66f4\u9891\u7387\u6781\u9ad8\uff0c\u786c\u7f16\u7801\u663e\u7136\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\uff0c\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u5957\u57fa\u4e8e\u914d\u7f6e\u4e2d\u5fc3\u7684\u52a8\u6001\u5143\u6570\u636e\u8ba2\u9605\u4f53\u7cfb\u3002<\/p>\n<ul>\n<li>\u5efa\u7acb\u201c\u5e94\u7528-\u914d\u7f6e\u96c6\u201d\u8ba2\u9605\u5173\u7cfb<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529935\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u5143\u6570\u636e\u6a21\u578b\u5b9a\u4e49<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u652f\u6491\u5e94\u7528\u4e0e\u914d\u7f6e\u4e4b\u95f4\u7684\u591a\u5bf9\u591a\u5173\u7cfb\uff0c\u6211\u4eec\u8bbe\u8ba1\u4e86\u5982\u4e0b\u6838\u5fc3\u8868\u7ed3\u6784\uff0c\u7528\u4e8e\u8bb0\u5f55\u8ba2\u9605\u903b\u8f91\u4e0e\u5143\u6570\u636e\u753b\u50cf\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529936\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u573a\u666f\u62d3\u6251\u56fe (Neo4j)<\/strong><\/p>\n<p>\u5728\u5b8c\u6210\u4e1a\u52a1\u4fa7\u7684\u5168\u94fe\u8def\u57cb\u70b9\u540e\uff0c\u540e\u7aef\u6570\u636e\u6e05\u6d17\u5c42\u8d1f\u8d23\u5c06\u6d77\u91cf\u7684\u539f\u59cbTrace\u6570\u636e\u8fdb\u884c\u7ed3\u6784\u5316\u5904\u7406\uff1a\u5b83\u5b9e\u65f6\u89e3\u6790\u5e76\u63d0\u53d6<strong>Baggage<\/strong>\u4e2d\u7684\u5168\u5c40\u573a\u666f\u4fe1\u606f\u4e0e<strong>InnerBaggage<\/strong>\u4e2d\u7684\u5c40\u90e8\u7b97\u5b50\u6807\u7b7e\uff0c\u4ece\u800c\u5c06\u79bb\u6563\u7684\u94fe\u8def\u4fe1\u606f\u8f6c\u5316\u4e3a\u6807\u51c6\u5316\u7684\u4e1a\u52a1\u8ba1\u7b97\u6d41\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529937\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u6d41\u5f0f\u8ba1\u7b97\u5f15\u64ce<\/strong><\/p>\n<p>\u501f\u52a9\u6d41\u5f0f\u8ba1\u7b97\u5f15\u64ce\u5f3a\u5927\u7684EPL\u80fd\u529b\uff0c\u6211\u4eec\u901a\u8fc7\u7c7bSQL\u7684\u58f0\u660e\u5f0f\u8bed\u6cd5\uff0c\u7cbe\u70bc\u5730\u5b9e\u73b0\u4e86\u4ece\u5b9e\u65f6\u591a\u7ef4\u805a\u5408\u5230\u590d\u6742\u6a21\u5f0f\u5339\u914d\u7684\u903b\u8f91\u8868\u8fbe\uff0c\u76ee\u524d\u5df2\u6c89\u6dc0\u51fa12\u4e2a\u8986\u76d6\u6838\u5fc3\u4e1a\u52a1\u573a\u666f\u7684\u6807\u51c6SQL\u7b97\u5b50\uff0c\u663e\u8457\u63d0\u5347\u4e86\u5b9e\u65f6\u6570\u636e\u5904\u7406\u7684\u5f00\u53d1\u6548\u7387\u4e0e\u7075\u6d3b\u6027\u3002SQL\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code>@TimeWindow(10)\n@Metric(name =\u00a0'algo_redis_client', tags = {'algoScene','rootScene','currentScene','props','env','clusterName','serviceName','redisUrl','statusCode'}, fields = {'timerCount',\u00a0'timerSum',\u00a0'timerMax'}, sampling='sampling')\nSELECT algoScene \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0algoScene,\n\u00a0 \u00a0 \u00a0 \u00a0rootScene \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0rootScene,\n\u00a0 \u00a0 \u00a0 \u00a0currentScene \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0currentScene,\n\u00a0 \u00a0 \u00a0 \u00a0get_value(origin.props) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0props,\n\u00a0 \u00a0 \u00a0 \u00a0env \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0env,\n\u00a0 \u00a0 \u00a0 \u00a0serviceName \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0serviceName,\n\u00a0 \u00a0 \u00a0 \u00a0clusterName \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0clusterName,\n\u00a0 \u00a0 \u00a0 \u00a0statusCode \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0statusCode,\n\u00a0 \u00a0 \u00a0 \u00a0redisUrl \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0redisUrl,\n\u00a0 \u00a0 \u00a0 \u00a0trunc_sec(startTime,\u00a010) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0timestamp,\n\u00a0 \u00a0 \u00a0 \u00a0max(duration) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0timerMax,\n\u00a0 \u00a0 \u00a0 \u00a0sum(duration) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0as\u00a0timerSum,\n\u00a0 \u00a0 \u00a0 \u00a0count(1) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0timerCount,\n\u00a0 \u00a0 \u00a0 \u00a0sampling(new Object[]{duration,traceId}) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0as\u00a0sampling\nFROM algoRedisSpan\u00a0as\u00a0origin\nGROUP BY algoScene, rootScene, currentScene, props,env,serviceName, clusterName, redisUrl,statusCode,trunc_sec(startTime,\u00a010)<\/code><\/pre>\n<ul>\n<li>@TimeWindow(10):\u00a0\u5b9a\u4e49\u4e86\u4e00\u4e2a10\u79d2\u7684\u6eda\u52a8\u7a97\u53e3\uff0c\u5f15\u64ce\u4f1a\u628a\u8fd910\u79d2\u5185\u4ea7\u751f\u7684\u6240Redis\u8bbf\u95ee\u8bb0\u5f55\uff08Span\uff09\u6512\u5728\u4e00\u8d77\u8fdb\u884c\u4e00\u6b21\u8ba1\u7b97<\/li>\n<li>@Metric(&#8230;):\u00a0\u8fd9\u5b9a\u4e49\u4e86\u8f93\u51fa\u7ed3\u679c\u7684\u7ed3\u6784\u3002\u5c06\u8ba1\u7b97\u7ed3\u679c\u8f6c\u5316\u4e3a\u6307\u6807\uff08Metric\uff09\uff0c\u5176\u4e2dtags\u662f\u7ef4\u5ea6\uff0cfields\u662f\u6570\u503c\u3002<\/li>\n<li>sampling(&#8230;):\u00a0\u91c7\u6837\u529f\u80fd\uff0c\u901a\u8fc7\u91c7\u6837\u903b\u8f91\u8bb0\u5f55\u8017\u65f6\u6700\u5927\u7684traceId\u3002<\/li>\n<\/ul>\n<p><strong>\u573a\u666f\u62d3\u6251\u56fe<\/strong><\/p>\n<p>\u524d\u9762\u6784\u9020\u4e86\u4ee5\u201c\u573a\u666f\u201d\u4e3a\u4e2d\u5fc3\u7684\u7b97\u6cd5\u57df\u8c03\u7528\u6307\u6807\uff0c\u540e\u9762\u6784\u9020\u600e\u6837\u7684\u6570\u636e\u6a21\u578b\u51b3\u5b9a\u4e86\u7528\u6237\u4ece\u4ec0\u4e48\u89d2\u5ea6\u53bb\u89c2\u5bdf\u548c\u5206\u6790\u6570\u636e\u3002\u6211\u4eec\u6452\u5f03\u4e86\u4e0d\u591f\u76f4\u89c2\u7684\u4f20\u7edf\u7684\u8868\u683c\u5f0f\u5c55\u793a\uff0c\u501f\u52a9\u5f3a\u5927\u7684\u56fe\u6570\u636e\u5b58\u50a8\u6570\u636e\u5e93Neo4j\uff0c\u5b9e\u65f6\u5b58\u50a8\u548c\u66f4\u65b0\u7b97\u6cd5\u573a\u666f\u7684\u7b97\u5b50\u8c03\u7528\u62d3\u6251\u56fe\u3002\u5b9e\u65f6\u8c03\u7528\u6307\u6807\u5173\u7cfb\u5b58\u50a8\u65f6\u5e8f\u6570\u636e\u5e93Victoriametrics\uff0c\u5b9e\u65f6\u8c03\u7528\u5173\u7cfb\u5b58\u50a8Neo4j\u3002<\/p>\n<p>\u56fe\u6a21\u578b<\/p>\n<ul>\n<li>\u8282\u70b9(Node)\uff1a\u4ee3\u8868\u5b9e\u4f53\uff0c\u5982\uff1aApp\u3001AppCluster\u3001ArkGroup\u3001ArkDataId\u3001AlgoComponent\u3001AlgoDGraph\u7b49<\/li>\n<li>\u5173\u7cfb(Relationship)\uff1a\u8fde\u63a5\u8282\u70b9\uff0c\u5982\uff1aSceneRelation\u3001AppRelation\u7b49<\/li>\n<li>\u5c5e\u6027(Properties)\uff1a\u5b58\u50a8\u5728\u8282\u70b9\u548c\u5173\u7cfb\u4e0a\u7684\u952e\u503c\u5bf9\uff0c\u5982\uff1aappName\u3001clusterName\u3001scene\u3001componentName\u3001updateTimestamp\u7b49<\/li>\n<\/ul>\n<p>\u6570\u636e\u6a21\u578b\u8bbe\u8ba1<\/p>\n<pre><code>\/\/ app\u8282\u70b9\nCREATE\u00a0(a:App {\n\u00a0 \u00a0\u00a0id:\u00a01,\n\u00a0 \u00a0\u00a0hash: -6545781662466553124,\n\u00a0 \u00a0\u00a0appName:\u00a0&quot;sextant&quot;\n})\n\/\/ appCluster\u8282\u70b9\nCREATE\u00a0(c:AppCluster {\n\u00a0 \u00a0\u00a0id:\u00a023,\n\u00a0 \u00a0\u00a0hash: -8144086133777820909,\n\u00a0 \u00a0\u00a0appName:\u00a0&quot;sextant&quot;,\n\u00a0 \u00a0\u00a0clusterName:\u00a0&quot;sextant-csprd-01&quot;\n})\n\/\/ index\nCREATE INDEX index_app_name\u00a0FOR\u00a0(a:App)\u00a0ON\u00a0(a.appName)\n\/\/ \u5173\u7cfb\nMATCH\u00a0(a:App {id:\u00a01}),(c:AppCluster {id:23})\nMERGE\u00a0(a)-[r:HAS_CLUSTER]-&gt;(c)\nON CREATE SET r.updateTs =\u00a0timestamp()\nON MATCH SET r.updateTs =\u00a0timestamp()\nreturn\u00a0r;<\/code><\/pre>\n<p>\u65f6\u5e8f\u6307\u6807\u8bbe\u8ba1<\/p>\n<pre><code>{\n\u00a0 \u00a0\u00a0&quot;metric&quot;:\u00a0{\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0&quot;__name__&quot;:&quot;algo_client_metric_timerCount&quot;,\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0&quot;from&quot;:&quot;hashcodexxx&quot;,\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0&quot;to&quot;:&quot;hashcodexxx&quot;,\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0&quot;statusCode&quot;:\u00a00,\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0&quot;type&quot;:\u00a0&quot;Dgraph&quot;\n\u00a0 \u00a0\u00a0},\n\u00a0 \u00a0\u00a0&quot;values&quot;:[42,32,15],\n\u00a0 \u00a0\u00a0&quot;timestamps&quot;:[1767573600,1767573620,1767573640]\n}<\/code><\/pre>\n<p><strong>\u4e0a\u7ebf\u6548\u679c<\/strong><\/p>\n<ul>\n<li>\u901a\u8fc7apoc\u83b7\u53d6\u5b9e\u4f53\u95f4\u7684\u8c03\u7528\u5173\u7cfb<\/li>\n<\/ul>\n<pre><code>CALL\u00a0apoc.meta.graph()<\/code><\/pre>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529938\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u901a\u8fc7cypher\u8bed\u53e5\u67e5\u8be2\u67d0\u573a\u666f\u4e0b\u7684\u8c03\u7528\u62d3\u6251<\/li>\n<\/ul>\n<pre><code>MATCH\u00a0\n\u00a0 \u00a0 p = (entry {appName:\u00a0'app'})-[r:USES_SCENE*1..]-&gt;(to)\u00a0\nWHERE\u00a0all(rel\u00a0IN\u00a0r\u00a0WHERE\u00a0rel.type =\u00a0'CURRENT_SCENE'\u00a0AND rel.scene CONTAINS\u00a0'scene'\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 and rel.updateTs &gt;=\u00a01767675780000\u00a0and rel.updateTs &lt;=\u00a01767679380000)\u00a0\nRETURN\u00a0nodes(p) AS allNodes, relationships(p) AS allRels LIMIT\u00a01000<\/code><\/pre>\n<pre><code>sum(sum_over_time(algo_client_metric_timerSum{scene=&quot;xxx&quot;}[1m] offset 1m)) by (to) \/\u00a0sum(sum_over_time(otel_algo_client_metric_timerCount{scene=&quot;xxx&quot;}[1m] offset 1m)) by (to)\u00a0\n\/ 1000\nsum(sum_over_time(algo_client_metric_timerCount{scene=&quot;xxx&quot;}[1m] offset 1m) \/ 60) by (to)<\/code><\/pre>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529939\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u4e94\u3001\u667a\u80fd\u5316\u6f14\u8fdb\uff1a\u5f02\u5e38\u68c0\u6d4b\u4e0e\u4e8b\u4ef6\u8054\u52a8<\/h2>\n<h3>\u5f02\u5e38\u68c0\u6d4b\uff1a\u6539\u8fdb\u578bIQR\u7b97\u6cd5<\/h3>\n<p>\u901a\u8fc7\u6784\u5efa\u4ee5\u201c\u573a\u666f\u201d\u4e3a\u6838\u5fc3\u7684\u76d1\u63a7\u7ef4\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u7cbe\u51c6\u6355\u6349\u5f02\u5e38\u603b\u6570\u53ca\u5176\u6f14\u8fdb\u8d8b\u52bf\u3002\u63a5\u4e0b\u6765\u805a\u7126<strong>\u5468\u671f\u6027\u89c4\u5f8b\u8bc6\u522b\u4e0e\u5f02\u5e38\u68c0\u6d4b\u7b97\u6cd5\u4f18\u5316<\/strong>\u4e24\u5927\u6838\u5fc3\u9886\u57df\uff1a<\/p>\n<p><strong>\u5468\u671f\u6027\u89c4\u5f8b\uff1a\u4ece\u5085\u91cc\u53f6\u53d8\u6362\u5230\u81ea\u9002\u5e94\u8bc6\u522b<\/strong><\/p>\n<p>\u5728\u7535\u5546\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u6307\u6807\u6ce2\u52a8\u6df1\u5ea6\u8026\u5408\u4eba\u7c7b\u884c\u4e3a\u7684\u201c\u663c\u591c\u8282\u5f8b\u201d\uff1b\u800c\u5728\u7b97\u6cd5\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u9891\u7e41\u7684\u5b9e\u9a8c\u4efb\u52a1\u4f7f\u5468\u671f\u6027\u7279\u5f81\u66f4\u8d8b\u590d\u6742\u4e14\u591a\u53d8\uff1b<\/p>\n<ul>\n<li>\u901a\u7528\u65b9\u6848\uff1a\u4f20\u7edf\u7684\u5085\u91cc\u53f6\u53d8\u6362\uff08FFT\uff09\u867d\u80fd\u6355\u6349\u9891\u57df\u7279\u5f81\uff0c\u4f46\u5728\u65f6\u57df\u566a\u58f0\u5e72\u6270\u4e0b\u96be\u4ee5\u63a8\u5bfc\u51fa\u9ad8\u7cbe\u5ea6\u7684\u7269\u7406\u5468\u671f\uff1b<\/li>\n<li>\u843d\u5730\u65b9\u6848\uff1a\u91c7\u7528<strong>\u81ea\u9002\u5e94\u5468\u671f\u8bc6\u522b\u7b97\u6cd5\uff0c<\/strong> \u80fd\u591f\u6839\u636e\u65f6\u5e8f\u6570\u636e\u7684\u52a8\u6001\u6f14\u53d8\uff0c\u81ea\u52a8\u3001\u7cbe\u786e\u5730\u63a8\u6d4b\u51fa\u5404\u573a\u666f\u7279\u6709\u7684\u5468\u671f\u6b65\u957f\uff1b<\/li>\n<\/ul>\n<p>\u7ed9\u5b9a\u4e00\u4e9b\u5019\u9009\u5468\u671f\uff0c\u901a\u8fc7\u8ba1\u7b97\u65f6\u95f4\u5e8f\u5217\u7684\u6ede\u540e1\u5468\u671f\u7684\u81ea\u76f8\u5173\u6027\uff0c\u9a8c\u8bc1\u65f6\u95f4\u5e8f\u5217\u662f\u5426\u5339\u914d\u5019\u9009\u5468\u671f\u3002\u5bf9\u4e0d\u540c\u7684\u5019\u9009\u5468\u671f\uff0c\u53d6\u4e0d\u540c\u957f\u5ea6\u7684\u5386\u53f2\u6570\u636e\uff0c\u5019\u9009\u5468\u671f\u8d8a\u5927\uff0c\u9700\u8981\u5386\u53f2\u6570\u636e\u8d8a\u4e45\u8fdc\uff0c\u76f8\u5173\u6027\u8981\u6c42\u8f83\u4f4e\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529940\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5468\u671f\u8bc6\u522b\u7b97\u6cd5\u793a\u610f\u56fe<\/p>\n<p><strong>\u5f02\u5e38\u68c0\u6d4b\u7b97\u6cd5\uff1a\u4ece 3-Sigma \u5230\u6539\u8fdb\u578b IQR<\/strong><\/p>\n<p>\u9762\u5bf9\u6d41\u91cf\u6fc0\u589e\u4ea7\u751f\u7684\u201c\u968f\u673a\u7a81\u523a\u201d\u4ee5\u53ca\u4f4e\u6d41\u91cf\u573a\u666f\u4e0b\u7684\u201c\u96f6\u6c34\u4f4d\u201d\u5e38\u6001\uff0c\u68c0\u6d4b\u7b97\u6cd5\u9700\u8981\u5177\u5907\u6781\u9ad8\u7684\u9c81\u68d2\u6027\u3002<\/p>\n<ul>\n<li>\u901a\u7528\u65b9\u6848\uff1a\u6807\u51c6<strong>3-Sigma\u7b97\u6cd5<\/strong>\u9884\u8bbe\u6570\u636e\u7b26\u5408\u6b63\u6001\u5206\u5e03\uff0c\u800c\u9519\u8bef\u6570\u6307\u6807\u5f80\u5f80\u5448\u73b0<strong>\u6b63\u504f\u6001\u3001\u9ad8\u5cf0\u5ea6<\/strong>\u7279\u5f81\uff0c\u76f4\u63a5\u5e94\u7528\u4f1a\u5bfc\u81f4\u865a\u5047\u544a\u8b66\u9891\u7e41\uff0c\u4ea7\u751f\u5927\u91cf\u201c\u544a\u8b66\u566a\u97f3\u201d\uff1b<\/li>\n<li>\u843d\u5730\u65b9\u6848\uff1a\u57fa\u4e8e\u56db\u5206\u4f4d\u8ddd\uff08IQR\uff09\u7b97\u6cd5\u8fdb\u884c\u6df1\u5ea6\u6539\u8fdb\u3002\u901a\u8fc7\u52a8\u6001\u8c03\u6574\u6bd4\u4f8b\u7cfb\u6570\u4e0e\u9608\u503c\u8fb9\u754c\uff0c\u5b8c\u7f8e\u9002\u914d\u975e\u6b63\u6001\u5206\u5e03\u7684\u9519\u8bef\u6570\u6307\u6807\uff0c\u5728\u786e\u4fdd\u7075\u654f\u5ea6\u7684\u540c\u65f6\u663e\u8457\u964d\u4f4e\u4e86\u8bef\u62a5\u7387\uff1b<\/li>\n<\/ul>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529941\" alt=\"\" title=\"\" loading=\"lazy\"><br \/>\u7efc\u5408\u8003\u8651\uff0c\u4f7f\u7528IQR\u5f02\u5e38\u68c0\u6d4b\uff1a<\/p>\n<ul>\n<li>IQR\u662f\u6307\uff1a\u4e0a\u56db\u5206\u4f4d\u6570\u4e0e\u4e0b\u56db\u5206\u4f4d\u6570\uff0825%\u5206\u4f4d\u6570\uff09\u4e4b\u5dee\uff0c\u5373\u7bb1\u578b\u56fe\u4e2d\u7bb1\u4f53\u7684\u9ad8\u5ea6\u3002<\/li>\n<li>IQR\u5f02\u5e38\u68c0\u6d4b\u662f\u6307\uff1a\u8d85\u8fc7\u4e0a\u56db\u5206\u4f4d\u65701.5\u500d\u7684IQR\uff0c\u6216\u4f4e\u4e8e\u4e0b\u56db\u5206\u4f4d\u65701.5\u500d\u7684IQR\uff0c\u5219\u4e3a\u5f02\u5e38\u3002<\/li>\n<\/ul>\n<p>\u7ed3\u5408\u9519\u8bef\u6570\u6307\u6807\u7279\u5f81\uff0c\u5bf9IQR\u5f02\u5e38\u68c0\u6d4b\u8fdb\u884c\u4e86\u4e00\u4e9b\u6539\u8fdb\uff1a<\/p>\n<ul>\n<li>\u96f6\u57fa\u7ebf\u81ea\u9002\u5e94\u5904\u7406\uff1a\u5f53\u65f6\u95f4\u5e8f\u5217\u5927\u91cf\u4e3a0\u65f6\uff0c\u81ea\u52a8\u6392\u96640\u503c\u8ba1\u7b97\u57fa\u7ebf\uff0c\u907f\u514d\u8bef\u62a5\u3002<\/li>\n<li>\u53cc\u9608\u503c\u7ea6\u675f\uff1a\u9519\u8bef\u6570\u8d85\u8fc7\u591a\u5c11\u5fc5\u4e3a\u5f02\u5e38\uff0c\u8d85\u8fc7\u57fa\u7ebf\u591a\u5c11\u5fc5\u4e3a\u5f02\u5e38\u3002<\/li>\n<li>\u56fe\u4e2d\u9ad8\u4eae\u90e8\u5206\uff0875%, 25%, +1.5, -1.5 \uff09\u5747\u8bbe\u7f6e\u4e3a\u53ef\u8c03\u53c2\u6570\uff0c\u9488\u5bf9\u4e0d\u540c\u7b97\u6cd5\u573a\u666f\u505a\u5fae\u8c03\u3002<\/li>\n<\/ul>\n<p><strong>\u843d\u5730\u6548\u679c<\/strong><\/p>\n<p>\u4e00\u822c\u5f02\u5e38\u68c0\u6d4b<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529942\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u96f6\u57fa\u6307\u6807\u7684\u5f02\u5e38\u68c0\u6d4b\uff1a\u566a\u97f3\u663e\u8457\u964d\u4f4e<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529943\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5468\u671f\u6027\u6307\u6807\u7684\u5f02\u5e38\u68c0\u6d4b\uff1a\u80fd\u53d1\u73b0\u5c40\u90e8\u5f02\u5e38\u70b9<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529944\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u4e8b\u4ef6\u6807\u51c6\u5316\uff1a\u56e0\u679c\u5173\u8054\u7684\u6700\u540e\u4e00\u516c\u91cc<\/h3>\n<p>\u5728\u5f97\u7269\u7b97\u6cd5\u751f\u6001\u4e2d\uff0c\u65e5\u5747\u53d8\u66f4\u6b21\u6570\u8fbe\u4e07\u7ea7\uff0c\u6db5\u76d6\u4e86\u6a21\u578b\u8fed\u4ee3\u3001\u914d\u7f6e\u5206\u53d1\u3001\u4ee3\u7801\u90e8\u7f72\u7b49\u591a\u4e2a\u7ef4\u5ea6\u3002<strong>\u4e8b\u4ef6\u6807\u51c6\u5316\u7684\u6838\u5fc3\u76ee\u6807\u662f\uff1a\u8ba9\u6bcf\u4e00\u6b21\u53d8\u66f4\u90fd\u6709\u8ff9\u53ef\u5faa\uff0c\u5e76\u80fd\u81ea\u52a8\u4e0e\u94fe\u8def\u6296\u52a8\u5efa\u7acb\u56e0\u679c\u5173\u8054\u3002<\/strong><\/p>\n<p><strong>\u7edf\u4e00\u4e8b\u4ef6\u534f\u8bae<\/strong><\/p>\n<p>\u6211\u4eec\u5bf9\u6765\u81ea\u914d\u7f6e\u4e2d\u5fc3\u3001\u53d1\u5e03\u5e73\u53f0\u3001\u7b97\u6cd5\u5b9e\u9a8c\u5e73\u53f0\u7b4910+\u4e2a\u6e90\u5934\u7684\u4e8b\u4ef6\u8fdb\u884c\u4e86\u534f\u8bae\u6807\u51c6\u5316\u3002\u6bcf\u4e00\u4e2a\u8fdb\u5165\u53ef\u89c2\u6d4b\u5e95\u5ea7\u7684\u4e8b\u4ef6\u90fd\u5fc5\u987b\u5177\u5907\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li><strong>Source (\u53d8\u66f4\u6e90)\uff1a<\/strong> \u53d8\u66f4\u7684\u5e73\u53f0\uff08\u914d\u7f6e\u4e2d\u5fc3 \/ \u53d1\u5e03\u5e73\u53f0 \/ AB\u5b9e\u9a8c\u5e73\u53f0 \/ \u7279\u5f81\u5e73\u53f0 \/ \u673a\u5668\u5b66\u4e60\u5e73\u53f0\u7b49 \uff09<\/li>\n<li><strong>ChangeObject (\u4e3b\u4f53)\uff1a<\/strong> \u53d8\u66f4\u5bf9\u8c61\uff08\u5982\uff1a\u67d0\u4e2a\u5e94\u7528\u540d\u3001\u67d0\u4e2a\u914d\u7f6e\u6587\u4ef6\uff09<\/li>\n<li><strong>ChangeStatus (\u72b6\u6001)\uff1a<\/strong> PENDING \/ APPROVED \/ CANCELED \/ FINISHED \u7b49<\/li>\n<li><strong>StartTime(\u65f6\u95f4):<\/strong>\u00a0\u53d8\u66f4\u5f00\u59cb\u65f6\u95f4\u00a0<\/li>\n<li><strong>ChangeName (\u6807\u9898)\uff1a<\/strong> \u53d8\u66f4\u4e3b\u4f53<\/li>\n<li><strong>Severity (\u7b49\u7ea7)\uff1a<\/strong> \u8bc4\u4f30\u53d8\u66f4\u98ce\u9669\u7b49\u7ea7\uff08P0-P3\uff09<\/li>\n<li><strong>beforeChangeContent (\u4e0a\u4e00\u6b21\u7248\u672c)\uff1a<\/strong> \u8bb0\u5f55\u53d8\u66f4\u524d\u7684\u5185\u5bb9<\/li>\n<li><strong>changeContent (\u7248\u672c)\uff1a<\/strong> \u8bb0\u5f55\u53d8\u66f4\u540e\u7684\u5185\u5bb9<\/li>\n<li>\n<p><strong>extraInfo (\u9644\u52a0\u4fe1\u606f)\uff1a<\/strong> \u53ef\u9009\u5b57\u6bb5\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>&lt;scene: \u573a\u666f\u540d&gt;\uff0c&lt;isGlobal: \u5168\u5c40\u53d8\u66f4&gt;\uff0c&lt;isReboot: \u81ea\u52a8\u53d8\u66f4&gt; &#8230;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u4e8b\u4ef6\u6d41<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529945\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u5404\u5e73\u53f0\u901a\u8fc7OpenAPI\u65b9\u5f0f\u4e0a\u62a5\u5230\u4e8b\u4ef6\u4e2d\u5fc3\uff0c\u6570\u636e\u5b58\u50a8\u5728ES\u4e2d<\/li>\n<li>\u7b97\u6cd5\u57df\u7d2f\u8ba110+\u4e2a\u5e73\u53f0100+\u79cd\u53d8\u66f4\u5165\u53e3\u7c7b\u578b\uff0c\u6bcf\u592910+\u4e07\u7684\u53d8\u66f4\u4e8b\u4ef6<\/li>\n<\/ul>\n<p><strong>\u573a\u666f\u4e8b\u4ef6\u5173\u8054<\/strong><\/p>\n<p>\u7b97\u6cd5\u4fa7\u4e00\u4e9b\u6838\u5fc3\u7684\u5e73\u53f0\u7684\u4e8b\u4ef6\u53ea\u80fd\u4e32\u8054\u4e0a\u4e1a\u52a1\u57df\uff0c\u8fd9\u4e00\u671f\u6211\u4eec\u7528\u5728\u7ebfTrace\u57cb\u70b9\u7684\u65b9\u5f0f\uff0c\u4e32\u8054\u901a\u4e86\u6838\u5fc3\u5e73\u53f0\u4ece\u4e00\/\u591a\u4e2a\u573a\u666f\uff0c\u6bd4\u5982\uff1a\u793e\u533a\u641c\u7d22\u4e3b\u641c\u7d22\uff0c\u901a\u8fc7\u5728\u7ebfTrace\u6e05\u6d17\u540e\u5c31\u53ef\u4ee5\u5173\u8054\u4e0a\uff0c\u641c\u63a8AB\u5b9e\u9a8c\u7ba1\u7406\u5e73\u53f0\u3001\u7d22\u5f15\u5e73\u53f0\u3001\u65e0\u77e9\u673a\u5668\u5b66\u4e60\u5e73\u53f0\u7b49\u7b49\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529946\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e0a\u7ebf\u6548\u679c<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047529947\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u516d\u3001\u603b\u7ed3\u2014\u7b97\u6cd5\u57df\u5168\u666f\u53ef\u89c2\u6d4b\u6027\u7684 0 \u5230 1<\/h2>\n<p>\u7b97\u6cd5\u57df\u5168\u666f\u53ef\u89c2\u6d4b\u6027\u7684\u6784\u5efa\uff0c\u4ece\u96f6\u5f00\u59cb\u6478\u7d22\uff0c\u6211\u4eec\u7ecf\u5386\u4e86\u591a\u6b21\u6280\u672f\u65b9\u6848\u7684\u8fed\u4ee3\u4e0e\u4fee\u6b63\u3002\u8fd9\u8ba9\u6211\u4eec\u610f\u8bc6\u5230\uff0c\u76d1\u63a7\u5efa\u8bbe\u4e0d\u80fd\u4e0d\u7ed3\u5408\u4e1a\u52a1\u573a\u666f\uff0c\u5426\u5219\u4ea7\u751f\u7684\u6570\u636e\u5f88\u96be\u5728\u5b9e\u9645\u6392\u67e5\u4e2d\u53d1\u6325\u4ef7\u503c\u3002<\/p>\n<p>\u5728<strong>\u4e00\u671f\u5efa\u8bbe<\/strong>\u4e2d\uff0c\u6211\u4eec\u805a\u7126\u4e8e\u5b9e\u7528\u6027\uff0c\u901a\u8fc7\u6574\u5408\u94fe\u8def\uff08Trace\uff09\u3001\u6307\u6807\uff08Metric\uff09\u3001\u65e5\u5fd7\uff08Log\uff09\u4ee5\u53ca\u53d8\u66f4\u4e8b\u4ef6\uff0c\u6253\u901a\u4e86\u4ece\u57fa\u7840\u67b6\u6784\u5230\u4e1a\u52a1\u5e94\u7528\u7684\u7eb5\u5411\u5173\u8054\u3002\u8fd9\u5957\u4f53\u7cfb\u4e3a\u4e8c\u7ebf\u8fd0\u7ef4\u63d0\u4f9b\u4e86\u6e05\u6670\u7684\u4e0b\u94bb\u80fd\u529b\uff0c\u4f7f\u5f97\u6545\u969c\u8fb9\u754c\u7684\u9501\u5b9a\u66f4\u52a0\u5feb\u901f\u51c6\u786e\u3002<\/p>\n<p>\u8fdb\u5165<strong>\u4e8c\u671f\u9636\u6bb5<\/strong>\uff0c\u6211\u4eec\u5c06\u91cd\u70b9\u89e3\u51b3\u5b58\u91cf\u79bb\u7ebf\u53d8\u66f4\u7684\u63a5\u5165\u4ee5\u53caErrLog\/\u4e1a\u52a1\u7801\u7684\u6807\u51c6\u5316\u95ee\u9898\u3002\u540c\u65f6\uff0c\u6211\u4eec\u5c06\u89c2\u6d4b\u7ef4\u5ea6\u5ef6\u4f38\u81f3\u4e1a\u52a1\u6548\u679c\u6307\u6807\uff0c\u901a\u8fc7\u6784\u5efa\u96c6SLA\u76d1\u63a7\u3001\u4e8b\u4ef6\u4e2d\u5fc3\u4e0e\u5f02\u5e38\u5927\u76d8\u4e8e\u4e00\u4f53\u7684\u201c\u7b97\u6cd5\u4e1a\u52a1\u573a\u666fNOC-SLA\u4fdd\u969c\u4f53\u7cfb\u201d\uff0c\u5b9e\u73b0\u4ece\u201c\u7cfb\u7edf\u8fd0\u884c\u53ef\u89c1\u201d\u5230\u201c\u4e1a\u52a1\u8fd0\u884c\u7a33\u5b9a\u201d\u7684\u95ed\u73af\u3002<\/p>\n<h3>\u5f80\u671f\u56de\u987e<\/h3>\n<p>1.\u524d\u7aef\u5e73\u53f0\u5927\u4ed3\u5e94\u7528\u7a33\u5b9a\u6027\u6cbb\u7406\u4e4b\u8def\uff5c\u5f97\u7269\u6280\u672f<\/p>\n<p>2.RocketMQ\u9ad8\u6027\u80fd\u63ed\u79d8\uff1a\u627f\u8f7d\u4e07\u4ebf\u7ea7\u6d41\u91cf\u7684\u67b6\u6784\u5965\u79d8\uff5c\u5f97\u7269\u6280\u672f\u00a0<\/p>\n<p>3.PAG\u5728\u5f97\u7269\u793e\u533aS\u7ea7\u6d3b\u52a8\u7684\u843d\u5730<\/p>\n<p>4.Ant Design 6.0 \u5c1d\u9c9c\uff1a\u4e0a\u624b\u73b0\u4ee3\u5316\u7ec4\u4ef6\u5f00\u53d1\uff5c\u5f97\u7269\u6280\u672f<\/p>\n<p>5.Java \u8bbe\u8ba1\u6a21\u5f0f\uff1a\u539f\u7406\u3001\u6846\u67b6\u5e94\u7528\u4e0e\u5b9e\u6218\u5168\u89e3\u6790\uff5c\u5f97\u7269\u6280\u672f<\/p>\n<h3>\u6587 \/\u5357\u98ce<\/h3>\n<p>\u5173\u6ce8\u5f97\u7269\u6280\u672f\uff0c\u6bcf\u5468\u66f4\u65b0\u6280\u672f\u5e72\u8d27<\/p>\n<p>\u8981\u662f\u89c9\u5f97\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u6b22\u8fce\u8bc4\u8bba\u8f6c\u53d1\u70b9\u8d5e\uff5e<\/p>\n<p>\u672a\u7ecf\u5f97\u7269\u6280\u672f\u8bb8\u53ef\u4e25\u7981\u8f6c\u8f7d\uff0c\u5426\u5219\u4f9d\u6cd5\u8ffd\u7a76\u6cd5\u5f8b\u8d23\u4efb\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047529919\">https:\/\/segmentfault.com\/a\/1190000047529919<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u524d\u8a00 \u5728\u5f97\u7269\uff08Poizon\uff09\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u7b97\u6cd5\u751f\u6001\u5df2\u6f14\u8fdb\u4e3a\u6db5\u76d6\u4ea4\u6613\u641c\u7d22\u3001\u793e\u533a\u63a8\u8350\u3001\u56fe\u50cf\u8bc6\u522b\u53ca\u5e7f\u544a\u7b56\u7565\u7684\u591a\u7ef4\u590d [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021176","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021176"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021176\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}