Skip to main content
Filter by
Sorted by
Tagged with
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 ...
user2395365's user avatar
  • 2,119
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 ...
user2395365's user avatar
  • 2,119
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&...
Andy Tang's user avatar
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 ...
Nick Hyland's user avatar
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; ...
Runtime Error's user avatar
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....
Jackie Vaswani's user avatar
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 ...
Shyam's user avatar
  • 31
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 = ...
user2395365's user avatar
  • 2,119
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 -> { ...
LooneyTuunz's user avatar
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 ...
rmf's user avatar
  • 255
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 ...
tftd's user avatar
  • 16.9k
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 ...
user24353885's user avatar
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 ...
Joy's user avatar
  • 4,433
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 ...
Hardik Doshi's user avatar
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 ...
Deepak's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
135