{"id":19126328,"url":"https://github.com/tushar-naik/dropwizard-hystrix-tracker","last_synced_at":"2025-10-08T07:06:32.152Z","repository":{"id":136657002,"uuid":"85695682","full_name":"Tushar-Naik/dropwizard-hystrix-tracker","owner":"Tushar-Naik","description":"A Bundle that can be used to track Paths/Resources","archived":false,"fork":false,"pushed_at":"2020-10-12T23:50:45.000Z","size":229,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T15:38:16.133Z","etag":null,"topics":["client-filter","dropwizard-bundle","hystrix","tracker"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tushar-Naik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-21T11:51:01.000Z","updated_at":"2019-06-08T03:52:31.000Z","dependencies_parsed_at":"2023-05-14T00:30:19.429Z","dependency_job_id":null,"html_url":"https://github.com/Tushar-Naik/dropwizard-hystrix-tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tushar-Naik/dropwizard-hystrix-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tushar-Naik%2Fdropwizard-hystrix-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tushar-Naik%2Fdropwizard-hystrix-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tushar-Naik%2Fdropwizard-hystrix-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tushar-Naik%2Fdropwizard-hystrix-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tushar-Naik","download_url":"https://codeload.github.com/Tushar-Naik/dropwizard-hystrix-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tushar-Naik%2Fdropwizard-hystrix-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273947466,"owners_count":25196390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-filter","dropwizard-bundle","hystrix","tracker"],"created_at":"2024-11-09T05:39:06.849Z","updated_at":"2025-10-08T07:06:27.105Z","avatar_url":"https://github.com/Tushar-Naik.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropwizard Hystrix Tracker \n[![Build Status](https://travis-ci.org/Tushar-Naik/dropwizard-hystrix-tracker.svg?branch=master)](https://travis-ci.org/Tushar-Naik/dropwizard-hystrix-tracker)\n[![Coverage Status](https://coveralls.io/repos/github/Tushar-Naik/dropwizard-hystrix-tracker/badge.svg?branch=master)](https://coveralls.io/github/Tushar-Naik/dropwizard-hystrix-tracker?branch=master)\n[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](//github.com/Tushar-Naik/dropwizard-hystrix-tracker/blob/master/LICENSE)\n[![Clojars Project](https://img.shields.io/clojars/v/io.dropwizard.tracker/dropwizard-hystrix-tracker.svg)](https://clojars.org/io.dropwizard.tracker/dropwizard-hystrix-tracker)\n\n\n#### A Bundle that can be used to track API-Paths / Resources \n\nA precompiled bundle for tracking/monitoring your favourite API-Paths/Resources.\u003cbr\u003e\nThere are 2 features here:\n1. Client Restriction for certain API Paths within your Resource - using annotation ```@ClientRestriction```\n2. Hystrix tracking of APIs - using annotation  ```@TrackPath```\u003cbr\u003e\n \n## Usage\n \n### Build instructions\n  - Cloning source code:\n\n        git clone github.com/Tushar-Naik/dropwizard-hystrix-tracker.git\n\n  - Building code\n\n        mvn install\n\n### Repository\n```\n\u003crepository\u003e\n    \u003cid\u003eclojars\u003c/id\u003e\n    \u003cname\u003eClojars repository\u003c/name\u003e\n    \u003curl\u003ehttps://clojars.org/repo\u003c/url\u003e\n\u003c/repository\u003e\n```\n### Maven Dependency\n* Use the following maven dependency for path tracker:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.dropwizard.tracker\u003c/groupId\u003e\n    \u003cartifactId\u003edropwizard-hystrix-path-tracker\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.12-1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n* Use the following maven dependency for client filter:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.dropwizard.tracker\u003c/groupId\u003e\n    \u003cartifactId\u003edropwizard-client-filter\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.12-1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 1. Using Path Tracker Bundle\nUse this to track a particular API endpoint.\u003cbr\u003e\nHystrix metrics will be emitted based on the name of the API.\n#### Bootstrap\n```java\n    @Override\n    public void initialize(final Bootstrap...) {\n        bootstrap.addBundle(new TrackerBundle());\n    }\n```\n#### Tracking your Resource\n```java\n@Path(\"/service/v1\")\n@Slf4j\npublic class MyResource{\n    \n    @Path(\"/api1\")\n    @GET\n    @Produces(MediaType.APPLICATION_JSON)\n    @TrackPath(\"/service/*\")\n    public Response getResponse() {\n        ...    \n    }\n    ...\n}\n```\n![alt tag](images/hystrix-dashboard-sample.png?raw=true \"Sample Hystrix Dashboard\")\n\n## 2. Using Client Restriction Bundle\nDepending on the ```ClientFilterConfig``` provided, \u003cbr\u003eif a Resource Path is marked with the annotation\n ```@ClientRestriction```, \u003cbr\u003eAPI will return a **STATUS:403 FORBIDDEN** if header in the incoming Request is not present,\u003cbr\u003e or does not match the ones present in ```ClientFilterConfig.validClients```\n#### Bootstrap\n```java\n    @Override\n    public void initialize(final Bootstrap\u003cXYZConfiguration\u003e bootstrap) {\n        bootstrap.addBundle(new ClientFilterBundle\u003cXYZConfiguration\u003e() {\n                    @Override\n                    public ClientFilterConfig getClientFilterConfig(XYZConfiguration xYZConfiguration) {\n                        return xYZConfiguration.getClientFilterConfig();\n                    }\n                });\n    }\n```\n#### Adding client header restriction for a resource \n```java\n@Path(\"/service/v1\")\n@Slf4j\npublic class MyResource{\n    \n    @Path(\"/api/{path}/search\")\n    @GET\n    @Produces(MediaType.APPLICATION_JSON)\n    @ClientRestriction\n    public Response getResponse() {\n        ...    \n    }\n    ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftushar-naik%2Fdropwizard-hystrix-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftushar-naik%2Fdropwizard-hystrix-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftushar-naik%2Fdropwizard-hystrix-tracker/lists"}