liunancun commented on issue #11650:
URL: https://github.com/apache/dubbo/issues/11650#issuecomment-1445370550

   @ShenFeng312 
这边用的Filter直接用的是brave-instrumentation-dubbo提供的brave.dubbo.TracingFilter,WebZipkinConfig里面是配置给Rest用的,ZipkinConfig这里面的配置是给Dubbo用的,我贴下pom.xml文件的内容吧
   
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd";>
   
        <modelVersion>4.0.0</modelVersion>
   
        <parent>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>2.2.10.RELEASE</version>
        </parent>
   
        <groupId>com.example</groupId>
        <artifactId>demo</artifactId>
        <version>0.0.1-SNAPSHOT</version>
   
        <properties>
                <java.version>1.8</java.version>
                <dubbo.version>3.1.5</dubbo.version>
        </properties>
   
        <dependencies>
                <dependency>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-web</artifactId>
                </dependency>
   
                <dependency>
                        <groupId>org.apache.dubbo</groupId>
                        <artifactId>dubbo</artifactId>
                        <version>${dubbo.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.dubbo</groupId>
                        <artifactId>dubbo-spring-boot-starter</artifactId>
                        <version>${dubbo.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.dubbo</groupId>
                        <artifactId>dubbo-dependencies-zookeeper</artifactId>
                        <version>${dubbo.version}</version>
                        <type>pom</type>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.slf4j</groupId>
                                        <artifactId>slf4j-log4j12</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>log4j</groupId>
                                        <artifactId>log4j</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
   
                <dependency>
                        <groupId>io.zipkin.brave</groupId>
                        
<artifactId>brave-instrumentation-spring-webmvc</artifactId>
                        <version>5.13.9</version>
                </dependency>
                <dependency>
                        <groupId>io.zipkin.brave</groupId>
                        <artifactId>brave-instrumentation-dubbo</artifactId>
                        <version>5.13.9</version>
                </dependency>
                <dependency>
                        <groupId>io.zipkin.reporter2</groupId>
                        <artifactId>zipkin-sender-okhttp3</artifactId>
                        <version>2.16.3</version>
                </dependency>
   
                <dependency>
                        <groupId>cn.hutool</groupId>
                        <artifactId>hutool-all</artifactId>
                        <version>5.3.9</version>
                </dependency>
        </dependencies>
   
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.springframework.boot</groupId>
                                
<artifactId>spring-boot-maven-plugin</artifactId>
                        </plugin>
                </plugins>
        </build>
   
   </project>
   ```
   
   TracingFilter代码路径
   
https://github.com/openzipkin/brave/blob/master/instrumentation/dubbo/src/main/java/brave/dubbo/TracingFilter.java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to