Search in sources :

Example 6 with Settings

use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.

the class ThreadInstrumentationTest method instrument_disabled.

@Test
public void instrument_disabled() {
    Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = false"));
    AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
    assertThat(agentBuilder2).isSameInstanceAs(agentBuilder);
}
Also used : AgentBuilder(net.bytebuddy.agent.builder.AgentBuilder) Settings(io.opencensus.contrib.agent.Settings) Test(org.junit.Test)

Aggregations

Settings (io.opencensus.contrib.agent.Settings)6 AgentBuilder (net.bytebuddy.agent.builder.AgentBuilder)6 Test (org.junit.Test)6