![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
org.zapodot:hystrix-dropwizard-bundle
Advanced tools
A Hystrix bundle for DropWizard which adds a Hystrix event stream to the admin context and enables Metrics reporting of Hystrix metrics
This library is released under an Apache Licence (V2).
This library is distributed through the Sonatype OSS Repo and should thus be widely available.
<dependency>
<groupId>org.zapodot</groupId>
<artifactId>hystrix-dropwizard-bundle</artifactId>
<version>1.0.1</version>
</dependency>
libraryDependencies += "org.zapodot" % "hystrix-dropwizard-bundle" % "1.0.1"
@Override
public void initialize(final Bootstrap<AppConfiguration> bootstrap) {
...
bootstrap.addBundle(HystrixBundle.withDefaultSettings());
...
}
This will initialize the bundle using default settings which means that:
If you need some other configuration, use the provided Builder (see example below)
@Override
public void initialize(final Bootstrap<AppConfiguration> bootstrap) {
...
bootstrap.addBundle(HystrixBundle.builder()
.withApplicationStreamPath("/my-path")
.disableStreamServletInAdminContext()
.disableMetricsPublisher()
.build()
);
...
}
Starting with version 0.9, you may now implement your own mechanism for specifying whether Hystrix Metrics should be published to DropWizard Metrics by adding your own lambda expression to the withMetricsPublisherPredicate builder method
HystrixBundle.builder()
.withMetricsPublisherPredicate((c) -> true) // c is your application configuration POJO
.build();
Note: The now defunct version 0.8 implemented another approach which included overriding a method on Hystrix bundle. Putting this on the builder allows us to keep the specialized constructor private which provides us with more flexibility in the future.
FAQs
A hystrix bundle for DropWizard
We found that org.zapodot:hystrix-dropwizard-bundle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.