2,012
questions
0
votes
1
answer
39
views
How to configure slf4j and logback to allow one class to log to a separate file?
I have one Java class that is multithreaded and I want it to log to a separate file. I'm using Dropwizard which uses logback and is configured in my YAML file like this:
logging:
# The default ...
1
vote
0
answers
22
views
logging multiple threads in Dropwizard
I have a few background threads that are running continuously after application startup and I wish to preserve the logging in a separate file to make my main logging file easier to follow. Can someone ...
0
votes
1
answer
27
views
Dropwizard Hibernate Inject Session Factory into DAO using Guice
I have the dropwizard setup similar to this guide: https://www.dropwizard.io/en/stable/manual/hibernate.html
private final HibernateBundle<ExampleConfiguration> hibernate = new HibernateBundle&...
0
votes
1
answer
38
views
Using kotlin coroutines alongside threads in a thread based web server application
I have a basic kotlin webserver application built using dropwizard and jersey, which uses threads for handling requests. I have been reading a lot lately on kotlin corooutines and seeing articles ...
0
votes
0
answers
39
views
Gauge value not updating for a particular pod
I have a dropwizard application where each pod processes multiple requests, and each request has an integer output which I wish to capture using gauge.
Code snippet
MetricRegistry metricRegistry;
...
0
votes
0
answers
29
views
How to print MDC attribute only if log level is ERROR in dropwizard java app
Idea is to print some context only if there is error logs & not on other log levels like info or trace since it is not useful. I tried using log filters but it didnt help.
Reference - https://www....
3
votes
0
answers
129
views
Out of memory for Java application build in Quarkus because of Netty internal caching mechanism
We have our java application which was migrated from dropwizard to Quarkus. We have not changed the style of coding meaning still the code is blocking. After migration when we are deploying it to EC2 ...
0
votes
0
answers
22
views
Upgrading dropwizard testing causes an error
I had code like this:
public class BaseTest {
@ClassRule
public static final DropwizardAppRule<FingageConfiguration> RULE;
protected static Client client;
static {
try {
RULE = ...
0
votes
0
answers
16
views
Flush on JAX-RS StreamingOutput doesn't send immediately
I create a simple streaming endpoint that periodically writes and flushes output to the client:
private static Response myMethod() {
StreamingOutput stream =
outputStream -> {
...
1
vote
0
answers
39
views
Expose message property in Dropwizard health functionality?
Registered Health Checks are returned on localhost:8081/healthcheck, and include a message property:
{
"worker-alive": {
"healthy":false,
"message":"I am ...
1
vote
1
answer
149
views
How to get HikariCP metrics to show properly in NewRelic?
We have a custom webapp hat is using HikariCP. The application is compiled into a jar and then started in a docker container. Depending on the environment we are loading the newrelic-agent.jar via the ...
0
votes
0
answers
45
views
Inject a list of Implementations using Custom annotation in Dropwizard
I am trying to have different implementation of an Interface and group them into categories.
something like this
Custom Qualifiers
But I always get HK2 failure as it is not able to satisfy the ...
3
votes
0
answers
134
views
Rename metrics in Dropwizard MetricsRegistry in a Spring Boot application
in my Spring Boot application, I am using a metrics library which is a wrapper over: io.dropwizard.metrics. So I am getting all the API and system metrics from MetricsRegistry.
As a result, while I am ...
0
votes
1
answer
289
views
Dropwizard MetricRegistry with Spring Boot 2
I was upgrading spring boot to 2 in one of the project.
I am facing issue with @Autowire metricRegistry:MetricRegistry
I had read upgrade guide where it is mentioned that Metrics are replaced by ...
0
votes
1
answer
48
views
Unrecognized Field in Dropwizard config.yml File while connecting aerospike
My config.yml file
logging:
-level: INFO
-loggers:
--io.dropwizard.archetypes: DEBUG
mongo:
-host: localhost
-port: 27017
-database: User
aerospike:
-host: localhost
-port: 3000
I am getting the ...