{"id":23459519,"url":"https://github.com/orbinson/sling-observability-weavinghooks","last_synced_at":"2025-10-12T16:58:52.706Z","repository":{"id":251388056,"uuid":"835832203","full_name":"orbinson/sling-observability-weavinghooks","owner":"orbinson","description":"Sling Observability Weaving Hooks","archived":false,"fork":false,"pushed_at":"2024-11-07T12:28:36.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T23:44:19.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/orbinson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"bdhoine,royteeuwen"}},"created_at":"2024-07-30T16:05:23.000Z","updated_at":"2024-12-09T19:54:38.000Z","dependencies_parsed_at":"2024-11-07T17:30:28.442Z","dependency_job_id":null,"html_url":"https://github.com/orbinson/sling-observability-weavinghooks","commit_stats":null,"previous_names":["orbinson/sling-observability-weavinghooks"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbinson%2Fsling-observability-weavinghooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbinson%2Fsling-observability-weavinghooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbinson%2Fsling-observability-weavinghooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbinson%2Fsling-observability-weavinghooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orbinson","download_url":"https://codeload.github.com/orbinson/sling-observability-weavinghooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248484942,"owners_count":21111751,"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":[],"created_at":"2024-12-24T06:14:50.367Z","updated_at":"2025-10-12T16:58:52.627Z","avatar_url":"https://github.com/orbinson.png","language":"Java","funding_links":["https://github.com/sponsors/bdhoine,royteeuwen"],"categories":[],"sub_categories":[],"readme":"# Sling Observability Weaving Hooks\n\nLibrary of weaving hooks to ease the process of observability in out-of-the-box code\n\n## Log Method Weaving Hook\n\nWhen all else fails, and you have no logs available because there are no log statements in the out-of-the-box classes, use this Log Method Weaving Hook to add a dynamic log statements\n\n### Usage\n\nInstall the bundle in start level 1 and add an OSGi config for every method log you would like to add.\n\nExample, search for your classname and method name you want to log and add an OSGi config `be.orbinson.sling.observability.weavinghooks.logmethod.LogMethodWeavingHookConfiguration~MyClass-doGet.cfg.json`\n\n```json\n{\n  \"className\": \"my.package.MyClass\",\n  \"methodName\": \"doGet\"\n}\n```\n\nOptionally you can also set the `logLevel` (default is INFO) and that it logs the generated bytecode of the weaved class by setting the `showGeneratedBytecode` through the OSGi config\n\nTo make the weaving hook work, a refresh of the target bundle is required.\n\n## Future\n\n- Add weaving hooks to create custom spans and metrics using OpenTelemetry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbinson%2Fsling-observability-weavinghooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forbinson%2Fsling-observability-weavinghooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbinson%2Fsling-observability-weavinghooks/lists"}