Skip to content

Add metlo ingestor endpoint to address for java/spring #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ingestors/java/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

<groupId>com.metlo</groupId>
<artifactId>spring</artifactId>
<version>0.2</version>
<version>0.2.2</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

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

public Metlo(int pool_size, String host, String api_key) {
this.METLO_KEY = api_key;
this.METLO_ADDR = host;
this.METLO_ADDR = host + Metlo.endpoint;
this.pool = new ThreadPoolExecutor(0, pool_size,
60L, TimeUnit.SECONDS,
new SynchronousQueue<Runnable>());
Expand Down