File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/com/metlo/spring Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 104
104
105
105
<groupId >com.metlo</groupId >
106
106
<artifactId >spring</artifactId >
107
- <version >0.2</version >
107
+ <version >0.2.2 </version >
108
108
109
109
<dependencies >
110
110
<dependency >
Original file line number Diff line number Diff line change 24
24
25
25
public class Metlo extends OncePerRequestFilter {
26
26
private static final int DEFAULT_THREAD_POOL_SIZE = 8 ;
27
+ private final static String endpoint = "/api/v1/log-request/single" ;
27
28
private final ThreadPoolExecutor pool ;
28
29
private final String METLO_KEY ;
29
30
private final String METLO_ADDR ;
@@ -34,7 +35,7 @@ public Metlo(String host, String api_key) {
34
35
35
36
public Metlo (int pool_size , String host , String api_key ) {
36
37
this .METLO_KEY = api_key ;
37
- this .METLO_ADDR = host ;
38
+ this .METLO_ADDR = host + Metlo . endpoint ;
38
39
this .pool = new ThreadPoolExecutor (0 , pool_size ,
39
40
60L , TimeUnit .SECONDS ,
40
41
new SynchronousQueue <Runnable >());
You can’t perform that action at this time.
0 commit comments