@AutoService(value=Instrumenter.class) public final class ThreadInstrumentation extends Object implements Instrumenter
Thread.start() to the new thread, just like the
Microsoft .Net Framework propagates the System.Threading.ExecutionContext.
NB: A similar effect could be achieved with InheritableThreadLocal, but the semantics
are different: InheritableThreadLocal inherits values when the thread object is
initialized as opposed to when Thread.start() is called.
| Constructor and Description |
|---|
ThreadInstrumentation() |
| Modifier and Type | Method and Description |
|---|---|
net.bytebuddy.agent.builder.AgentBuilder |
instrument(net.bytebuddy.agent.builder.AgentBuilder agentBuilder,
Settings settings)
Adds bytecode instrumentation to the given
AgentBuilder. |
public net.bytebuddy.agent.builder.AgentBuilder instrument(net.bytebuddy.agent.builder.AgentBuilder agentBuilder,
Settings settings)
InstrumenterAgentBuilder.instrument in interface InstrumenteragentBuilder - an AgentBuilder object to which the additional instrumentation is
addedsettings - the configuration settingsAgentBuilder object having the additional instrumentation