{"id":9235,"date":"2023-02-02T12:56:48","date_gmt":"2023-02-02T04:56:48","guid":{"rendered":"http:\/\/123.57.164.21\/?p=9235"},"modified":"2023-02-02T12:56:48","modified_gmt":"2023-02-02T04:56:48","slug":"opentracing-java-library%e6%95%99%e7%a8%8b3-%e8%b7%a8%e6%9c%8d%e5%8a%a1%e4%bc%a0%e9%80%92spancontext","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=9235","title":{"rendered":"OpenTracing Java Library\u6559\u7a0b(3)\u2014\u2014\u8de8\u670d\u52a1\u4f20\u9012SpanContext"},"content":{"rendered":"\n<p><strong>\u76ee\u6807<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5b66\u4e60\u5982\u4f55\uff1a<\/p>\n\n\n\n<ul><li>\u8de8\u670d\u52a1\u505a\u94fe\u8def\u8ddf\u8e2a<\/li><li>\u4f7f\u7528<code>Inject<\/code>\u548c<code>Extract<\/code>\u65b9\u6cd5\u5728\u670d\u52a1\u95f4\u4f20\u9012span\u4e0a\u4e0b\u6587\uff08SpanContext\uff09\u4fe1\u606f<\/li><li>\u4f7f\u7528\u4e00\u4e9bOpenTracing\u63a8\u8350\u7684tags<\/li><\/ul>\n\n\n\n<p><strong>\u5f00\u53d1\u6d41\u7a0b<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u6784\u5efaHello-World\u5fae\u670d\u52a1<\/p>\n\n\n\n<p>\u4e3a\u4e86\u6f14\u793a\u8de8\u670d\u52a1\u505a\u94fe\u8def\u8ddf\u8e2a\uff0c\u6211\u4eec\u5148\u6765\u6784\u5efa\u51e0\u4e2a\u670d\u52a1\uff1a<\/p>\n\n\n\n<ul><li><code>Hello.java<\/code> \uff1a\u57fa\u4e8e\u4e0a\u4e00\u8282\u7684\u4ee3\u7801\uff0c\u4fee\u6539\u4e86\u90e8\u5206\u4ee3\u7801\uff0c\u589e\u52a0\u4e86HTTP\u8bf7\u6c42\u4ee3\u7801\u3002<\/li><li><code>Formatter.java<\/code>\uff1a\u57fa\u4e8eDropwizard-based\u7684HTTP\u670d\u52a1\u5668\uff0c\u63d0\u4f9b\u8fd9\u6837\u7684\u4e00\u4e2a\u63a5\u53e3\uff1a\u53d1\u9001<code>GET 'http:\/\/localhost:8081\/format?helloTo=Bryan'<\/code>\uff0c\u8fd4\u56de<code>\"Hello, Bryan!\"<\/code> \u5b57\u7b26\u4e32\u3002<\/li><li><code>Publisher.java<\/code>\uff1a\u7c7b\u4f3c<code>Formatter.java<\/code>\uff0c\u63d0\u4f9b\u8fd9\u6837\u4e00\u4e2a\u63a5\u53e3\uff1a\u53d1\u9001<code>GET 'http:\/\/localhost:8082\/publish?helloStr=hi%20there'<\/code>\u8bf7\u6c42\uff0c\u5c31\u5f80\u6807\u51c6\u8f93\u51fa\u6253\u5370\u4e00\u4e2a<code>\"hi there\"<\/code> \u5b57\u7b26\u4e32\u3002<\/li><\/ul>\n\n\n\n<p>\u5148\u628a\u540e\u9762\u4e24\u4e2aHTTP Server\u8fd0\u884c\u8d77\u6765\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ terminal tab 1\n$ .\/run.sh lesson03.exercise.Formatter server\n\/\/ terminal tab 2\n$ .\/run.sh lesson03.exercise.Publisher server<\/pre>\n\n\n\n<p>\u7136\u540e\u53d1\u9001\u4e00\u4e2aHTTP\u8bf7\u6c42\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ curl 'http:\/\/localhost:8081\/format?helloTo=Bryan'\nHello, Bryan!<\/pre>\n\n\n\n<p>\u5982\u679c\u51fa\u73b0\u4e0a\u9762\u6253\u5370\uff0c\u8bf4\u660e\u6211\u4eec\u7684\u670d\u52a1\u5df2\u7ecfOK\u4e86\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u6211\u4eec\u50cf\u524d\u4e00\u7bc7\u6587\u7ae0\u4e00\u6837\uff0c\u7ee7\u7eed\u8fd0\u884cHello\u670d\u52a1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/run.sh lesson03.solution.Hello Bryan <\/pre>\n\n\n\n<p><strong>\u8fdb\u7a0b\/\u670d\u52a1\u95f4\u94fe\u8def\u4fe1\u606f\u4f20\u9012<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u867d\u7136\u6211\u4eec\u7684Hello\u4e2d\u505a\u4e86\u4e24\u4e2aRPC\u8bf7\u6c42\uff08HTTP\u4e5f\u662fRPC\u7684\u4e00\u79cd\uff09\uff0c\u4f46\u8fd0\u884c\u4e4b\u540e\u4f1a\u53d1\u73b0\u94fe\u8def\u56fe\u548c\u4e4b\u524d\u7684\u4e00\u6837\uff1a\u4ea7\u751f\u4e86\u4e00\u4e2a\u5305\u542b\u4e09\u4e2aspan\u7684\u94fe\u8def\uff0c\u90fd\u662f<code>hello-world<\/code>\u8fd9\u4e2a\u670d\u52a1\u4ea7\u751f\u7684\u3002\u6211\u4eec\u5f53\u7136\u5e0c\u671b\u94fe\u8def\u53ef\u4ee5\u5c55\u793a\u51fa\u8fd9\u4e2a\u8c03\u7528\u4e2d\u7684\u6d89\u53ca\u7684\u6240\u6709\u670d\u52a1\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u5b9e\u73b0\u5728\u670d\u52a1\u95f4\uff08\u5373\u8de8\u8fdb\u7a0b\uff09\u4f20\u9012\u94fe\u8def\u4fe1\u606f\u3002\u94fe\u8def\u4fe1\u606f\u4e00\u822c\u5305\u88c5\u5728\u4e0a\u4e0b\u6587\u4e2d\uff0c\u8fd9\u4e2a\u4e0a\u4e0b\u6587\u79f0\u4e4b\u4e3aSpanContext\uff1a\u4e00\u822c\u81f3\u5c11\u5305\u542b\u94fe\u8def\u7684\u72b6\u6001\u4fe1\u606f\uff08\u6bd4\u5982traceID\u3001spanID\u7b49\uff09\u548cBaggage\u4fe1\u606f\u3002Baggage\u4fe1\u606f\u4e0b\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u3002\u6240\u4ee5\u94fe\u8def\u4fe1\u606f\u7684\u4f20\u9012\u5c31\u662f\u4f20\u9012\u8fd9\u4e2aSpanContext\u3002OpenTracing\u63d0\u4f9b\u4e86\u4e00\u4e2a\u62bd\u8c61\uff0c\u5728Tracer\u63a5\u53e3\u4e2d\u5b9a\u4e49\u4e86\u4e24\u4e2a\u63a5\u53e3\uff1a<\/p>\n\n\n\n<ul><li><code>inject(spanContext, format, carrier)<\/code> \uff1a\u7528\u4e8e\u5c06SpanContext\u6ce8\u5165\u5230RPC\u8bf7\u6c42\u4e2d\uff1b<\/li><li><code>extract(format, carrier)<\/code>\uff1a\u7528\u4e8e\u4eceRPC\u8bf7\u6c42\u4e2d\u83b7\u53d6SpanContext\u3002<\/li><\/ul>\n\n\n\n<p>\u6309\u7167OpenTracing API\u5b9a\u4e49\uff0c<code>format<\/code>\u53c2\u6570\u8868\u793aSpanContext\u7684\u7f16\u7801\u683c\u5f0f\uff08\u6216\u8005\u8bf4\u4f20\u9012\u65b9\u5f0f\u5427\uff09\uff0c\u9700\u8981\u4e3a\u4ee5\u4e0b\u4e09\u4e2a\u7f16\u7801\u4e4b\u4e00\uff1a<\/p>\n\n\n\n<ul><li><code>TEXT_MAP<\/code>\uff1a\u5c06SpanContext\u7f16\u7801\u4e3akey-value\u5f62\u5f0f<\/li><li><code>BINARY<\/code>\uff1a\u7f16\u7801\u4e3a\u5b57\u8282\u6d41\uff1b<\/li><li><code>HTTP_HEADERS<\/code>\uff1a\u548cTEXT_MAP\u4e00\u6837\uff0c\u533a\u522b\u5728\u4e8ekey\u7684\u4fe1\u606f\u5fc5\u987b\u80fd\u591f\u5b89\u5168\u7684\u653e\u5728HTTP headers\u91cc\u9762\uff08\u5373\u4e0d\u80fd\u5305\u542b\u4e00\u4e9bhttp\u5934\u4e0d\u652f\u6301\u7684\u7279\u6b8a\u5b57\u7b26\uff09\u3002\u7ecf\u5e38\u628aHTTP_HEADERS\u5f52\u5230TEXT_MAP\u7c7b\u3002<\/li><\/ul>\n\n\n\n<p>carrier\u662f\u57fa\u4e8e\u5e95\u5c42RPC\u6846\u67b6\u505a\u7684\u4e00\u5c42\u62bd\u8c61\uff0c\u7528\u4e8e\u4f20\u9012SpanContext\u3002\u6bd4\u5982<code>TEXT_MAP<\/code>\u683c\u5f0f\u5bf9\u5e94\u7684carrier\u63a5\u53e3\u5141\u8bb8tracer\u5b9e\u4f8b\u901a\u8fc7<code>put(key, value)<\/code>\u65b9\u6cd5\u5c06key-value\u683c\u5f0f\u7684\u6570\u636e\u5199\u5165\u5230\u8bf7\u6c42\u4e2d\u3002\u540c\u7406\uff0cBINARY\u683c\u5f0f\u7684\u5c31\u662f<code>ByteBuffer<\/code>\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u6211\u4eec\u770b\u5982\u4f55\u901a\u8fc7inject\u548cextract\u6765\u5b9e\u73b0\u8fdb\u7a0b\u95f4\u7684\u94fe\u8def\u4e0a\u4e0b\u6587\u4fe1\u606f\u4f20\u9012\u3002<\/p>\n\n\n\n<p><strong>\u5ba2\u6237\u7aef\u589e\u5f3a<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u5728\u5ba2\u6237\u7aef\u53d1\u9001HTTP\u8bf7\u6c42\u524d\u5c06SpanContext\u6ce8\u5165\u8fdb\u53bb\uff0c\u53d1\u9001\u7ed9\u670d\u52a1\u7aef\u3002\u73b0\u5728\u7684HTTP\u8bf7\u6c42\u662f\u5c01\u88c5\u5728 <code>Hello#getHttp()<\/code>\u4e2d\u7684\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u52a0\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import io.opentracing.propagation.Format;\nimport io.opentracing.tag.Tags;\n\nTags.SPAN_KIND.set(tracer.activeSpan(), Tags.SPAN_KIND_CLIENT);\nTags.HTTP_METHOD.set(tracer.activeSpan(), \"GET\");\nTags.HTTP_URL.set(tracer.activeSpan(), url.toString());\ntracer.inject(tracer.activeSpan().context(), Format.Builtin.HTTP_HEADERS, new RequestBuilderCarrier(requestBuilder));<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u662f\u4ee5TEXT_MAP\uff08HTTP_HEADERS\uff09\u7f16\u7801SpanContext\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5b9e\u73b0TextMap\u7c7b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import java.util.Iterator;\nimport java.util.Map;\n\nimport okhttp3.Request;\n\npublic class RequestBuilderCarrier implements io.opentracing.propagation.TextMap {\n    private final Request.Builder builder;\n\n    RequestBuilderCarrier(Request.Builder builder) {\n        this.builder = builder;\n    }\n\n    @Override\n    public Iterator&lt;Map.Entry&lt;String, String>> iterator() {\n        throw new UnsupportedOperationException(\"carrier is write-only\");\n    }\n\n    @Override\n    public void put(String key, String value) {\n        builder.addHeader(key, value);\n    }\n}\n\n<\/pre>\n\n\n\n<p>tracer\u4f1a\u8c03\u7528put\u65b9\u6cd5\u5c06SpanContext\u4e2d\u7684\u4fe1\u606f\u4ee5key-value\u7684\u5f62\u5f0f\u52a0\u5230HTTP\u5934\u4e2d\u3002\u8fd9\u91cc\u7684\u4fe1\u606f\u4e3b\u8981\u662f\u6211\u4eec\u5199\u7684\u4e00\u4e9b\u8ddf\u8bf7\u6c42\u60f3\u5173\u7684Tags\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\uff0c\u5ba2\u6237\u7aef\u5df2\u7ecf\u901a\u8fc7inject\u5c06SpanContext\u52a0\u5165\u5230\u8bf7\u6c42\u4e2d\u4e86\u3002\u63a5\u4e0b\u6765\u770b\u670d\u52a1\u7aef\u6536\u5230\u8bf7\u6c42\u540e\uff0c\u5982\u4f55\u4f7f\u7528extract\u53d6\u51fa\u8fd9\u4e9b\u4fe1\u606f\u3002<\/p>\n\n\n\n<p><strong>\u670d\u52a1\u7aef\u589e\u5f3a<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u670d\u52a1\u7aef\u589e\u5f3a\u548c\u5ba2\u6237\u7aef\u7c7b\u4f3c\uff0c\u5148\u53c2\u7167\u5ba2\u6237\u7aef\u521b\u5efa\u4e00\u4e2aTracer\u5b9e\u4f8b\u3002\u8fd9\u90e8\u5206\u4e00\u6837\uff0c\u5c31\u7565\u8fc7\u4e86\uff0c\u91cd\u70b9\u770b\u5982\u4f55\u53d6\u51faSpanContext\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u5c01\u88c5\u4e00\u4e2a<code>startServerSpan<\/code>\u51fd\u6570\uff0c\u8fd9\u4e2a\u51fd\u6570\u5b9e\u73b0\u7684\u529f\u80fd\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul><li>\u4ece\u6536\u5230\u7684\u8bf7\u6c42\u4e2d\u8bfb\u53d6\u5934\u4fe1\u606f\uff08SpanContext\u4fe1\u606f\u5305\u542b\u5728\u91cc\u9762\uff09<\/li><li>\u4f7f\u7528<code>extract<\/code>\u65b9\u6cd5\u89e3\u6790\u51faSpanContext\uff0c\u5e76\u57fa\u4e8e\u6b64\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684Span\uff0c\u540c\u65f6\u589e\u52a0\u4e86\u4e00\u4e9b\u670d\u52a1\u7aef\u7684\u4fe1\u606f<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public static Span startServerSpan(Tracer tracer, javax.ws.rs.core.HttpHeaders httpHeaders, String operationName) {\n    \/\/ format the headers for extraction\n    MultivaluedMap&lt;String, String> rawHeaders = httpHeaders.getRequestHeaders();\n    final HashMap&lt;String, String> headers = new HashMap&lt;String, String>();\n    for (String key : rawHeaders.keySet()) {\n        headers.put(key, rawHeaders.get(key).get(0));\n    }\n\n    Tracer.SpanBuilder spanBuilder;\n    try {\n        SpanContext parentSpanCtx = tracer.extract(Format.Builtin.HTTP_HEADERS, new TextMapAdapter(headers));\n        if (parentSpanCtx == null) {\n            spanBuilder = tracer.buildSpan(operationName);\n        } else {\n            spanBuilder = tracer.buildSpan(operationName).asChildOf(parentSpanCtx);\n        }\n    } catch (IllegalArgumentException e) {\n        spanBuilder = tracer.buildSpan(operationName);\n    }\n    return spanBuilder.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER).start();\n}<\/pre>\n\n\n\n<p>Formatter\u548cPublisher\u4e24\u4e2a\u670d\u52a1\u90fd\u9700\u8981\u505a\u8fd9\u4e2a\u4e8b\u60c5\u3002\u6709\u4e86\u8fd9\u4e2aspan\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\uff0c\u8fd9\u91cc\u5c55\u793a\u4e00\u4e0bFormatter\u4ee3\u7801\u7684\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@GET\npublic String format(@QueryParam(\"helloTo\") String helloTo, @Context HttpHeaders httpHeaders) {\n    \/\/ \u8c03\u7528\u5c01\u88c5\u7684startServerSpan\u51fd\u6570\uff0c\u57fa\u4e8e\u5ba2\u6237\u7aef\u4f20\u9012\u8fc7\u6765SpanContext\u7684\u521b\u5efa\u4e00\u4e2a\u65b0\u7684span\uff0c\u5e76\u5728tags\u4e2d\u52a0\u5165\u670d\u52a1\u7aef\u7684\u4e00\u4e9b\u4fe1\u606f\n    Span span = startServerSpan(tracer, httpHeaders, \"format\");\n    try (Scope scope = tracer.scopeManager.activate(span)) {\n        String helloStr = String.format(\"Hello, %s!\", helloTo);\n        span.log(ImmutableMap.of(\"event\", \"string-format\", \"value\", helloStr));\n        return helloStr;\n    } finally {\n      span.finish();\n    }\n}<\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u670d\u52a1\u7aef\u7684\u589e\u5f3a\u4e5f\u5b9e\u73b0\u597d\u4e86\uff0c\u662f\u65f6\u5019\u89c1\u8bc1\u5947\u8ff9\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u89c1\u8bc1\u5947\u8ff9<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u91cd\u65b0\u8fd0\u884cFormatter\u3001 Publisher\u548cHello\u670d\u52a1\uff08\u6211\u6ca1\u6709\u6539\u65f6\u533a\uff0c\u6240\u4ee5\u65e5\u5fd7\u4e2d\u7684\u65f6\u95f4\u5dee\u4e868\u5c0f\u65f6\uff0c\u5b9e\u9645\u73b0\u5728\u662f\u5468\u65e5\u65e9\u66688\u70b9\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ terminal tab 1\uff1a\u542f\u52a8Formatter\u670d\u52a1\n$ .\/run.sh lesson03.exercise.Formatter server\n\/\/ \u7701\u7565\u4e86\u90e8\u5206\u65e5\u5fd7\nINFO  [2020-07-12 00:57:48,181] io.jaegertracing.internal.reporters.LoggingReporter: Span reported: 2b20ca6e8ddc6547:2eb6a1fbef6e9789:8a92a88a65fb4776:1 - format\n127.0.0.1 - - [12\/Jul\/2020:00:57:48 +0000] \"GET \/format?helloTo=Bryan HTTP\/1.1\" 200 13 \"-\" \"okhttp\/3.9.0\" 4\n\n\/\/ terminal tab 2\uff1a\u542f\u52a8Publisher\u670d\u52a1\n$ .\/run.sh lesson03.exercise.Publisher server\n\/\/ \u7701\u7565\u4e86\u90e8\u5206\u65e5\u5fd7\nHello, Bryan!\nINFO  [2020-07-12 00:57:48,440] io.jaegertracing.internal.reporters.LoggingReporter: Span reported: 2b20ca6e8ddc6547:93916ee579078535:75065f170bf15bff:1 - publish\n127.0.0.1 - - [12\/Jul\/2020:00:57:48 +0000] \"GET \/publish?helloStr=Hello,%20Bryan! HTTP\/1.1\" 200 9 \"-\" \"okhttp\/3.9.0\" 137\n\n\/\/ terminal tab 3\uff1a\u542f\u52a8Hello\uff0c\u542f\u52a8\u540e\u4f1a\u5206\u522b\u8c03\u7528Formatter\u670d\u52a1\u548cPublisher\u670d\u52a1\n-> % .\/run.sh lesson03.solution.Hello Bryan \n\/\/ \u7701\u7565\u4e86\u90e8\u5206\u65e5\u5fd7\n08:57:48.206 [main] INFO io.jaegertracing.internal.reporters.LoggingReporter - Span reported: 2b20ca6e8ddc6547:8a92a88a65fb4776:2b20ca6e8ddc6547:1 - formatString\n08:57:48.468 [main] INFO io.jaegertracing.internal.reporters.LoggingReporter - Span reported: 2b20ca6e8ddc6547:75065f170bf15bff:2b20ca6e8ddc6547:1 - printHello\n08:57:48.468 [main] INFO io.jaegertracing.internal.reporters.LoggingReporter - Span reported: 2b20ca6e8ddc6547:2b20ca6e8ddc6547:0:1 - say-hello<\/pre>\n\n\n\n<p>\u7136\u540e\u770b\u4e0b\u751f\u6210\u7684\u94fe\u8def\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/02\/image-28-1024x571.png\" alt=\"\" class=\"wp-image-9236\" width=\"636\" height=\"354\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-1024x571.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-300x167.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-768x428.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-830x463.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-230x128.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-350x195.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28-480x268.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-28.png 1244w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/figure><\/div>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u65b0\u751f\u6210\u7684\u94fe\u8def\u5305\u542b\u4e863\u4e2a\u670d\u52a1\uff0c\u51715\u4e2aspan\u3002\u70b9\u51fb\u67e5\u770b\u94fe\u8def\u8be6\u60c5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/02\/image-29-1024x331.png\" alt=\"\" class=\"wp-image-9237\" width=\"637\" height=\"205\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-1024x331.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-300x97.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-830x269.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-230x74.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-350x113.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29-480x155.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-29.png 1248w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ece\u53f3\u4fa7\u53ef\u4ee5\u6e05\u695a\u7684\u770b\u51fa\u8c03\u7528\u5173\u7cfb\uff0c\u5de6\u4fa7\u53ef\u4ee5\u770b\u51fa\u8017\u65f6\u3002\u7136\u540e\u518d\u770b\u4e0b\u6bcf\u4e2a\u670d\u52a1\u7684\u4e00\u4e9b\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/02\/image-30-1024x523.png\" alt=\"\" class=\"wp-image-9238\" width=\"634\" height=\"324\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-1024x523.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-300x153.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-768x392.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-830x424.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-230x117.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-350x179.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30-480x245.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/02\/image-30.png 1246w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/figure><\/div>\n\n\n\n<p>Tags\u5305\u542b\u4e86\u5404\u4e2aspan\u7684\u4e00\u4e9b\u5173\u952e\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6807 \u5b66\u4e60\u5982\u4f55\uff1a \u8de8\u670d\u52a1\u505a\u94fe\u8def\u8ddf\u8e2a \u4f7f\u7528Inject\u548cExtract\u65b9\u6cd5\u5728\u670d\u52a1\u95f4\u4f20\u9012span\u4e0a\u4e0b\u6587\uff08SpanC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9235"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9235"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9235\/revisions"}],"predecessor-version":[{"id":9239,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9235\/revisions\/9239"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}