{"id":20195065,"url":"https://github.com/newrelic-experimental/newrelic-java-executors","last_synced_at":"2026-06-10T05:31:15.159Z","repository":{"id":38448776,"uuid":"324062603","full_name":"newrelic-experimental/newrelic-java-executors","owner":"newrelic-experimental","description":"Instrumentation of the New Relic Java Agent for Java Executors","archived":false,"fork":false,"pushed_at":"2025-09-17T14:52:21.000Z","size":686,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-04-18T00:32:37.201Z","etag":null,"topics":["completablefuture","executors","instrumentation","java","java-executor","nrlabs","nrlabs-data","nrlabs-odp","observability-data"],"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/newrelic-experimental.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2020-12-24T04:11:49.000Z","updated_at":"2025-09-17T14:49:16.000Z","dependencies_parsed_at":"2025-01-13T19:22:04.008Z","dependency_job_id":"3273b57e-96df-429f-9611-4a6021173ea0","html_url":"https://github.com/newrelic-experimental/newrelic-java-executors","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"newrelic-experimental/java-instrumentation-template","purl":"pkg:github/newrelic-experimental/newrelic-java-executors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic-experimental%2Fnewrelic-java-executors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic-experimental%2Fnewrelic-java-executors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic-experimental%2Fnewrelic-java-executors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic-experimental%2Fnewrelic-java-executors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newrelic-experimental","download_url":"https://codeload.github.com/newrelic-experimental/newrelic-java-executors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic-experimental%2Fnewrelic-java-executors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34139178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["completablefuture","executors","instrumentation","java","java-executor","nrlabs","nrlabs-data","nrlabs-odp","observability-data"],"created_at":"2024-11-14T04:15:38.806Z","updated_at":"2026-06-10T05:31:15.141Z","avatar_url":"https://github.com/newrelic-experimental.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://opensource.newrelic.com/oss-category/#new-relic-experimental\"\u003e\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Experimental.png\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Experimental.png\"\u003e\u003cimg alt=\"New Relic Open Source experimental project banner.\" src=\"https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Experimental.png\"\u003e\u003c/picture\u003e\u003c/a\u003e \n\n![GitHub forks](https://img.shields.io/github/forks/newrelic-experimental/newrelic-java-executors?style=social)\n![GitHub stars](https://img.shields.io/github/stars/newrelic-experimental/newrelic-java-executors?style=social)\n![GitHub watchers](https://img.shields.io/github/watchers/newrelic-experimental/newrelic-java-executors?style=social)\n\n![GitHub all releases](https://img.shields.io/github/downloads/newrelic-experimental/newrelic-java-executors/total)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/newrelic-experimental/newrelic-java-executors)\n![GitHub last commit](https://img.shields.io/github/last-commit/newrelic-experimental/newrelic-java-executors)\n![GitHub Release Date](https://img.shields.io/github/release-date/newrelic-experimental/newrelic-java-executors)\n\n\n![GitHub issues](https://img.shields.io/github/issues/newrelic-experimental/newrelic-java-executors)\n![GitHub issues closed](https://img.shields.io/github/issues-closed/newrelic-experimental/newrelic-java-executors)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/newrelic-experimental/newrelic-java-executors)\n![GitHub pull requests closed](https://img.shields.io/github/issues-pr-closed/newrelic-experimental/newrelic-java-executors) \n   \n# Executors Instrumentation for Java Agent\n\nThis instrumentation is used to instrument the Java ExecutorService and CompletableFutures.\n\n## Installation\nNote that because these extensions override the CompletableFutures instrumentation included in the Java Agent, it is necessary to disable that instrumentation.   \n   \nTo install:   \n1. Download the latest release jar files.    \n2. In the New Relic Java directory (the one containing newrelic.jar), create a directory named extensions if it does not already exist.   \n3. Copy the downloaded jars into the extensions directory. \n4. Edit newrelic.yml\n5. Find class_transformer: stanza\n6. Add  com.newrelic.instrumentation.java.completable-future-jdk8 \u0026 com.newrelic.instrumentation.java.completable-future-jdk8u40 with enabled set to false\n7. Save newrelic.yml \n8. Restart the application.   \n\nThe class_transformer stanza should look something like this:   \n   \n\u0026nbsp;\u0026nbsp;class_transformer:   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;# This instrumentation reports the name of the user principal returned from    \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;# HttpServletRequest.getUserPrincipal() when servlets and filters are invoked.   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;com.newrelic.instrumentation.servlet-user:   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;enabled: false  \n   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;com.newrelic.instrumentation.spring-aop-2:   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;enabled: false  \n   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;com.newrelic.instrumentation.java.completable-future-jdk8:   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;enabled: false  \n   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;com.newrelic.instrumentation.java.completable-future-jdk8u40:   \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;enabled: false  \n   \n## Building\n\nBuilding the extension requires that Gradle is installed.\nTo build the extension jars from source, follow these steps:\n### Build single extension\nTo build a single extension with name *extension*, do the following:\n1. Set an environment variable *NEW_RELIC_EXTENSIONS_DIR* and set its value to the directory where you want the jar file built.\n2. Run the command: gradlew *extension*:clean *extension*:install\n### Build all extensions\nTo build all extensions, do the following:\n1. Set an environment variable *NEW_RELIC_EXTENSIONS_DIR* and set its value to the directory where you want the jar file built.\n2. Run the command: gradlew clean install\n \n## Support\n\nNew Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.\n\nWe encourage you to bring your experiences and questions to the [Explorers Hub](https://discuss.newrelic.com) where our community members collaborate on solutions and new ideas.\n\n## Contributing\n\nWe encourage your contributions to improve Executors Instrumentation for Java Agent. Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.\n\n**A note about vulnerabilities**\n\nAs noted in our [security policy](../../security/policy), New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.\n\nIf you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [HackerOne](https://hackerone.com/newrelic).\n\n## License\n\nExecutors Instrumentation for Java Agent is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewrelic-experimental%2Fnewrelic-java-executors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewrelic-experimental%2Fnewrelic-java-executors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewrelic-experimental%2Fnewrelic-java-executors/lists"}