Skip to content

Commit

Permalink
@dev add pom , public SpanCustomizingHandlerInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
hzfjd committed Apr 2, 2018
1 parent 91a66f4 commit b2f25fd
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 17 deletions.
21 changes: 17 additions & 4 deletions brave-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,28 @@

<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/openzipkin/maven/brave/;publish=1</url>
<id>repo</id>
<name>repo</name>
<url>http://mvn.hz.netease.com/artifactory/libs-releases</url>
</repository>
<snapshotRepository>
<id>jfrog-snapshots</id>
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
<id>snapshots</id>
<name>snapshots-only</name>
<url>http://mvn.hz.netease.com/artifactory/libs-snapshots</url>
</snapshotRepository>
</distributionManagement>

<!--<distributionManagement>-->
<!--<repository>-->
<!--<id>bintray</id>-->
<!--<url>https://api.bintray.com/maven/openzipkin/maven/brave/;publish=1</url>-->
<!--</repository>-->
<!--<snapshotRepository>-->
<!--<id>jfrog-snapshots</id>-->
<!--<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>-->
<!--</snapshotRepository>-->
<!--</distributionManagement>-->

<issueManagement>
<system>Github</system>
<url>https://github.com/openzipkin/brave/issues</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import brave.SpanCustomizer;
import brave.servlet.TracingFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* Adds application-tier data to an existing http span via {@link HandlerParser}.
* This also sets the request property "http.route" so that it can be used in naming the http span.
Expand All @@ -23,7 +24,7 @@ public final class SpanCustomizingHandlerInterceptor implements HandlerIntercept
@Autowired(required = false)
HandlerParser handlerParser = new HandlerParser();

SpanCustomizingHandlerInterceptor() { // hide the ctor so we can change later if needed
public SpanCustomizingHandlerInterceptor() { // hide the ctor so we can change later if needed
}

@Override
Expand Down
35 changes: 25 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,31 @@
<module>spring-beans</module>
</modules>

<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/openzipkin/maven/brave/;publish=1</url>
</repository>
<snapshotRepository>
<id>jfrog-snapshots</id>
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<distributionManagement>
<repository>
<id>repo</id>
<name>repo</name>
<url>http://mvn.hz.netease.com/artifactory/libs-releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>snapshots-only</name>
<url>http://mvn.hz.netease.com/artifactory/libs-snapshots</url>
</snapshotRepository>
</distributionManagement>

<!--<distributionManagement>-->


<!--<repository>-->
<!--<id>bintray</id>-->
<!--<url>https://api.bintray.com/maven/openzipkin/maven/brave/;publish=1</url>-->
<!--</repository>-->
<!--<snapshotRepository>-->
<!--<id>jfrog-snapshots</id>-->
<!--<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>-->
<!--</snapshotRepository>-->
<!--</distributionManagement>-->

<issueManagement>
<system>Github</system>
Expand Down

0 comments on commit b2f25fd

Please sign in to comment.