Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dubbo #183

Merged
merged 50 commits into from
Apr 4, 2019
Merged

Support dubbo #183

merged 50 commits into from
Apr 4, 2019

Conversation

glmapper
Copy link
Contributor

@glmapper glmapper commented Mar 4, 2019

Motivation:

support dubbo

Result:

Fixes #102

卫恒 added 2 commits March 26, 2019 10:10
# Conflicts:
#	pom.xml
#	tracer-core/src/main/java/com/alipay/common/tracer/core/span/CommonSpanTags.java
@glmapper glmapper requested review from caojie09 and removed request for QilongZhang April 3, 2019 09:00
@glmapper glmapper self-assigned this Apr 3, 2019
@glmapper glmapper added enhancement New feature or request help wanted Extra attention is needed labels Apr 3, 2019
@glmapper glmapper added this to the 2.4.0 milestone Apr 3, 2019
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.0</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个2.6.0 是为了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个2.6.0 是为了?

这个和 Dubbo 插件依赖没有关系。这是 SOFARPC 的依赖版本

// 这里强制刷一次
appender.flush();
} catch (Throwable t) {
SelfLog.error("统计日志<" + statTracerName + ">输出异常", t);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

换成英文

// 这里强制刷一次
appender.flush();
} catch (Throwable t) {
SelfLog.error("统计日志<" + statTracerName + ">输出异常", t);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

换成英文

@@ -0,0 +1,145 @@
## 使用 SOFATracer 集成 Dubbo 埋点
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个案例为啥没放在这个下面?

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>2.7.0</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

写成provided就好了吧,如果有人要用sofa-tracer-dubbo-plugin,那他肯定是dubbo环境,如果不是dubbo环境误引入,我们也有conditionOnClass保证不报错,没必要把这个依赖带出去。

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.51</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所有版本全部放在parent里面管理。


* 在工程模块的 pom 文件中添加 SOFATracer 依赖

```xml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件格式有问题,前面没必要空两个空格。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件格式有问题,前面没必要空两个空格。

属于子条目下,空格看起来层次更清晰点

* glmapper-boot-dubbo-provider 服务提供方
* glmapper-boot-dubbo-facade 接口

案例工程地址:[SOFATracer 集成 Dubbo](https://github.com/glmapper/glmapper-boot-dubbo)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

案例工程不要引外链,都写在工程里面不可以吗?

@ujjboy ujjboy merged commit cf4ad78 into sofastack:master Apr 4, 2019
@glmapper glmapper mentioned this pull request Sep 4, 2019
@glmapper glmapper deleted the support-dubbo branch February 20, 2021 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants