{"id":38473,"date":"2025-05-20T16:32:48","date_gmt":"2025-05-20T08:32:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38473.html"},"modified":"2025-05-20T16:32:48","modified_gmt":"2025-05-20T08:32:48","slug":"opentelemetry-%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38473.html","title":{"rendered":"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a"},"content":{"rendered":"<h2>\u5feb\u901f\u5165\u95e8<\/h2>\n<p>OpenTelemetry <span style=\"color:#fe2c24\">\u662f\u4e00\u4e2a\u53ef\u89c2\u6d4b\u6027\u6846\u67b6\u548c\u5de5\u5177\u5305<\/span>&#xff0c; \u65e8\u5728\u521b\u5efa\u548c\u7ba1\u7406\u9065\u6d4b\u6570\u636e&#xff0c;\u5982\u94fe\u8def\u3001\u00a0\u6307\u6807\u548c\u65e5\u5fd7\u3002 \u91cd\u8981\u7684\u662f&#xff0c;<span style=\"color:#fe2c24\">OpenTelemetry \u662f\u4f9b\u5e94\u5546\u548c\u5de5\u5177\u65e0\u5173\u7684<\/span>&#xff0c;\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u4e0e\u5404\u79cd\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u4e00\u8d77\u4f7f\u7528&#xff0c; \u5305\u62ec\u00a0Jaeger\u00a0\u548c\u00a0Prometheus\u00a0\u8fd9\u7c7b\u5f00\u6e90\u5de5\u5177\u4ee5\u53ca\u5546\u4e1a\u5316\u4ea7\u54c1\u3002<\/p>\n<p>OpenTelemetry \u4e0d\u662f\u50cf Jaeger\u3001Prometheus \u6216\u5176\u4ed6\u5546\u4e1a\u4f9b\u5e94\u5546\u90a3\u6837\u7684\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002 OpenTelemetry \u4e13\u6ce8\u4e8e\u9065\u6d4b\u6570\u636e\u7684\u751f\u6210\u3001\u91c7\u96c6\u3001\u7ba1\u7406\u548c\u5bfc\u51fa\u3002 OpenTelemetry \u7684\u4e00\u4e2a\u4e3b\u8981\u76ee\u6807\u662f&#xff0c; \u65e0\u8bba\u5e94\u7528\u7a0b\u5e8f\u6216\u7cfb\u7edf\u91c7\u7528\u4f55\u79cd\u7f16\u7a0b\u8bed\u8a00\u3001\u57fa\u7840\u8bbe\u65bd\u6216\u8fd0\u884c\u65f6\u73af\u5883&#xff0c;\u4f60\u90fd\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u5176\u4eea\u8868\u5316\u3002 \u91cd\u8981\u7684\u662f&#xff0c;<span style=\"color:#fe2c24\">\u9065\u6d4b\u6570\u636e\u7684\u5b58\u50a8\u548c\u53ef\u89c6\u5316\u662f\u6709\u610f\u7559\u7ed9\u5176\u4ed6\u5de5\u5177\u5904\u7406\u7684<\/span>\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u4e00\u53e5\u8bdd\u603b\u7ed3&#xff1a;\u5b9a\u4e49\u4e00\u5957\u6807\u51c6\u89c4\u8303\u6765\u751f\u6210\u3001\u6536\u96c6\u9065\u6d4b\u6570\u636e\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5b98\u65b9\u6587\u6863&#xff1a;<\/span>\u4ec0\u4e48\u662f OpenTelemetry&#xff1f; | OpenTelemetry<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"718\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083246-682c3e2eaf5ab.png\" width=\"1732\" \/><\/p>\n<h3 id=\"what-is-observability\">\u4ec0\u4e48\u662f\u53ef\u89c2\u6d4b\u6027&#xff1f;<\/h3>\n<p>\u53ef\u89c2\u6d4b\u6027\u662f\u901a\u8fc7\u68c0\u67e5\u7cfb\u7edf\u8f93\u51fa\u6765\u7406\u89e3\u7cfb\u7edf\u5185\u90e8\u72b6\u6001\u7684\u80fd\u529b\u3002 \u5728\u8f6f\u4ef6\u7684\u80cc\u666f\u4e0b&#xff0c;\u8fd9\u610f\u5473\u7740\u80fd\u591f\u901a\u8fc7\u68c0\u67e5\u9065\u6d4b\u6570\u636e&#xff08;\u5305\u62ec\u94fe\u8def\u3001\u6307\u6807\u548c\u65e5\u5fd7&#xff09;\u6765\u7406\u89e3\u7cfb\u7edf\u7684\u5185\u90e8\u72b6\u6001\u3002<\/p>\n<p>\u8981\u4f7f\u7cfb\u7edf\u53ef\u89c2\u6d4b&#xff0c;\u5fc5\u987b\u5bf9\u5176\u8fdb\u884c\u4eea\u8868\u5316\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4ee3\u7801\u5fc5\u987b\u53d1\u51fa\u94fe\u8def\u3001\u6307\u6807\u6216\u65e5\u5fd7\u3002 \u7136\u540e&#xff0c;\u4eea\u8868\u5316\u7684\u6570\u636e\u5fc5\u987b\u53d1\u9001\u5230\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002<\/p>\n<h3 id=\"why-opentelemetry\">\u4e3a\u4ec0\u4e48\u9009\u62e9 OpenTelemetry&#xff1f;<\/h3>\n<p>\u968f\u7740\u4e91\u8ba1\u7b97\u3001\u5fae\u670d\u52a1\u67b6\u6784\u7684\u5174\u8d77\u548c\u65e5\u76ca\u590d\u6742\u7684\u4e1a\u52a1\u9700\u6c42&#xff0c;\u8f6f\u4ef6\u548c\u57fa\u7840\u8bbe\u65bd\u7684\u53ef\u89c2\u6d4b\u6027\u9700\u6c42\u6bd4\u4ee5\u5f80\u4efb\u4f55\u65f6\u5019\u90fd\u8981\u5f3a\u70c8\u3002<\/p>\n<p>OpenTelemetry \u6ee1\u8db3\u53ef\u89c2\u6d4b\u6027\u7684\u9700\u6c42&#xff0c;\u5e76\u9075\u5faa\u4e24\u4e2a\u5173\u952e\u539f\u5219&#xff1a;<\/p>\n<li>\u4f60\u6240\u751f\u6210\u7684\u6570\u636e\u5f52\u5c5e\u4e8e\u4f60\u81ea\u5df1&#xff0c;\u4e0d\u4f1a\u88ab\u4f9b\u5e94\u5546\u9501\u5b9a\u3002<\/li>\n<li>\u4f60\u53ea\u9700\u8981\u5b66\u4e60\u4e00\u5957 API \u548c\u7ea6\u5b9a\u3002<\/li>\n<p>\u8fd9\u4e24\u4e2a\u539f\u5219\u7684\u7ed3\u5408\u8d4b\u4e88\u56e2\u961f\u548c\u7ec4\u7ec7\u5728\u5f53\u4eca\u73b0\u4ee3\u8ba1\u7b97\u4e16\u754c\u4e2d\u6240\u9700\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<p>OpenTelemetry \u5e7f\u6cdb\u5e94\u7528\u4e8e\u8bb8\u591a\u5df2\u96c6\u6210 OpenTelemetry \u63d0\u4f9b\u9ed8\u8ba4\u53ef\u89c2\u6d4b\u6027\u7684\u5e93\u3001\u670d\u52a1\u548c\u5e94\u7528\u3002<\/p>\n<p>OpenTelemetry \u662f\u4e91\u539f\u751f\u8ba1\u7b97\u57fa\u91d1\u4f1a (CNCF)\u7684\u4e00\u4e2a\u9879\u76ee&#xff0c;\u662f\u7531 OpenTracing \u548c OpenCensus \u9879\u76ee\u5408\u5e76\u800c\u6210\u7684\u3002\u539f\u6765\u8fd9\u4e24\u4e2a\u9879\u76ee\u90fd\u662f\u4e3a\u89e3\u51b3\u540c\u6837\u7684\u95ee\u9898\u800c\u521b\u5efa\u7684&#xff1a; \u7f3a\u4e4f\u4e00\u79cd\u6807\u51c6\u7684\u65b9\u6cd5\u6765\u4e3a\u4ee3\u7801\u8fdb\u884c\u4eea\u8868\u5316\u5e76\u5c06\u9065\u6d4b\u6570\u636e\u53d1\u9001\u5230\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002 \u7531\u4e8e\u8fd9\u4e24\u4e2a\u9879\u76ee\u90fd\u65e0\u6cd5\u72ec\u7acb\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6240\u4ee5\u5c06\u5176\u5408\u5e76\u6210\u7acb\u4e86 OpenTelemetry&#xff0c; \u5438\u6536\u4e86\u53cc\u65b9\u7684\u4f18\u52bf&#xff0c;\u63d0\u4f9b\u4e86\u7edf\u4e00\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h2>\u4ee5 Java \u8bed\u8a00\u5b9e\u73b0\u7279\u5b9a\u7684 OpenTelemetry<\/h2>\n<p>OpenTelemetry \u662f\u4e00\u4e2a\u53ef\u89c2\u6d4b\u6027\u6846\u67b6&#xff0c;\u5305\u542b API\u3001SDK \u548c\u5de5\u5177&#xff0c;\u65e8\u5728\u5e2e\u52a9\u751f\u6210\u548c\u6536\u96c6\u5e94\u7528\u7a0b\u5e8f\u9065\u6d4b\u6570\u636e&#xff08;\u4f8b\u5982\u6307\u6807\u3001\u65e5\u5fd7\u548c\u8ddf\u8e2a\u8bb0\u5f55&#xff09;\u3002<\/p>\n<p>OpenTelemetry Java \u7531\u4ee5\u4e0b\u4ed3\u5e93\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>opentelemetry-java&#xff1a; \u7528\u4e8e\u624b\u52a8\u63d2\u6869\u7684\u7ec4\u4ef6&#xff0c;\u5305\u62ec API \u548c SDK&#xff0c;\u4e5f\u5305\u62ec\u6269\u5c55\u548c OpenTracing shim\u3002<\/li>\n<li>opentelemetry-java-instrumentation&#xff1a; \u5efa\u7acb\u5728 opentelemetry-java \u4e4b\u4e0a&#xff0c;\u5e76\u63d0\u4f9b\u4e00\u4e2a Java agent JAR&#xff0c;\u53ef\u4ee5\u9644\u52a0\u5230\u4efb\u4f55 Java 8&#043; \u5e94\u7528\u7a0b\u5e8f&#xff0c;\u5e76\u52a8\u6001\u6ce8\u5165\u5b57\u8282\u7801&#xff0c;\u4ece\u8bb8\u591a\u6d41\u884c\u7684\u5e93\u548c\u6846\u67b6\u4e2d\u6355\u83b7\u9065\u6d4b\u6570\u636e\u3002<\/li>\n<\/ul>\n<h4 id=\"zero-code-java-agent\">Zero-code: Java agent<\/h4>\n<p>The Java agent is a form of zero-code\u00a0automatic instrumentation\u00a0that dynamically manipulates application bytecode.<\/p>\n<p>For a list of libraries instrumented by the Java agent, see the \u201cAuto-instrumented versions\u201d column on\u00a0supported libraries.<\/p>\n<p>See\u00a0Java agent\u00a0for more details.<\/p>\n<h4 id=\"zero-code-spring-boot-starter\">Zero-code: Spring Boot starter<\/h4>\n<p>The Spring Boot starter is a form of zero-code\u00a0automatic instrumentation\u00a0that leverages spring autoconfigure to install\u00a0library instrumentation.<\/p>\n<p>See\u00a0Spring Boot starter\u00a0for details.<\/p>\n<\/p>\n<p>OpenTelemetry Java SDK &#8211; \u89c2\u6d4b\u4e91\u6587\u6863<\/p>\n<h2>\u5b9a\u4e49\u6307\u6807&amp;\u4f7f\u7528<\/h2>\n<p> Meter meter &#061; GlobalOpenTelemetry.getMeter(&#034;io.opentelemetry.example.metrics&#034;);<br \/>\n        meter.gaugeBuilder(&#034;jvm.memory.total&#034;)<br \/>\n                .setDescription(&#034;Reports JVM memory usage.&#034;)<br \/>\n                .setUnit(&#034;byte&#034;)<br \/>\n                .buildWithCallback(<br \/>\n                        result -&gt; result.record(Runtime.getRuntime().totalMemory(), Attributes.empty())); <\/p>\n<p>\u7528\u6237\u901a\u8fc7open telemetry api\u6765\u5b9a\u4e49\u6307\u6807&#xff0c;\u5e95\u5c42agent\u6765\u5b9e\u73b0\u516c\u53f8\u76f8\u5e94\u7684exporter\u6765\u6253\u901a\u540e\u7aef\u7684\u771f\u5b9e\u5b58\u50a8\u3002\u8fd9\u6837\u7684\u597d\u5904&#xff0c;\u540e\u9762\u516c\u53f8\u7684\u5b58\u50a8\u7cfb\u7edf\u53d1\u751f\u4e86\u53d8\u5316&#xff0c;\u4e1a\u52a1\u7a0b\u5e8f\u4e0d\u9700\u8981\u4fee\u6539&#xff0c;\u53ef\u8c03\u6574agent\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb338\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u53ef\u89c2\u6d4b\u6027\u662f\u901a\u8fc7\u68c0\u67e5\u7cfb\u7edf\u8f93\u51fa\u6765\u7406\u89e3\u7cfb\u7edf\u5185\u90e8\u72b6\u6001\u7684\u80fd\u529b\u3002\u5728\u8f6f\u4ef6\u7684\u80cc\u666f\u4e0b\uff0c\u8fd9\u610f\u5473\u7740\u80fd\u591f\u901a\u8fc7\u68c0\u67e5\u9065\u6d4b\u6570\u636e\uff08\u5305\u62ec\u94fe\u8def\u3001\u6307\u6807\u548c\u65e5\u5fd7\uff09\u6765\u7406\u89e3\u7cfb\u7edf\u7684\u5185\u90e8\u72b6\u6001\u3002\u8981\u4f7f\u7cfb\u7edf\u53ef\u89c2\u6d4b\uff0c\u5fc5\u987b\u5bf9\u5176\u8fdb\u884c\u4eea\u8868\u5316\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4ee3\u7801\u5fc5\u987b\u53d1\u51fa\u94fe\u8def\u3001\u6307\u6807\u6216\u65e5\u5fd7\u3002\u7136\u540e\uff0c\u4eea\u8868\u5316\u7684\u6570\u636e\u5fc5\u987b\u53d1\u9001\u5230\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002\u7528\u6237\u901a\u8fc7open telemetry api\u6765\u5b9a\u4e49\u6307\u6807\uff0c\u5e95\u5c42agent\u6765\u5b9e\u73b0\u516c\u53f8\u76f8\u5e94\u7684exporter\u6765\u6253\u901a\u540e\u7aef\u7684\u771f\u5b9e\u5b58\u50a8\u3002\u8fd9\u6837\u7684\u597d\u5904\uff0c\u540e\u9762\u516c\u53f8\u7684\u5b58\u50a8\u7cfb\u7edf\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u4e1a\u52a1\u7a0b\u5e8f\u4e0d\u9700\u8981\u4fee\u6539\uff0c\u53ef\u8c03\u6574agent\u5373\u53ef\u3002<\/p>\n","protected":false},"author":2,"featured_media":38472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,3376],"topic":[],"class_list":["post-38473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/38473.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb338\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u53ef\u89c2\u6d4b\u6027\u662f\u901a\u8fc7\u68c0\u67e5\u7cfb\u7edf\u8f93\u51fa\u6765\u7406\u89e3\u7cfb\u7edf\u5185\u90e8\u72b6\u6001\u7684\u80fd\u529b\u3002\u5728\u8f6f\u4ef6\u7684\u80cc\u666f\u4e0b\uff0c\u8fd9\u610f\u5473\u7740\u80fd\u591f\u901a\u8fc7\u68c0\u67e5\u9065\u6d4b\u6570\u636e\uff08\u5305\u62ec\u94fe\u8def\u3001\u6307\u6807\u548c\u65e5\u5fd7\uff09\u6765\u7406\u89e3\u7cfb\u7edf\u7684\u5185\u90e8\u72b6\u6001\u3002\u8981\u4f7f\u7cfb\u7edf\u53ef\u89c2\u6d4b\uff0c\u5fc5\u987b\u5bf9\u5176\u8fdb\u884c\u4eea\u8868\u5316\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4ee3\u7801\u5fc5\u987b\u53d1\u51fa\u94fe\u8def\u3001\u6307\u6807\u6216\u65e5\u5fd7\u3002\u7136\u540e\uff0c\u4eea\u8868\u5316\u7684\u6570\u636e\u5fc5\u987b\u53d1\u9001\u5230\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002\u7528\u6237\u901a\u8fc7open telemetry api\u6765\u5b9a\u4e49\u6307\u6807\uff0c\u5e95\u5c42agent\u6765\u5b9e\u73b0\u516c\u53f8\u76f8\u5e94\u7684exporter\u6765\u6253\u901a\u540e\u7aef\u7684\u771f\u5b9e\u5b58\u50a8\u3002\u8fd9\u6837\u7684\u597d\u5904\uff0c\u540e\u9762\u516c\u53f8\u7684\u5b58\u50a8\u7cfb\u7edf\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u4e1a\u52a1\u7a0b\u5e8f\u4e0d\u9700\u8981\u4fee\u6539\uff0c\u53ef\u8c03\u6574agent\u5373\u53ef\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38473.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T08:32:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083246-682c3e2eaf5ab.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38473.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38473.html\",\"name\":\"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-20T08:32:48+00:00\",\"dateModified\":\"2025-05-20T08:32:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38473.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38473.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38473.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/38473.html","og_locale":"zh_CN","og_type":"article","og_title":"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb338\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u53ef\u89c2\u6d4b\u6027\u662f\u901a\u8fc7\u68c0\u67e5\u7cfb\u7edf\u8f93\u51fa\u6765\u7406\u89e3\u7cfb\u7edf\u5185\u90e8\u72b6\u6001\u7684\u80fd\u529b\u3002\u5728\u8f6f\u4ef6\u7684\u80cc\u666f\u4e0b\uff0c\u8fd9\u610f\u5473\u7740\u80fd\u591f\u901a\u8fc7\u68c0\u67e5\u9065\u6d4b\u6570\u636e\uff08\u5305\u62ec\u94fe\u8def\u3001\u6307\u6807\u548c\u65e5\u5fd7\uff09\u6765\u7406\u89e3\u7cfb\u7edf\u7684\u5185\u90e8\u72b6\u6001\u3002\u8981\u4f7f\u7cfb\u7edf\u53ef\u89c2\u6d4b\uff0c\u5fc5\u987b\u5bf9\u5176\u8fdb\u884c\u4eea\u8868\u5316\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4ee3\u7801\u5fc5\u987b\u53d1\u51fa\u94fe\u8def\u3001\u6307\u6807\u6216\u65e5\u5fd7\u3002\u7136\u540e\uff0c\u4eea\u8868\u5316\u7684\u6570\u636e\u5fc5\u987b\u53d1\u9001\u5230\u53ef\u89c2\u6d4b\u6027\u540e\u7aef\u3002\u7528\u6237\u901a\u8fc7open telemetry api\u6765\u5b9a\u4e49\u6307\u6807\uff0c\u5e95\u5c42agent\u6765\u5b9e\u73b0\u516c\u53f8\u76f8\u5e94\u7684exporter\u6765\u6253\u901a\u540e\u7aef\u7684\u771f\u5b9e\u5b58\u50a8\u3002\u8fd9\u6837\u7684\u597d\u5904\uff0c\u540e\u9762\u516c\u53f8\u7684\u5b58\u50a8\u7cfb\u7edf\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u4e1a\u52a1\u7a0b\u5e8f\u4e0d\u9700\u8981\u4fee\u6539\uff0c\u53ef\u8c03\u6574agent\u5373\u53ef\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/38473.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-20T08:32:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083246-682c3e2eaf5ab.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38473.html","url":"https:\/\/www.wsisp.com\/helps\/38473.html","name":"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-20T08:32:48+00:00","dateModified":"2025-05-20T08:32:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38473.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38473.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38473.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"OpenTelemetry \u4ece\u5165\u95e8\u5230\u7cbe\u901a"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=38473"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38473\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38472"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38473"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}