You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/07/03 06:29:17 UTC

[dubbo-website] branch master updated: [fix] 新增场景 (#1184)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new aa94030c1e [fix] 新增场景 (#1184)
aa94030c1e is described below

commit aa94030c1e864d712fe09c860e48afc56e82960e
Author: JIAN ZHONG <11...@qq.com>
AuthorDate: Sun Jul 3 14:29:13 2022 +0800

    [fix] 新增场景 (#1184)
---
 .../java-sdk/advanced-features-and-usage/rpc/attachment.md       | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/attachment.md b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/attachment.md
index beacfd2a5c..afb62a05b5 100644
--- a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/attachment.md
+++ b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/attachment.md
@@ -18,17 +18,18 @@ path, group, version, dubbo, token, timeout 几个 key 是保留字段,请使
 - 服务提供方
 
 ## 使用场景
-## 使用方式
-#### 在服务消费方端设置隐式参数
 
-`setAttachment` 设置的 KV 对,在完成下面一次远程调用会被清空,即多次远程调用要多次设置。
+内部系统通过 Dubbo 调用时, traceId 如何透传到服务提供方。
 
+## 使用方式
+#### 注意:
+`setAttachment` 设置的 KV 对,在完成下面一次远程调用会被清空,即多次远程调用要多次设置。
+#### 在服务消费方端设置隐式参数
 ```xml
 RpcContext.getContext().setAttachment("index", "1"); // 隐式传参,后面的远程调用都会隐式将这些参数发送到服务器端,类似cookie,用于框架集成,不建议常规业务使用
 xxxService.xxx(); // 远程调用
 // ...
 ```
-
 #### 在服务提供方端获取隐式参数
 ```java
 public class XxxServiceImpl implements XxxService {