Class ResourceInjectionInstrumentation
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.javaclassloader.ResourceInjectionInstrumentation
-
- All Implemented Interfaces:
io.opentelemetry.javaagent.tooling.TypeInstrumentation
public class ResourceInjectionInstrumentation extends java.lang.Object implements io.opentelemetry.javaagent.tooling.TypeInstrumentationInstrumentsClassLoaderto 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceInjectionInstrumentation.GetResourcesAdvice
-
Constructor Summary
Constructors Constructor Description ResourceInjectionInstrumentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<? extends net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription>,java.lang.String>transformers()net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.type.TypeDescription>typeMatcher()
-
-
-
Method Detail
-
typeMatcher
public net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.type.TypeDescription> typeMatcher()
- Specified by:
typeMatcherin interfaceio.opentelemetry.javaagent.tooling.TypeInstrumentation
-
transformers
public java.util.Map<? extends net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription>,java.lang.String> transformers()
- Specified by:
transformersin interfaceio.opentelemetry.javaagent.tooling.TypeInstrumentation
-
-