{"id":19784043,"url":"https://github.com/clouddetail/preload","last_synced_at":"2026-03-04T03:31:06.181Z","repository":{"id":252415336,"uuid":"840219791","full_name":"CloudDetail/preload","owner":"CloudDetail","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-17T07:34:49.000Z","size":43,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-30T22:38:58.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CloudDetail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-09T08:17:37.000Z","updated_at":"2025-03-17T07:34:53.000Z","dependencies_parsed_at":"2025-02-13T04:20:50.104Z","dependency_job_id":"2f7cbe8d-36d6-41ac-a62c-dca43f527ea9","html_url":"https://github.com/CloudDetail/preload","commit_stats":null,"previous_names":["clouddetail/preload"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CloudDetail/preload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudDetail%2Fpreload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudDetail%2Fpreload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudDetail%2Fpreload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudDetail%2Fpreload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CloudDetail","download_url":"https://codeload.github.com/CloudDetail/preload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudDetail%2Fpreload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2024-11-12T06:10:07.094Z","updated_at":"2026-03-04T03:31:06.122Z","avatar_url":"https://github.com/CloudDetail.png","language":"Rust","readme":"# Preload\n\nA system module that hooks into the operating system's `execve` function to automatically load APM (Application Performance Monitoring) agents.\n\nKey Features:\n\n- Automatically detects the programming language of target applications\n- Injects necessary environment variables based on the detected language-specific APM agent\n- Auto-generates ServiceName (currently Java only)\n- Maintains seamless program execution flow\n\n## Installation\n\n- Run `make dist` to create installation files, then execute `bash install.sh` for local installation\n- Run `make release` to create `install-apo-instrument.tar.gz` package for deployment on other machines\n\n## Uninstallation\n\nRemove the following line from `/etc/ld.so.preload`:\n```\n/etc/apo/instrument/libapolanucher.so\n```\nIf this is the only line in the file, you can safely remove the entire `/etc/ld.so.preload` file.\nRestart your terminal session to complete the uninstallation.\n\n**Troubleshooting**\n\nIf SSH access becomes unavailable due to preload issues, you can fix it by either:\n- Using `scp` to copy an empty file to overwrite `/etc/ld.so.preload` on the target machine\n- Completing the uninstallation process\n\nTo clean up remaining files afterward:\n```\nrm -r /etc/apo\n```\n\n## Usage in Virtual Machines\n\nThe preload hook takes effect for all program executions immediately after running `install.sh`.\n\n## Usage in Docker Containers\n\nAfter installing on the host machine, add these parameters when starting containers:\n\n```\n-v /etc/apo:/etc/apo\n-e LD_PRELOAD=/etc/apo/instrument/libapolanucher.so\n```\n\nThe `-v` flag mounts the agent files, while `-e` enables the preload library.\n\nExample:\n\nOriginal docker command:\n```\ndocker run -d exampleApp:tag\n```\n\nModified command:\n```\ndocker run -d \\\n    -v /etc/apo:/etc/apo \\\n    -e LD_PRELOAD=/etc/apo/instrument/libapolanucher.so \\\n    exampleApp:tag\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclouddetail%2Fpreload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclouddetail%2Fpreload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclouddetail%2Fpreload/lists"}