Loading apm-sniffer/apm-agent/pom.xml +5 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,11 @@ <artifactId>apm-springmvc-annotation-4.x-plugin</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.skywalking</groupId> <artifactId>apm-spring-cloud-feign-1.x-plugin</artifactId> <version>${project.version}</version> </dependency> <!-- activation --> <dependency> Loading apm-sniffer/apm-sdk-plugin/feign-default-http-9.x-plugin/src/main/java/org/skywalking/apm/plugin/feign/http/v9/DefaultHttpClientInterceptor.java +7 −5 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ public class DefaultHttpClientInterceptor implements InstanceMethodsAroundInterc @Override public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable { Response response = (Response)ret; if (response != null) { int statusCode = response.status(); AbstractSpan span = ContextManager.activeSpan(); Loading @@ -92,6 +93,7 @@ public class DefaultHttpClientInterceptor implements InstanceMethodsAroundInterc span.errorOccurred(); Tags.STATUS_CODE.set(span, statusCode + ""); } } ContextManager.stopSpan(); Loading apm-sniffer/apm-sdk-plugin/spring-plugins/pom.xml +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ <module>concurrent-util-4.x-plugin</module> <module>resttemplate-4.x-plugin</module> <module>mvc-annotation-4.x-plugin</module> <module>spring-cloud</module> </modules> <packaging>pom</packaging> Loading apm-sniffer/apm-sdk-plugin/spring-plugins/spring-cloud/netflix-plugins/pom.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.skywalking</groupId> <artifactId>spring-cloud</artifactId> <version>3.2-2017</version> </parent> <artifactId>netflix-plugins</artifactId> <modules> <module>spring-cloud-feign-1.x-plugin</module> </modules> <packaging>pom</packaging> <name>netflix-plugins</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> </project> apm-sniffer/apm-sdk-plugin/spring-plugins/spring-cloud/netflix-plugins/spring-cloud-feign-1.x-plugin/pom.xml 0 → 100644 +34 −0 Original line number Diff line number Diff line <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.skywalking</groupId> <artifactId>netflix-plugins</artifactId> <version>3.2-2017</version> </parent> <artifactId>apm-spring-cloud-feign-1.x-plugin</artifactId> <packaging>jar</packaging> <!-- only support spring cloud feign 1.1.x, 1.2.x, 1.3.x --> <name>spring-cloud-feign-1.x-plugin</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-feign</artifactId> <version>1.1.0.RELEASE</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.skywalking</groupId> <artifactId>apm-feign-default-http-9.x-plugin</artifactId> <version>${project.version}</version> <scope>provided</scope> </dependency> </dependencies> </project> Loading
apm-sniffer/apm-agent/pom.xml +5 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,11 @@ <artifactId>apm-springmvc-annotation-4.x-plugin</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.skywalking</groupId> <artifactId>apm-spring-cloud-feign-1.x-plugin</artifactId> <version>${project.version}</version> </dependency> <!-- activation --> <dependency> Loading
apm-sniffer/apm-sdk-plugin/feign-default-http-9.x-plugin/src/main/java/org/skywalking/apm/plugin/feign/http/v9/DefaultHttpClientInterceptor.java +7 −5 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ public class DefaultHttpClientInterceptor implements InstanceMethodsAroundInterc @Override public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable { Response response = (Response)ret; if (response != null) { int statusCode = response.status(); AbstractSpan span = ContextManager.activeSpan(); Loading @@ -92,6 +93,7 @@ public class DefaultHttpClientInterceptor implements InstanceMethodsAroundInterc span.errorOccurred(); Tags.STATUS_CODE.set(span, statusCode + ""); } } ContextManager.stopSpan(); Loading
apm-sniffer/apm-sdk-plugin/spring-plugins/pom.xml +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ <module>concurrent-util-4.x-plugin</module> <module>resttemplate-4.x-plugin</module> <module>mvc-annotation-4.x-plugin</module> <module>spring-cloud</module> </modules> <packaging>pom</packaging> Loading
apm-sniffer/apm-sdk-plugin/spring-plugins/spring-cloud/netflix-plugins/pom.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.skywalking</groupId> <artifactId>spring-cloud</artifactId> <version>3.2-2017</version> </parent> <artifactId>netflix-plugins</artifactId> <modules> <module>spring-cloud-feign-1.x-plugin</module> </modules> <packaging>pom</packaging> <name>netflix-plugins</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> </project>
apm-sniffer/apm-sdk-plugin/spring-plugins/spring-cloud/netflix-plugins/spring-cloud-feign-1.x-plugin/pom.xml 0 → 100644 +34 −0 Original line number Diff line number Diff line <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.skywalking</groupId> <artifactId>netflix-plugins</artifactId> <version>3.2-2017</version> </parent> <artifactId>apm-spring-cloud-feign-1.x-plugin</artifactId> <packaging>jar</packaging> <!-- only support spring cloud feign 1.1.x, 1.2.x, 1.3.x --> <name>spring-cloud-feign-1.x-plugin</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-feign</artifactId> <version>1.1.0.RELEASE</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.skywalking</groupId> <artifactId>apm-feign-default-http-9.x-plugin</artifactId> <version>${project.version}</version> <scope>provided</scope> </dependency> </dependencies> </project>