Update to InstrumentationContext javadoc (#4080)
This commit is contained in:
parent
d5500d05fd
commit
630a8a41b4
|
@ -18,12 +18,8 @@ public class InstrumentationContext {
|
||||||
* <p>In reality, the <em>calls</em> to this method are re-written to something more performant
|
* <p>In reality, the <em>calls</em> to this method are re-written to something more performant
|
||||||
* while injecting advice into a method.
|
* while injecting advice into a method.
|
||||||
*
|
*
|
||||||
* <p>When this method is called from outside of an Advice class it can only access {@link
|
* <p>When using this method outside of Advice method, the {@link ContextStore} should be looked
|
||||||
* ContextStore} when it is already created. For this {@link ContextStore} either needs to be
|
* up once and stored in a field to avoid repeatedly calling this method.
|
||||||
* registered in {@code
|
|
||||||
* io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule#registerMuzzleContextStoreClasses(InstrumentationContextBuilder)}
|
|
||||||
* or be used in an Advice or Helper class which automatically adds it to {@code
|
|
||||||
* InstrumentationModule#registerMuzzleContextStoreClasses(InstrumentationContextBuilder)}.
|
|
||||||
*
|
*
|
||||||
* @param keyClass The key class context is attached to.
|
* @param keyClass The key class context is attached to.
|
||||||
* @param contextClass The context class attached to the user class.
|
* @param contextClass The context class attached to the user class.
|
||||||
|
|
Loading…
Reference in New Issue