{"id":28399084,"url":"https://github.com/dheid/sentry-http-interceptors","last_synced_at":"2025-08-20T08:15:45.212Z","repository":{"id":65509607,"uuid":"570673458","full_name":"dheid/sentry-http-interceptors","owner":"dheid","description":"Sends tracing information about Apache HttpClient calls to Sentry","archived":true,"fork":false,"pushed_at":"2025-01-01T20:23:35.000Z","size":389,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T14:42:38.780Z","etag":null,"topics":["apache","devops","http","httpclient","httpcomponents","httpcomponents-client","java","monitor","monitoring","sentry","trace","tracing"],"latest_commit_sha":null,"homepage":"https://www.daniel-heid.de/open-source-projekte/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dheid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["dheid"],"ko_fi":"dheid"}},"created_at":"2022-11-25T19:33:09.000Z","updated_at":"2025-01-02T17:22:05.000Z","dependencies_parsed_at":"2023-02-12T01:25:17.900Z","dependency_job_id":"a16d154d-5e6a-4333-abde-676b709f21ab","html_url":"https://github.com/dheid/sentry-http-interceptors","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/dheid/sentry-http-interceptors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fsentry-http-interceptors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fsentry-http-interceptors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fsentry-http-interceptors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fsentry-http-interceptors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dheid","download_url":"https://codeload.github.com/dheid/sentry-http-interceptors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fsentry-http-interceptors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262484091,"owners_count":23318392,"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","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":["apache","devops","http","httpclient","httpcomponents","httpcomponents-client","java","monitor","monitoring","sentry","trace","tracing"],"created_at":"2025-06-01T06:39:21.344Z","updated_at":"2025-06-28T19:32:05.423Z","avatar_url":"https://github.com/dheid.png","language":"Java","funding_links":["https://github.com/sponsors/dheid","https://ko-fi.com/dheid","https://ko-fi.com/W7W3EER56"],"categories":[],"sub_categories":[],"readme":"# :flashlight: Sentry HTTP Interceptors\n\n[![Maven Central](https://img.shields.io/maven-central/v/org.drjekyll/sentry-http-interceptors.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.drjekyll%22%20AND%20a:%22sentry-http-interceptors%22)\n[![Java CI with Maven](https://github.com/dheid/sentry-http-interceptors/actions/workflows/build.yml/badge.svg)](https://github.com/dheid/sentry-http-interceptors/actions/workflows/build.yml)\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W3EER56)\n\nSends tracing information about Apache HttpClient calls to Sentry:\n\n* Creates a http.client span that shows the HTTP method and the full target URL\n* Adds a breadcrumb containing the HTTP URL, HTTP method and the HTTP response status code\n* Includes Sentry trace and baggage headers to requests made with Apache HttpClient\n* Supports version 4 and version 5 of Apache HttpClient\n* Easy to use\n* Well documented with Javadoc\n\n## :wrench: Usage\n\nYou need to provide your Apache HTTP Client 4 or 5 dependency on your own like this. For example for Apache HttpClient 4:\n\nMaven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.apache.httpcomponents\u003c/groupId\u003e\n  \u003cartifactId\u003ehttpclient\u003c/artifactId\u003e\n  \u003cversion\u003e4.5.14\u003c/version\u003e\n\u003c/dependency\u003e\n```\nGroovy\n```groovy\nimplementation 'org.apache.httpcomponents:httpclient:4.5.14'\n```\nKotlin\n```kotlin\nimplementation(\"org.apache.httpcomponents:httpclient:4.5.14\")\n```\n\nor Apache HttpClient 5:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.apache.httpcomponents.client5\u003c/groupId\u003e\n  \u003cartifactId\u003ehttpclient5\u003c/artifactId\u003e\n  \u003cversion\u003e5.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\nGroovy\n```groovy\nimplementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'\n```\nKotlin\n```kotlin\nimplementation(\"org.apache.httpcomponents.client5:httpclient5:5.2.1\")\n```\n\nThen include the dependency\n\nMaven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.drjekyll\u003c/groupId\u003e\n  \u003cartifactId\u003esentry-http-interceptors\u003c/artifactId\u003e\n  \u003cversion\u003e6.28.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\nGroovy\n```groovy\nimplementation 'org.drjekyll:sentry-http-interceptors:6.28.0'\n```\n\nKotlin\n\n```kotlin\nimplementation(\"org.drjekyll:sentry-http-interceptors:6.28.0\")\n```\n\nRun your build tool and add the interceptors like in the following example:\n\nApache Http Client 5:\n\n```java\n\nCloseableHttpClient client=HttpClientBuilder.create()\n  .addRequestInterceptorFirst(new SentryHttpRequestInterceptor(HubAdapter.getInstance()))\n  .addResponseInterceptorLast(new SentryHttpResponseInterceptor(HubAdapter.getInstance()))\n  .build();\n\n```\n\nApache Http Client 4:\n\n```java\n\nCloseableHttpClient client=HttpClientBuilder.create()\n  .addInterceptorFirst(new SentryHttpRequestInterceptor(HubAdapter.getInstance()))\n  .addResponseInterceptorLast(new SentryHttpResponseInterceptor(HubAdapter.getInstance()))\n  .build();\n\n```\n\nAfter that the requests will be traced by Sentry, if Sentry is correctly configured in your\napplication.\n\n## :sunglasses: Development\n\nTo build and locally install the library and run the tests, just call\n\n    mvn install\n\n## :handshake: Contributing\n\nPlease read [the contribution document](CONTRIBUTING.md) for details on our code of conduct, and the\nprocess for submitting pull requests to us.\n\n## :notebook: Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see\nthe [tags on this repository](https://github.com/dheid/sentry-http-interceptors/tags).\n\n## :scroll: License\n\nThis project is licensed under the LGPL License - see the [license](LICENSE) file for details.\n\n## :loudspeaker: Release Notes\n\n### \u003e= 6.24.0-1\n\nAdded support for Apache HttpClient versions 4 and 5 simultaneously.\n\n### \u003e= 6.19.2\n\nUsing Apache HttpClient version 5 now. Java 11 is required.\n\n### \u003e 6.9.0\n\nUpgrade dependencies\n\n### 6.9.0\n\nUse Sentry version number to let consumer find the correct version more easily\n\n### 1.0.2\n\nDependency updates\n\n### 1.0.1\n\nFirst public version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheid%2Fsentry-http-interceptors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdheid%2Fsentry-http-interceptors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheid%2Fsentry-http-interceptors/lists"}