{"id":109450,"date":"2026-09-24T05:16:56","date_gmt":"2026-09-23T21:16:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109450.html"},"modified":"2026-09-24T05:16:56","modified_gmt":"2026-09-23T21:16:56","slug":"opentelemetry-%e5%88%86%e5%b8%83%e5%bc%8f%e8%bf%bd%e8%b8%aa%e9%9b%86%e6%88%90%ef%bc%9a%e8%b7%a8%e7%bd%91%e7%bb%9c%e8%8a%82%e7%82%b9%e4%bc%a0%e9%80%92-traceid-%e4%b8%8e-spancontext","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109450.html","title":{"rendered":"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext"},"content":{"rendered":"<h2>OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210&#xff1a;\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923211655-6ab441c77031d.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u5c06\u5355\u673a\u6293\u5305\u63a2\u9488\u5347\u7ea7\u4e3a\u5206\u5e03\u5f0f\u96c6\u7fa4\u67b6\u6784\u540e&#xff0c;\u4e00\u4e2a\u7f51\u7edc\u6570\u636e\u5305\u5728\u96c6\u7fa4\u4e2d\u7684\u751f\u547d\u5468\u671f\u53d8\u5f97\u6781\u5176\u590d\u6742&#xff1a;<\/p>\n<ul>\n<li>\u5b83\u9996\u5148\u88ab \u8fb9\u7f18\u63a2\u9488\u8282\u70b9 A&#xff08;Probe-01&#xff09; \u4ece\u7f51\u5361\u6355\u83b7\u5e76\u63d0\u53d6\u51fa\u7279\u5f81&#xff1b;<\/li>\n<li>\u968f\u540e\u901a\u8fc7 Tonic gRPC \u901a\u9053 \u8de8\u7f51\u7edc\u4f20\u8f93\u5230 \u4e2d\u5fc3\u805a\u5408\u5668\u8282\u70b9&#xff08;Central Collector&#xff09;&#xff1b;<\/li>\n<li>\u6700\u7ec8\u7531\u805a\u5408\u5668\u89e6\u53d1 AI \u8bca\u65ad\u5f15\u64ce \u4e0e ClickHouse \u65f6\u5e8f\u6301\u4e45\u5316\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u5404\u4e2a\u8282\u70b9\u4ea7\u751f\u7684\u65e5\u5fd7\u548c Span \u662f\u5b64\u7acb\u7684&#xff0c;\u5f53\u6211\u4eec\u5728\u65e5\u5fd7\u4e2d\u5fc3&#xff08;\u5982 Jaeger \/ Grafana Tempo&#xff09;\u4e2d\u6392\u67e5\u4e00\u6b21\u8d85\u65f6\u95ee\u9898\u65f6&#xff0c;\u6211\u4eec\u5c06\u65e0\u6cd5\u5c06\u63a2\u9488\u7aef\u4e0a\u62a5\u7684\u65e5\u5fd7\u4e0e\u4e2d\u5fc3\u670d\u52a1\u7aef\u7684\u5904\u7406\u65e5\u5fd7\u4e32\u8054\u5728\u4e00\u8d77\u3002<\/p>\n<p>OpenTelemetry&#xff08;\u7b80\u79f0 OTel&#xff0c;CNCF \u7edf\u6cbb\u7ea7\u53ef\u89c2\u6d4b\u6027\u6807\u51c6&#xff09; \u5b9a\u4e49\u4e86\u5168\u7403\u7edf\u4e00\u7684\u8de8\u8fdb\u7a0b\u4e0a\u4e0b\u6587\u4f20\u9012\u89c4\u8303&#xff08;W3C TraceContext&#xff09;\u3002\u914d\u5408 Rust \u751f\u6001\u7684 tracing-opentelemetry&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5728\u5206\u5e03\u5f0f\u8282\u70b9\u4e4b\u95f4\u900f\u660e\u900f\u4f20\u5168\u5c40\u552f\u4e00\u7684 TraceID \u4e0e SpanContext&#xff01;<\/p>\n<p>\u4eca\u5929\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u6211\u4eec\u5728 packet-core \u6a21\u5757\u4e2d\u5b9e\u6218\u642d\u5efa\u4e00\u5957\u57fa\u4e8e OpenTelemetry \u7684\u5206\u5e03\u5f0f\u94fe\u8def\u8ffd\u8e2a\u4e2d\u67a2\u3002<\/p>\n<hr \/>\n<h4>1. \u5206\u5e03\u5f0f\u94fe\u8def\u8ffd\u8e2a&#xff08;W3C TraceContext&#xff09;\u8de8\u8282\u70b9\u900f\u4f20\u6a21\u578b<\/h4>\n<p>[ \u8fb9\u7f18\u63a2\u9488\u8282\u70b9 Probe-01 (\u53d1\u8d77 gRPC \u8bf7\u6c42) ]<br \/>\n                     \u2502<br \/>\n                     \u25bc 1. \u5728 tracing Span \u4e2d\u751f\u6210\u552f\u4e00 TraceID (\u5982 4bf92f3577b34da6a3ce929d0e0e4736)<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502                 OpenTelemetry \u6ce8\u5165\u5668 (Propagator.inject)    \u2502<br \/>\n\u2502                                                             \u2502<br \/>\n\u2502  &#8211; \u5c06 TraceID \u4e0e SpanID \u7f16\u7801\u4e3a\u6807\u51c6 HTTP\/2 gRPC \u5143\u6570\u636e Header:\u2502<br \/>\n\u2502    &#096;traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01&#096; \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                               \u2502<br \/>\n                               \u25bc (\u7f51\u7edc\u4f20\u8f93 gRPC \u6d88\u606f)<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502                 \u4e2d\u5fc3\u805a\u5408\u670d\u52a1\u7aef (Collector Receiver)          \u2502<br \/>\n\u2502                                                             \u2502<br \/>\n\u2502  &#8211; 2. Propagator.extract \u4ece Header \u4e2d\u63d0\u53d6\u51fa\u7236 SpanContext   \u2502<br \/>\n\u2502  &#8211; 3. \u5728\u672c\u5730\u521b\u5efa Child Span&#xff0c;\u56e0\u679c\u94fe\u8def 100% \u5b8c\u7f8e\u65e0\u7f1d\u4e32\u8054&#xff01;   \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<hr \/>\n<h4>2. \u5f15\u5165 OpenTelemetry \u4e0e Tracing \u4f9d\u8d56<\/h4>\n<p>\u5728 crates\/packet-core\/Cargo.toml \u4e2d\u6dfb\u52a0\u4f9d\u8d56&#xff1a;<\/p>\n<p>[dependencies]<br \/>\ntracing &#061; &#034;0.1.40&#034;<br \/>\ntracing-subscriber &#061; { version &#061; &#034;0.3.18&#034;, features &#061; [&#034;env-filter&#034;, &#034;fmt&#034;] }<br \/>\ntracing-opentelemetry &#061; &#034;0.24&#034;<br \/>\nopentelemetry &#061; { version &#061; &#034;0.23&#034;, features &#061; [&#034;trace&#034;] }<br \/>\nopentelemetry_sdk &#061; { version &#061; &#034;0.23&#034;, features &#061; [&#034;rt-tokio&#034;] }<br \/>\ntonic &#061; { version &#061; &#034;0.12&#034;, features &#061; [&#034;transport&#034;] }<\/p>\n<hr \/>\n<h4>3. \u5b9e\u73b0 gRPC \u5143\u6570\u636e\u4e0e TraceContext \u8de8\u7f51\u7edc\u6ce8\u5165\u4e0e\u63d0\u53d6<\/h4>\n<p>\u5728 crates\/packet-core\/src\/otel_trace_propagator.rs \u4e2d&#xff1a;<\/p>\n<p>\/\/ crates\/packet-core\/src\/otel_trace_propagator.rs<br \/>\nuse opentelemetry::global;<br \/>\nuse opentelemetry::propagation::{Extractor, Injector};<br \/>\nuse tonic::metadata::{MetadataMap, MetadataValue};<br \/>\nuse tracing_opentelemetry::OpenTelemetrySpanExt;<\/p>\n<p>struct MetadataInjector&lt;&#039;a&gt;(&amp;&#039;a mut MetadataMap);<\/p>\n<p>impl&lt;&#039;a&gt; Injector for MetadataInjector&lt;&#039;a&gt; {<br \/>\n    fn set(&amp;mut self, key: &amp;str, value: String) {<br \/>\n        if let Ok(val) &#061; MetadataValue::try_from(value) {<br \/>\n            if let Ok(key) &#061; tonic::metadata::MetadataKey::from_bytes(key.as_bytes()) {<br \/>\n                self.0.insert(key, val);<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>struct MetadataExtractor&lt;&#039;a&gt;(&amp;&#039;a MetadataMap);<\/p>\n<p>impl&lt;&#039;a&gt; Extractor for MetadataExtractor&lt;&#039;a&gt; {<br \/>\n    fn get(&amp;self, key: &amp;str) -&gt; Option&lt;&amp;str&gt; {<br \/>\n        self.0.get(key).and_then(|v| v.to_str().ok())<br \/>\n    }<\/p>\n<p>    fn keys(&amp;self) -&gt; Vec&lt;&amp;str&gt; {<br \/>\n        self.0.keys().filter_map(|k| match k {<br \/>\n            tonic::metadata::KeyRef::Ascii(v) &#061;&gt; Some(v.as_str()),<br \/>\n            _ &#061;&gt; None,<br \/>\n        }).collect()<br \/>\n    }<br \/>\n}<\/p>\n<p>pub struct DistributedTracePropagator;<\/p>\n<p>impl DistributedTracePropagator {<br \/>\n    \/\/\/ \u5ba2\u6237\u7aef\u8c03\u7528&#xff1a;\u5c06\u5f53\u524d Span \u7684 TraceContext \u6ce8\u5165\u5230 gRPC Metadata \u4e2d<br \/>\n    pub fn inject_current_trace_context(metadata: &amp;mut MetadataMap) {<br \/>\n        let cx &#061; tracing::Span::current().context();<br \/>\n        global::get_text_map_propagator(|propagator| {<br \/>\n            propagator.inject_context(&amp;cx, &amp;mut MetadataInjector(metadata));<br \/>\n        });<br \/>\n    }<\/p>\n<p>    \/\/\/ \u670d\u52a1\u7aef\u8c03\u7528&#xff1a;\u4ece gRPC Metadata \u4e2d\u63d0\u53d6\u7236 TraceContext \u5e76\u9644\u52a0\u5230\u5f53\u524d Span<br \/>\n    pub fn extract_and_attach_trace_context(metadata: &amp;MetadataMap, span: &amp;tracing::Span) {<br \/>\n        let parent_cx &#061; global::get_text_map_propagator(|propagator| {<br \/>\n            propagator.extract(&amp;MetadataExtractor(metadata))<br \/>\n        });<br \/>\n        span.set_parent(parent_cx);<br \/>\n    }<br \/>\n}<\/p>\n<hr \/>\n<h4>4. \u5206\u5e03\u5f0f\u7aef\u5230\u7aef\u94fe\u8def\u8ffd\u8e2a\u8054\u8c03\u5b9e\u6218<\/h4>\n<h5>\u63a2\u9488\u5ba2\u6237\u7aef&#xff08;\u53d1\u9001\u7aef&#xff09;&#xff1a;<\/h5>\n<p>#[tracing::instrument(name &#061; &#034;probe_send_telemetry&#034;)]<br \/>\npub async fn send_telemetry_with_trace(<br \/>\n    client: &amp;mut ProbeTelemetryServiceClient&lt;tonic::transport::Channel&gt;,<br \/>\n    report: NodeMetricReport,<br \/>\n) -&gt; anyhow::Result&lt;()&gt; {<br \/>\n    let mut request &#061; tonic::Request::new(tokio_stream::iter(vec![report]));<\/p>\n<p>    \/\/ \u6ce8\u5165 TraceID \u5230 gRPC \u5143\u6570\u636e\u4e2d&#xff01;<br \/>\n    DistributedTracePropagator::inject_current_trace_context(request.metadata_mut());<\/p>\n<p>    tracing::info!(&#034; \u63a2\u9488\u7aef\u5df2\u6ce8\u5165 TraceID \u5e76\u53d1\u8d77\u6d41\u5f0f\u4e0a\u62a5&#8230;&#034;);<br \/>\n    client.stream_reports(request).await?;<br \/>\n    Ok(())<br \/>\n}<\/p>\n<h5>\u4e2d\u5fc3\u670d\u52a1\u7aef&#xff08;\u63a5\u6536\u7aef&#xff09;&#xff1a;<\/h5>\n<p>#[tracing::instrument(name &#061; &#034;server_receive_telemetry&#034;, skip_all)]<br \/>\npub async fn process_incoming_stream(&amp;self, request: tonic::Request&lt;Streaming&lt;NodeMetricReport&gt;&gt;) {<br \/>\n    \/\/ \u4ece\u8bf7\u6c42\u4e2d\u63d0\u53d6\u5e76\u6302\u8f7d\u7236 SpanContext&#xff01;<br \/>\n    DistributedTracePropagator::extract_and_attach_trace_context(<br \/>\n        request.metadata(),<br \/>\n        &amp;tracing::Span::current(),<br \/>\n    );<\/p>\n<p>    tracing::info!(&#034; \u4e2d\u5fc3\u670d\u52a1\u7aef\u5df2\u627f\u63a5\u5206\u5e03\u5f0f Trace \u94fe\u8def&#xff0c;\u5f00\u542f\u805a\u5408\u5904\u7406&#xff01;&#034;);<br \/>\n}<\/p>\n<hr \/>\n<h4>5. Jaeger \u5206\u5e03\u5f0f\u7011\u5e03\u6d41\u8ffd\u8e2a\u5927\u76d8\u6548\u679c<\/h4>\n<p>\u5728 Jaeger Web \u53ef\u89c6\u5316\u754c\u9762\u4e2d\u6253\u5f00\u8be5\u6b21\u8c03\u7528\u7684\u5168\u5c40 Trace&#xff1a;<\/p>\n<p>Trace ID: 4bf92f3577b34da6a3ce929d0e0e4736 (\u603b\u8017\u65f6: 12.4ms)<br \/>\n\u251c\u2500 [Probe-01] probe_send_telemetry (8.2ms)<br \/>\n\u2502   \u2514\u2500 pcap_capture_batch (1.1ms)<br \/>\n\u2514\u2500 [Central-Server] server_receive_telemetry (4.2ms)<br \/>\n    \u251c\u2500 aggregate_flow_matrix (0.8ms)<br \/>\n    \u2514\u2500 sled_persist_record (2.3ms)<\/p>\n<p>\u63a2\u9488\u7aef\u4e0e\u670d\u52a1\u7aef\u7684\u6bcf\u4e00\u4e2a\u5fae\u79d2\u8017\u65f6\u5728\u540c\u4e00\u4e2a\u65f6\u95f4\u8f74\u4e0a\u6e05\u6670\u7f57\u5217&#xff0c;\u5f7b\u5e95\u6d88\u706d\u4e86\u8de8\u8282\u70b9\u6392\u969c\u7684\u4fe1\u606f\u5b64\u5c9b&#xff01;<\/p>\n<hr \/>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u638c\u63e1 OpenTelemetry \u5206\u5e03\u5f0f\u94fe\u8def\u8ffd\u8e2a&#xff1a;<\/p>\n<ul>\n<li>\u5b9e\u73b0\u4e86\u8de8\u7269\u7406\u7f51\u7edc\u8282\u70b9\u7684\u7edf\u4e00\u56e0\u679c\u5173\u7cfb\u8ffd\u8e2a&#xff1b;<\/li>\n<li>\u9075\u5faa W3C TraceContext \u56fd\u9645\u5de5\u4e1a\u6807\u51c6&#xff1b;<\/li>\n<li>\u4e3a\u6784\u5efa\u5927\u89c4\u6a21\u5206\u5e03\u5f0f\u63a2\u9488\u96c6\u7fa4\u63d0\u4f9b\u4e86\u9876\u7ea7\u7684\u53ef\u89c2\u6d4b\u6027\u57fa\u7840\u8bbe\u65bd\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210&#xff1a;\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext\u5728\u5c06\u5355\u673a\u6293\u5305\u63a2\u9488\u5347\u7ea7\u4e3a\u5206\u5e03\u5f0f\u96c6\u7fa4\u67b6\u6784\u540e&#xff0c;\u4e00\u4e2a\u7f51\u7edc\u6570\u636e\u5305\u5728\u96c6\u7fa4\u4e2d\u7684\u751f\u547d\u5468\u671f\u53d8\u5f97\u6781\u5176\u590d\u6742&#xff1a;<br \/>\n\u5b83\u9996\u5148\u88ab \u8fb9\u7f18\u63a2\u9488\u8282\u70b9 A&#xff08;Probe-01&#xff09; \u4ece\u7f51\u5361\u6355\u83b7\u5e76\u63d0\u53d6\u51fa\u7279\u5f81&#xff1b;\u968f\u540e\u901a\u8fc7 Tonic gRPC \u901a\u9053 \u8de8\u7f51\u7edc\u4f20\u8f93\u5230 \u4e2d\u5fc3\u805a\u5408\u5668\u8282\u70b9&#xff08;Central Collector&#xff09;&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,92,81,206,50],"topic":[],"class_list":["post-109450","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-github","tag-python","tag-rust","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \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\/109450.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210&#xff1a;\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext\u5728\u5c06\u5355\u673a\u6293\u5305\u63a2\u9488\u5347\u7ea7\u4e3a\u5206\u5e03\u5f0f\u96c6\u7fa4\u67b6\u6784\u540e&#xff0c;\u4e00\u4e2a\u7f51\u7edc\u6570\u636e\u5305\u5728\u96c6\u7fa4\u4e2d\u7684\u751f\u547d\u5468\u671f\u53d8\u5f97\u6781\u5176\u590d\u6742&#xff1a; \u5b83\u9996\u5148\u88ab \u8fb9\u7f18\u63a2\u9488\u8282\u70b9 A&#xff08;Probe-01&#xff09; \u4ece\u7f51\u5361\u6355\u83b7\u5e76\u63d0\u53d6\u51fa\u7279\u5f81&#xff1b;\u968f\u540e\u901a\u8fc7 Tonic gRPC \u901a\u9053 \u8de8\u7f51\u7edc\u4f20\u8f93\u5230 \u4e2d\u5fc3\u805a\u5408\u5668\u8282\u70b9&#xff08;Central Collector&#xff09;&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109450.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T21:16:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923211655-6ab441c77031d.webp\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109450.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109450.html\",\"name\":\"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T21:16:56+00:00\",\"dateModified\":\"2026-09-23T21:16:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109450.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109450.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109450.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext\"}]},{\"@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 \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \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\/109450.html","og_locale":"zh_CN","og_type":"article","og_title":"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210&#xff1a;\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext\u5728\u5c06\u5355\u673a\u6293\u5305\u63a2\u9488\u5347\u7ea7\u4e3a\u5206\u5e03\u5f0f\u96c6\u7fa4\u67b6\u6784\u540e&#xff0c;\u4e00\u4e2a\u7f51\u7edc\u6570\u636e\u5305\u5728\u96c6\u7fa4\u4e2d\u7684\u751f\u547d\u5468\u671f\u53d8\u5f97\u6781\u5176\u590d\u6742&#xff1a; \u5b83\u9996\u5148\u88ab \u8fb9\u7f18\u63a2\u9488\u8282\u70b9 A&#xff08;Probe-01&#xff09; \u4ece\u7f51\u5361\u6355\u83b7\u5e76\u63d0\u53d6\u51fa\u7279\u5f81&#xff1b;\u968f\u540e\u901a\u8fc7 Tonic gRPC \u901a\u9053 \u8de8\u7f51\u7edc\u4f20\u8f93\u5230 \u4e2d\u5fc3\u805a\u5408\u5668\u8282\u70b9&#xff08;Central Collector&#xff09;&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/109450.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T21:16:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923211655-6ab441c77031d.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109450.html","url":"https:\/\/www.wsisp.com\/helps\/109450.html","name":"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T21:16:56+00:00","dateModified":"2026-09-23T21:16:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109450.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109450.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109450.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"OpenTelemetry \u5206\u5e03\u5f0f\u8ffd\u8e2a\u96c6\u6210\uff1a\u8de8\u7f51\u7edc\u8282\u70b9\u4f20\u9012 TraceID \u4e0e SpanContext"}]},{"@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\/109450","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=109450"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109450\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109450"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}