Skip to content

orbinson/sling-observability-weavinghooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sling Observability Weaving Hooks

Library of weaving hooks to ease the process of observability in out-of-the-box code

Log Method Weaving Hook

When 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

Usage

Install the bundle in start level 1 and add an OSGi config for every method log you would like to add.

Example, search for your classname, method name and amount of parameters you want to log and add an OSGi config be.orbinson.sling.observability.weavinghooks.logmethod.LogMethodWeavingHookConfiguration~MyClass-doGet.cfg.json

{
  "className": "my.package.MyClass",
  "methodName": "doGet"
}

To make the weaving hook work, a refresh of the target bundle is required.

Future

  • Add weaving hooks to create custom spans and metrics using OpenTelemetry

About

Sling Observability Weaving Hooks

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages