{"id":24312,"date":"2025-01-15T14:09:59","date_gmt":"2025-01-15T06:09:59","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=24312"},"modified":"2025-01-15T14:09:59","modified_gmt":"2025-01-15T06:09:59","slug":"opentelemetry-%e7%9a%84%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86%e6%9c%89%e5%93%aa%e4%ba%9b%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/24312.html","title":{"rendered":"OpenTelemetry \u7684\u914d\u7f6e\u7ba1\u7406\u6709\u54ea\u4e9b\u6700\u4f73\u5b9e\u8df5\uff1f"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n                \n\n<p style=\"text-align: center;\">\n\n<p><img decoding=\"async\" src=\"https:\/\/pic.zadbj010.com\/2025\/21630b455c6135e.jpg\" alt=\"OpenTelemetry \u7684\u914d\u7f6e\u7ba1\u7406\u6709\u54ea\u4e9b\u6700\u4f73\u5b9e\u8df5\uff1f\" ><\/p>\n\n<\/p>\n\n\n\n<p>\u5728\u73b0\u4ee3\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c<strong>OpenTelemetry<\/strong> \u5df2\u7ecf\u6210\u4e3a\u76d1\u63a7\u548c\u53ef\u89c2\u6d4b\u6027\u7684\u91cd\u8981\u5de5\u5177\u3002\u5b83\u901a\u8fc7\u63d0\u4f9b\u7edf\u4e00\u7684 API \u548c SDK\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6536\u96c6\u3001\u5904\u7406\u548c\u5bfc\u51fa\u9065\u6d4b\u6570\u636e\uff0c\u4ece\u800c\u66f4\u597d\u5730\u7406\u89e3\u7cfb\u7edf\u7684\u8fd0\u884c\u72b6\u6001\u3002\u7136\u800c\uff0c\u968f\u7740\u7cfb\u7edf\u89c4\u6a21\u7684\u6269\u5927\u548c\u590d\u6742\u6027\u7684\u589e\u52a0\uff0c\u5982\u4f55\u9ad8\u6548\u5730\u7ba1\u7406 OpenTelemetry \u7684\u914d\u7f6e\u6210\u4e3a\u4e86\u4e00\u4e2a\u5173\u952e\u95ee\u9898\u3002\u672c\u6587\u5c06\u63a2\u8ba8 <strong>OpenTelemetry \u914d\u7f6e\u7ba1\u7406\u7684\u6700\u4f73\u5b9e\u8df5<\/strong>\uff0c\u5e2e\u52a9\u4f60\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5b9e\u73b0\u66f4\u9ad8\u6548\u3001\u66f4\u7075\u6d3b\u7684\u914d\u7f6e\u7ba1\u7406\u3002<\/p>\n\n\n\n\n<h3>1. <strong>\u7406\u89e3 OpenTelemetry \u7684\u914d\u7f6e\u7ed3\u6784<\/strong><\/h3>\n\n\n\n\n<p>\u5728\u6df1\u5165\u63a2\u8ba8\u6700\u4f73\u5b9e\u8df5\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3 OpenTelemetry \u7684\u914d\u7f6e\u7ed3\u6784\u3002OpenTelemetry \u7684\u914d\u7f6e\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u90e8\u5206\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>Trace \u914d\u7f6e<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u5982\u4f55\u6536\u96c6\u548c\u5bfc\u51fa\u5206\u5e03\u5f0f\u8ffd\u8e2a\u6570\u636e\u3002<\/li>\n\n\n\n\n<li><strong>Metrics \u914d\u7f6e<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u5982\u4f55\u6536\u96c6\u548c\u5bfc\u51fa\u6307\u6807\u6570\u636e\u3002<\/li>\n\n\n\n\n<li><strong>Logs \u914d\u7f6e<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u5982\u4f55\u6536\u96c6\u548c\u5bfc\u51fa\u65e5\u5fd7\u6570\u636e\u3002<\/li>\n\n\n\n\n<li><strong>Exporters \u914d\u7f6e<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u5982\u4f55\u5c06\u6570\u636e\u5bfc\u51fa\u5230\u540e\u7aef\u7cfb\u7edf\uff0c\u5982 Jaeger\u3001Prometheus \u6216 Elasticsearch\u3002<\/li>\n\n\n\n\n<li><strong>Sampling \u914d\u7f6e<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u5982\u4f55\u5bf9\u6570\u636e\u8fdb\u884c\u91c7\u6837\uff0c\u4ee5\u63a7\u5236\u6570\u636e\u91cf\u548c\u6210\u672c\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p>\u7406\u89e3\u8fd9\u4e9b\u914d\u7f6e\u9879\u7684\u4f5c\u7528\u548c\u76f8\u4e92\u5173\u7cfb\uff0c\u662f\u8fdb\u884c\u6709\u6548\u914d\u7f6e\u7ba1\u7406\u7684\u57fa\u7840\u3002<\/p>\n\n\n\n\n<h3>2. <strong>\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u8fdb\u884c\u52a8\u6001\u914d\u7f6e<\/strong><\/h3>\n\n\n\n\n<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u73af\u5883\u53d8\u91cf\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u914d\u7f6e\u65b9\u5f0f\u3002\u901a\u8fc7\u4f7f\u7528\u73af\u5883\u53d8\u91cf\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u52a8\u6001\u8c03\u6574 OpenTelemetry \u7684\u914d\u7f6e\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e <code>OTEL_EXPORTER_OTLP_ENDPOINT<\/code> \u73af\u5883\u53d8\u91cf\u6765\u6307\u5b9a OTLP \u5bfc\u51fa\u5668\u7684\u7aef\u70b9\u3002<\/p>\n\n\n\n\n<pre><code class=\"language-bash\">export OTEL_EXPORTER_OTLP_ENDPOINT=&quot;http:\/\/localhost:4317&quot;<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u7b80\u5316\u4e86\u914d\u7f6e\u7ba1\u7406\uff0c\u8fd8\u4f7f\u5f97\u5728\u4e0d\u540c\u73af\u5883\uff08\u5982\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\uff09\u4e4b\u95f4\u5207\u6362\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n\n\n\n\n<h3>3. <strong>\u91c7\u7528\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u96c6\u4e2d\u7ba1\u7406<\/strong><\/h3>\n\n\n\n\n<p>\u867d\u7136\u73af\u5883\u53d8\u91cf\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u4f46\u5728\u590d\u6742\u7684\u7cfb\u7edf\u4e2d\uff0c\u914d\u7f6e\u9879\u53ef\u80fd\u4f1a\u975e\u5e38\u591a\uff0c\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u53ef\u80fd\u4f1a\u5bfc\u81f4\u914d\u7f6e\u5206\u6563\u4e14\u96be\u4ee5\u7ef4\u62a4\u3002\u6b64\u65f6\uff0c\u91c7\u7528\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u96c6\u4e2d\u7ba1\u7406\u662f\u4e00\u4e2a\u66f4\u597d\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n\n<p>OpenTelemetry \u652f\u6301\u591a\u79cd\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f\uff0c\u5982 YAML\u3001JSON \u7b49\u3002\u901a\u8fc7\u5c06\u914d\u7f6e\u9879\u96c6\u4e2d\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u8fdb\u884c\u7248\u672c\u63a7\u5236\u548c\u56e2\u961f\u534f\u4f5c\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684 YAML \u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\uff1a<\/p>\n\n\n\n\n<pre><code class=\"language-yaml\">service:<br \/>\n  name: my-service<br \/>\n  namespace: my-namespace<br \/>\n<br \/>\ntracing:<br \/>\n  sampler: parentbased_always_on<br \/>\n  exporters:<br \/>\n    - otlp<br \/>\n    - jaeger<br \/>\n<br \/>\nmetrics:<br \/>\n  exporters:<br \/>\n    - prometheus<br \/>\n<br \/>\nlogging:<br \/>\n  level: info<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5c06\u914d\u7f6e\u9879\u96c6\u4e2d\u7ba1\u7406\uff0c\u5e76\u5728\u9700\u8981\u65f6\u8f7b\u677e\u5730\u8fdb\u884c\u4fee\u6539\u548c\u6269\u5c55\u3002<\/p>\n\n\n\n\n<h3>4. <strong>\u5229\u7528\u914d\u7f6e\u7ba1\u7406\u5de5\u5177<\/strong><\/h3>\n\n\n\n\n<p>\u968f\u7740\u7cfb\u7edf\u89c4\u6a21\u7684\u6269\u5927\uff0c\u624b\u52a8\u7ba1\u7406\u914d\u7f6e\u6587\u4ef6\u53ef\u80fd\u4f1a\u53d8\u5f97\u975e\u5e38\u7e41\u7410\u3002\u6b64\u65f6\uff0c\u4f7f\u7528\u914d\u7f6e\u7ba1\u7406\u5de5\u5177\uff08\u5982 Consul\u3001Etcd \u6216 Kubernetes ConfigMap\uff09\u53ef\u4ee5\u6781\u5927\u5730\u7b80\u5316\u914d\u7f6e\u7ba1\u7406\u8fc7\u7a0b\u3002<\/p>\n\n\n\n\n<p>\u4f8b\u5982\uff0c\u5728 Kubernetes \u4e2d\uff0c\u4f60\u53ef\u4ee5\u5c06 OpenTelemetry \u7684\u914d\u7f6e\u6587\u4ef6\u5b58\u50a8\u5728 ConfigMap \u4e2d\uff0c\u5e76\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6216\u5377\u6302\u8f7d\u7684\u65b9\u5f0f\u6ce8\u5165\u5230\u5bb9\u5668\u4e2d\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u914d\u7f6e\u7684\u53ef\u7ba1\u7406\u6027\uff0c\u8fd8\u589e\u5f3a\u4e86\u7cfb\u7edf\u7684\u53ef\u6269\u5c55\u6027\u3002<\/p>\n\n\n\n\n<pre><code class=\"language-yaml\">apiVersion: v1<br \/>\nkind: ConfigMap<br \/>\nmetadata:<br \/>\n  name: otel-config<br \/>\ndata:<br \/>\n  config.yaml: |<br \/>\n    service:<br \/>\n      name: my-service<br \/>\n      namespace: my-namespace<br \/>\n    tracing:<br \/>\n      sampler: parentbased_always_on<br \/>\n      exporters:<br \/>\n        - otlp<br \/>\n        - jaeger<br \/>\n    metrics:<br \/>\n      exporters:<br \/>\n        - prometheus<br \/>\n    logging:<br \/>\n      level: info<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u591a\u4e2a\u670d\u52a1\u4e4b\u95f4\u5171\u4eab\u548c\u590d\u7528\u914d\u7f6e\uff0c\u540c\u65f6\u786e\u4fdd\u914d\u7f6e\u7684\u4e00\u81f4\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n\n\n\n\n<h3>5. <strong>\u5b9e\u73b0\u914d\u7f6e\u7684\u52a8\u6001\u66f4\u65b0<\/strong><\/h3>\n\n\n\n\n<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u914d\u7f6e\u7684\u9759\u6001\u7ba1\u7406\u5f80\u5f80\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\u3002\u4e3a\u4e86\u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u914d\u7f6e\u7ba1\u7406\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u5b9e\u73b0\u914d\u7f6e\u7684\u52a8\u6001\u66f4\u65b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <strong>OpenTelemetry Collector<\/strong> \u7684 <code>remoteconfig<\/code> \u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u52a8\u6001\u52a0\u8f7d\u914d\u7f6e\uff0c\u5e76\u5728\u8fd0\u884c\u65f6\u66f4\u65b0\u914d\u7f6e\u3002<\/p>\n\n\n\n\n<pre><code class=\"language-yaml\">receivers:<br \/>\n  otlp:<br \/>\n    protocols:<br \/>\n      grpc:<br \/>\n        endpoint: 0.0.0.0:4317<br \/>\n<br \/>\nexporters:<br \/>\n  logging:<br \/>\n    logLevel: debug<br \/>\n<br \/>\nservice:<br \/>\n  pipelines:<br \/>\n    traces:<br \/>\n      receivers: [otlp]<br \/>\n      exporters: [logging]<br \/>\n  remoteconfig:<br \/>\n    endpoint: http:\/\/config-server:8080\/config<br \/>\n    interval: 1m<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u91cd\u542f\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\uff0c\u52a8\u6001\u8c03\u6574 OpenTelemetry \u7684\u914d\u7f6e\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5e94\u5bf9\u7cfb\u7edf\u53d8\u5316\u3002<\/p>\n\n\n\n\n<h3>6. <strong>\u5b9e\u65bd\u914d\u7f6e\u7684\u7248\u672c\u63a7\u5236<\/strong><\/h3>\n\n\n\n\n<p>\u5728\u590d\u6742\u7684\u7cfb\u7edf\u4e2d\uff0c\u914d\u7f6e\u7684\u7248\u672c\u63a7\u5236\u662f\u4e00\u4e2a\u4e0d\u53ef\u5ffd\u89c6\u7684\u95ee\u9898\u3002\u901a\u8fc7\u5c06\u914d\u7f6e\u6587\u4ef6\u7eb3\u5165\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982 Git\uff09\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u8ddf\u8e2a\u914d\u7f6e\u7684\u53d8\u5316\uff0c\u5e76\u5728\u9700\u8981\u65f6\u56de\u6eda\u5230\u4e4b\u524d\u7684\u7248\u672c\u3002<\/p>\n\n\n\n\n<p>\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728 Git \u4ed3\u5e93\u4e2d\u4e3a\u6bcf\u4e2a\u73af\u5883\uff08\u5982\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\uff09\u521b\u5efa\u4e0d\u540c\u7684\u5206\u652f\uff0c\u5e76\u5728\u6bcf\u4e2a\u5206\u652f\u4e2d\u7ef4\u62a4\u76f8\u5e94\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u914d\u7f6e\u7684\u53ef\u8ffd\u6eaf\u6027\uff0c\u8fd8\u589e\u5f3a\u4e86\u56e2\u961f\u534f\u4f5c\u7684\u6548\u7387\u3002<\/p>\n\n\n\n\n<pre><code class=\"language-bash\"># \u521b\u5efa\u5f00\u53d1\u73af\u5883\u7684\u914d\u7f6e\u6587\u4ef6<br \/>\ngit checkout -b dev<br \/>\necho &quot;service:<br \/>\n  name: my-service-dev<br \/>\n  namespace: my-namespace-dev&quot; &gt; config.yaml<br \/>\ngit add config.yaml<br \/>\ngit commit -m &quot;Add dev config&quot;<br \/>\n<br \/>\n# \u521b\u5efa\u751f\u4ea7\u73af\u5883\u7684\u914d\u7f6e\u6587\u4ef6<br \/>\ngit checkout -b prod<br \/>\necho &quot;service:<br \/>\n  name: my-service-prod<br \/>\n  namespace: my-namespace-prod&quot; &gt; config.yaml<br \/>\ngit add config.yaml<br \/>\ngit commit -m &quot;Add prod config&quot;<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u6bcf\u4e2a\u73af\u5883\u7684\u914d\u7f6e\u90fd\u662f\u72ec\u7acb\u4e14\u53ef\u63a7\u7684\uff0c\u4ece\u800c\u51cf\u5c11\u914d\u7f6e\u9519\u8bef\u7684\u98ce\u9669\u3002<\/p>\n\n\n\n\n<h3>7. <strong>\u76d1\u63a7\u548c\u5ba1\u8ba1\u914d\u7f6e\u53d8\u66f4<\/strong><\/h3>\n\n\n\n\n<p>\u6700\u540e\uff0c\u4e3a\u4e86\u786e\u4fdd\u914d\u7f6e\u7ba1\u7406\u7684\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\uff0c\u5efa\u8bae\u5b9e\u65bd\u914d\u7f6e\u53d8\u66f4\u7684\u76d1\u63a7\u548c\u5ba1\u8ba1\u3002\u901a\u8fc7\u8bb0\u5f55\u914d\u7f6e\u53d8\u66f4\u7684\u5386\u53f2\uff0c\u5e76\u5728\u5173\u952e\u914d\u7f6e\u53d8\u66f4\u65f6\u89e6\u53d1\u544a\u8b66\uff0c\u4f60\u53ef\u4ee5\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u6f5c\u5728\u7684\u914d\u7f6e\u95ee\u9898\u3002<\/p>\n\n\n\n\n<p>\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <strong>Prometheus<\/strong> \u548c <strong>Grafana<\/strong> \u6765\u76d1\u63a7\u914d\u7f6e\u53d8\u66f4\u7684\u9891\u7387\u548c\u5f71\u54cd\uff0c\u5e76\u4f7f\u7528 <strong>ELK Stack<\/strong> \u6765\u5ba1\u8ba1\u914d\u7f6e\u53d8\u66f4\u7684\u8be6\u7ec6\u65e5\u5fd7\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u914d\u7f6e\u7ba1\u7406\u7684\u900f\u660e\u5ea6\uff0c\u8fd8\u589e\u5f3a\u4e86\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n\n<pre><code class=\"language-yaml\"># Prometheus \u914d\u7f6e\u793a\u4f8b<br \/>\nscrape_configs:<br \/>\n  - job_name: 'otel-config'<br \/>\n    static_configs:<br \/>\n      - targets: ['config-server:9090']<br \/>\n<br \/>\n# Grafana \u4eea\u8868\u76d8\u793a\u4f8b<br \/>\ndashboard:<br \/>\n  panels:<br \/>\n    - title: 'Config Changes'<br \/>\n      type: 'graph'<br \/>\n      targets:<br \/>\n        - expr: 'rate(config_changes_total[1m])'<br \/>\n          legendFormat: 'Config Changes'<br \/>\n<\/code><\/pre>\n\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5b9e\u65f6\u76d1\u63a7\u914d\u7f6e\u53d8\u66f4\u7684\u72b6\u6001\uff0c\u5e76\u5728\u51fa\u73b0\u95ee\u9898\u65f6\u8fc5\u901f\u91c7\u53d6\u884c\u52a8\u3002<\/p>\n\n\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u8fd9\u4e9b\u6700\u4f73\u5b9e\u8df5\uff0c\u4f60\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u7ba1\u7406 OpenTelemetry \u7684\u914d\u7f6e\uff0c\u4ece\u800c\u5728\u590d\u6742\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u66f4\u597d\u7684\u53ef\u89c2\u6d4b\u6027\u548c\u76d1\u63a7\u80fd\u529b\u3002<\/p>\n\n\n                ]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":5,"featured_media":24313,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-24312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/24312","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=24312"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/24312\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/24313"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=24312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=24312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=24312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}