Class ResourceInjectionInstrumentation

  • All Implemented Interfaces:
    io.opentelemetry.javaagent.tooling.TypeInstrumentation

    public class ResourceInjectionInstrumentation
    extends Object
    implements io.opentelemetry.javaagent.tooling.TypeInstrumentation
    Instruments ClassLoader to have calls to get resources intercepted and check our map of helper resources that is filled by instrumentation when they need helpers.

    We currently only intercept ClassLoader.getResources(String) because this is the case we are currently always interested in, where it's used for service loading.

    • Constructor Detail

      • ResourceInjectionInstrumentation

        public ResourceInjectionInstrumentation()
    • Method Detail

      • typeMatcher

        public net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.type.TypeDescription> typeMatcher()
        Specified by:
        typeMatcher in interface io.opentelemetry.javaagent.tooling.TypeInstrumentation
      • transformers

        public Map<? extends net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription>,​String> transformers()
        Specified by:
        transformers in interface io.opentelemetry.javaagent.tooling.TypeInstrumentation