This repository was archived by the owner on Dec 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
src/main/java/io/opencensus/contrib/http/servlet Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,11 @@ description = 'OpenCensus Http Servlet Plugin'
99 it. targetCompatibility = 1.6
1010}
1111
12- def jettyVersion = " 9.2.25.v20180606"
13-
1412dependencies {
1513 compile project(' :opencensus-api' )
1614 compile project(' :opencensus-contrib-http-util' )
1715
18- compile " javax.servlet:javax.servlet-api:3.0.1" ,
19- " org.eclipse.jetty:jetty-server:${ jettyVersion} "
16+ compile " javax.servlet:javax.servlet-api:3.0.1"
2017
2118 signature " org.codehaus.mojo.signature:java17:1.0@signature"
2219 signature " net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
Original file line number Diff line number Diff line change 2020import io .opencensus .contrib .http .HttpServerHandler ;
2121import javax .servlet .http .HttpServletRequest ;
2222import javax .servlet .http .HttpServletResponse ;
23- import org .eclipse .jetty .server .Response ;
2423
2524class OcHttpServletUtil {
2625 static final String CONTENT_LENGTH = "Content-Length" ;
@@ -39,11 +38,6 @@ static void recordMessageSentEvent(
3938 } catch (NumberFormatException e ) {
4039 return ;
4140 }
42- } else {
43- if (response instanceof Response ) {
44- Response resp = (Response ) response ;
45- handler .handleMessageSent (context , resp .getContentCount ());
46- }
4741 }
4842 }
4943 }
You can’t perform that action at this time.
0 commit comments