{"id":36616411,"url":"https://github.com/dhatim/dropwizard-correlation-id","last_synced_at":"2026-01-12T09:12:10.453Z","repository":{"id":40430634,"uuid":"119723411","full_name":"dhatim/dropwizard-correlation-id","owner":"dhatim","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-15T14:53:04.000Z","size":108,"stargazers_count":6,"open_issues_count":8,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-12-18T19:28:36.855Z","etag":null,"topics":["correlation","dropwizard","id","java","module","request"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhatim.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-31T18:01:48.000Z","updated_at":"2025-11-29T04:28:01.000Z","dependencies_parsed_at":"2022-08-09T20:10:55.322Z","dependency_job_id":"26f9b736-15d9-4f08-8424-111a6e78acd4","html_url":"https://github.com/dhatim/dropwizard-correlation-id","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/dhatim/dropwizard-correlation-id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhatim%2Fdropwizard-correlation-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhatim%2Fdropwizard-correlation-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhatim%2Fdropwizard-correlation-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhatim%2Fdropwizard-correlation-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhatim","download_url":"https://codeload.github.com/dhatim/dropwizard-correlation-id/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhatim%2Fdropwizard-correlation-id/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["correlation","dropwizard","id","java","module","request"],"created_at":"2026-01-12T09:12:08.970Z","updated_at":"2026-01-12T09:12:10.448Z","avatar_url":"https://github.com/dhatim.png","language":"Java","readme":"# Dropwizard Correlation Id\n\n[![Build Status](https://github.com/dhatim/dropwizard-correlation-id/workflows/build/badge.svg)](https://github.com/dhatim/dropwizard-correlation-id/actions)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.dhatim/dropwizard-jwt-cookie-authentication/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.dhatim/dropwizard-correlation-id)\n[![Javadocs](https://www.javadoc.io/badge/org.dhatim/dropwizard-correlation-id.svg)](https://www.javadoc.io/doc/org.dhatim/dropwizard-correlation-id)\n\nCorrelation ids for Dropwizard applications. They are useful to match requests between different components.\n- Correlation ids are sent from one system to another using an http header in requests and responses. The default http header is `X-Correlation-Id`.\n- When the server processes a request, its correlation id (or a random UUID if not available) is put into [slf4j mapped diagnostic context (MDC)](https://www.slf4j.org/manual.html#mdc). The default MDC key is `correlationId`.\n- When using a Jersey or Apache http client to send requests to another system, the correlation id currently in the MDC (or a random UUID if not available) is put into the request http header.\n\n## Usage\n\n### Maven Artifacts\n\nThis project is available in the [Central Repository](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.dhatim%22%20AND%20a%3A%22dropwizard-correlation-id%22). To add it to your project simply add the following dependency to your POM:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.dhatim\u003c/groupId\u003e\n  \u003cartifactId\u003edropwizard-correlation-id\u003c/artifactId\u003e\n  \u003cversion\u003e4.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Optional: edit your configuration YAML\n\nThe default values are as follows:\n```yaml\ncorrelationId:\n    headerName: X-Correlation-Id\n    mdcKey: correlationId\n```\n\n### Add the bundle to your Dropwizard application\n\nWithout configuration:\n```java\npublic void initialize(Bootstrap\u003cMyApplicationConfiguration\u003e bootstrap) {\n    bootstrap.addBundle(CorrelationIdBundle.getDefault());\n}\n```\nWith configuration:\n```java\npublic void initialize(Bootstrap\u003cMyApplicationConfiguration\u003e bootstrap) {\n    bootstrap.addBundle(CorrelationIdBundle.withConfigurationSupplier(MyAppConfiguration::getCorrelationId));\n}\n```\n\n### Usage with a Jersey client\n\nJust register the provided filter into your Jersey client:\n```java\nJerseyClientBuilder builder = new JerseyClientBuilder(...)...;\nClient client = builder.build(...);\nclient.register(new CorrelationIdClientFilter(configuration));\n```\nIf `configuration` is omitted, default values apply.\n\n### Usage with an Apache http client\n\nReplace your `HttpClientBuilder` by `CorrelationIdHttpClientBuilder` this way:\n```java\nHttpClientBuilder builder = new CorrelationIdHttpClientBuilder(..., configuration)...;\nCloseableHttpClient cient = builder.build(...);\n```\nIf `configuration` is omitted, default values apply.\n\n## Support\n\nPlease file bug reports and feature requests in [GitHub issues](https://github.com/dhatim/dropwizard-correlation-id/issues).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhatim%2Fdropwizard-correlation-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhatim%2Fdropwizard-correlation-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhatim%2Fdropwizard-correlation-id/lists"}