Skip to content

Commit ad39dc1

Browse files
(fix) Add metlo ingestor endpoint to address for java/spring (#70)
1 parent 04791c3 commit ad39dc1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ingestors/java/spring/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
<groupId>com.metlo</groupId>
106106
<artifactId>spring</artifactId>
107-
<version>0.2</version>
107+
<version>0.2.2</version>
108108

109109
<dependencies>
110110
<dependency>

ingestors/java/spring/src/main/java/com/metlo/spring/Metlo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
public class Metlo extends OncePerRequestFilter {
2626
private static final int DEFAULT_THREAD_POOL_SIZE = 8;
27+
private final static String endpoint = "/api/v1/log-request/single";
2728
private final ThreadPoolExecutor pool;
2829
private final String METLO_KEY;
2930
private final String METLO_ADDR;
@@ -34,7 +35,7 @@ public Metlo(String host, String api_key) {
3435

3536
public Metlo(int pool_size, String host, String api_key) {
3637
this.METLO_KEY = api_key;
37-
this.METLO_ADDR = host;
38+
this.METLO_ADDR = host + Metlo.endpoint;
3839
this.pool = new ThreadPoolExecutor(0, pool_size,
3940
60L, TimeUnit.SECONDS,
4041
new SynchronousQueue<Runnable>());

0 commit comments

Comments
 (0)