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);
}
Aggregations