{"id":17674232,"url":"https://github.com/opentracing-contrib/java-elasticsearch-client","last_synced_at":"2026-03-05T16:03:37.826Z","repository":{"id":19952065,"uuid":"88374068","full_name":"opentracing-contrib/java-elasticsearch-client","owner":"opentracing-contrib","description":"OpenTracing Instrumentation for Elasticsearch Client","archived":false,"fork":false,"pushed_at":"2022-01-04T16:30:57.000Z","size":175,"stargazers_count":8,"open_issues_count":7,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-21T22:32:37.461Z","etag":null,"topics":["elasticsearch-client","java","opentracing"],"latest_commit_sha":null,"homepage":"","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/opentracing-contrib.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}},"created_at":"2017-04-15T21:05:00.000Z","updated_at":"2024-09-29T09:39:45.000Z","dependencies_parsed_at":"2022-08-07T09:15:46.093Z","dependency_job_id":null,"html_url":"https://github.com/opentracing-contrib/java-elasticsearch-client","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/opentracing-contrib/java-elasticsearch-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fjava-elasticsearch-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fjava-elasticsearch-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fjava-elasticsearch-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fjava-elasticsearch-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentracing-contrib","download_url":"https://codeload.github.com/opentracing-contrib/java-elasticsearch-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fjava-elasticsearch-client/sbom","scorecard":{"id":710592,"data":{"date":"2025-08-11","repo":{"name":"github.com/opentracing-contrib/java-elasticsearch-client","commit":"03e8ec43653366a647c303879b17825b5780067a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"42 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-xmc8-26q4-qjhx","Warn: Project is vulnerable to: GHSA-5mcr-gq6c-3hq2","Warn: Project is vulnerable to: GHSA-9vjp-v76f-g363","Warn: Project is vulnerable to: GHSA-cqqj-4p63-rrmm","Warn: Project is vulnerable to: GHSA-f256-j965-7f32","Warn: Project is vulnerable to: GHSA-grg4-wf29-r9vv","Warn: Project is vulnerable to: GHSA-p2v9-g2qv-p635","Warn: Project is vulnerable to: GHSA-wm47-8v5p-wjpj","Warn: Project is vulnerable to: GHSA-wx5j-54mm-rqqq","Warn: Project is vulnerable to: GHSA-269q-hmxg-m83q","Warn: Project is vulnerable to: GHSA-5jpm-x58v-624v","Warn: Project is vulnerable to: GHSA-389x-839f-4rhx","Warn: Project is vulnerable to: GHSA-xq3w-v528-46rv","Warn: Project is vulnerable to: GHSA-6mjq-h674-j845","Warn: Project is vulnerable to: GHSA-mm9x-g8pc-w292","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj","Warn: Project is vulnerable to: GHSA-7rjr-3q55-vv33","Warn: Project is vulnerable to: GHSA-8489-44mv-ggj8","Warn: Project is vulnerable to: GHSA-jfh8-c2jp-5v3q","Warn: Project is vulnerable to: GHSA-p6xc-xr62-6r2g","Warn: Project is vulnerable to: GHSA-vwqq-5vrc-xw9h","Warn: Project is vulnerable to: GHSA-2cqf-6xv9-f22w","Warn: Project is vulnerable to: GHSA-2hjr-vmf3-xwvp","Warn: Project is vulnerable to: GHSA-3393-hvrj-w7v3","Warn: Project is vulnerable to: GHSA-5v8f-xx9m-wj44","Warn: Project is vulnerable to: GHSA-62ww-4p3p-7fhj","Warn: Project is vulnerable to: GHSA-c77j-p484-h84m","Warn: Project is vulnerable to: GHSA-cqgv-256r-m9r8","Warn: Project is vulnerable to: GHSA-g9fw-9x87-rmrj","Warn: Project is vulnerable to: GHSA-hr65-qq6p-87r4","Warn: Project is vulnerable to: GHSA-jgx4-7v3v-vwfm","Warn: Project is vulnerable to: GHSA-jqm6-m3j3-8gg9","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-rvwf-54qp-4r6v","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T08:07:04.688Z","repository_id":19952065,"created_at":"2025-08-22T08:07:04.688Z","updated_at":"2025-08-22T08:07:04.688Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30134577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T15:35:27.018Z","status":"ssl_error","status_checked_at":"2026-03-05T15:35:23.768Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["elasticsearch-client","java","opentracing"],"created_at":"2024-10-24T07:06:16.303Z","updated_at":"2026-03-05T16:03:37.803Z","avatar_url":"https://github.com/opentracing-contrib.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] [![Apache-2.0 license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# OpenTracing Elasticsearch Client Instrumentation\nOpenTracing instrumentation for Elasticsearch clients.\n\n## Installation\n\n### Maven\npom.xml\n\n#### Elasticsearch 5\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.opentracing.contrib\u003c/groupId\u003e\n    \u003cartifactId\u003eopentracing-elasticsearch5-client\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Elasticsearch 6\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.opentracing.contrib\u003c/groupId\u003e\n    \u003cartifactId\u003eopentracing-elasticsearch6-client\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Elasticsearch 7\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.opentracing.contrib\u003c/groupId\u003e\n    \u003cartifactId\u003eopentracing-elasticsearch7-client\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```java\n// Instantiate tracer\nTracer tracer = ...\n\n// Optionally register tracer with GlobalTracer\nGlobalTracer.register(tracer);\n\n// Build TransportClient with TracingPreBuiltTransportClient\nTransportClient transportClient = new TracingPreBuiltTransportClient(settings)\n                .addTransportAddress(...));\n\n// Build RestClient adding TracingHttpClientConfigCallback\n RestClient restClient = RestClient.builder(\n                new HttpHost(...))\n                .setHttpClientConfigCallback(new TracingHttpClientConfigCallback(tracer))\n                .build();\n\n\n```\n\n## Custom Span Names with the TracingHttpClientConfigCallback\nThis driver includes support for customizing the spans created using the TracingHttpClientConfigCallback.\nYou can use the predefined ones listed further below, or write your own in the form of a `Function` object.\n```java\n// Create a Function for the TracingHttpClientConfigCallback that operates on\n// the HttpRequest and returns a String that will be used as the Span name.\nFunction\u003cHttpRequest, String\u003e customSpanNameProvider =\n  (request) -\u003e request.getRequestLine().getMethod().toLowerCase();\n\n// Build RestClient adding TracingHttpClientConfigCallback\n RestClient restClient = RestClient.builder(\n                new HttpHost(...))\n                .setHttpClientConfigCallback(new TracingHttpClientConfigCallback(tracer, customSpanNameProvider))\n                .build();\n \n // Spans created by the restClient will now have the request's lowercase method name as the span name.\n // \"POST\" -\u003e \"post\"\n```\n\n### Predefined Span Name Providers \nThe following Functions are already included in the ClientSpanNameProvider class, with `REQUEST_METHOD_NAME` being the\ndefault should no other span name provider be provided.\n\n* `REQUEST_METHOD_NAME`: Returns the HTTP method of the request.\n  * GET /twitter/tweet/1?routing=user1 -\u003e \"GET\"\n* `PREFIXED_REQUEST_METHOD_NAME(String prefix)`: Returns a String concatenation of prefix and the HTTP method of the request.\n  * GET /twitter/tweet/1?routing=user1 -\u003e prefix + \"GET\"\n* `REQUEST_TARGET_NAME`: Returns the Elasticsearch target of the request, i.e. the index and resource it's operating on.\nIDs and other numbers not part of names will be replaced with a \"?\" to avoid overly granular names.\n  * GET /twitter/tweet/1?routing=user1 -\u003e \"/twitter/tweet/?\"\n* `PREFIXED_REQUEST_TARGET_NAME(String prefix)`: Returns a String concatenation of prefix and the Elasticsearch target of the request.\nIDs and other numbers not part of names will be replaced with a \"?\" to avoid overly granular names.\n  * GET /twitter/tweet/1?routing=user1 -\u003e prefix + \"/twitter/tweet/?\"\n* `REQUEST_METHOD_TARGET_NAME`: Returns a String concatenation of the HTTP method of the request and the Elasticsearch target of the request.\nIDs and other numbers not part of names will be replaced with a \"?\" to avoid overly granular names.\n  * GET /twitter/tweet/1?routing=user1 -\u003e \"GET /twitter/tweet/?\"\n* `PREFIXED_REQUEST_METHOD_TARGET_NAME(String prefix)`: Returns a String concatenation of prefix, the HTTP method of the request, and\nthe Elasticsearch target of the request. IDs and other numbers not part of names will be replaced with a \"?\" to avoid overly granular names.\n  * GET /twitter/tweet/1?routing=user1 -\u003e prefix + \"GET /twitter/tweet/?\"\n  \n## License\n\n[Apache 2.0 License](./LICENSE).\n\n[ci-img]: https://travis-ci.org/opentracing-contrib/java-elasticsearch-client.svg?branch=master\n[ci]: https://travis-ci.org/opentracing-contrib/java-elasticsearch-client\n[cov-img]: https://coveralls.io/repos/github/opentracing-contrib/java-elasticsearch-client/badge.svg?branch=master\n[cov]: https://coveralls.io/github/opentracing-contrib/java-elasticsearch-client?branch=master\n[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-elasticsearch6-client.svg\n[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-elasticsearch6-client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentracing-contrib%2Fjava-elasticsearch-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentracing-contrib%2Fjava-elasticsearch-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentracing-contrib%2Fjava-elasticsearch-client/lists"}