use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.
the class ThreadInstrumentationTest method instrument_enabled.
@Test
public void instrument_enabled() {
Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = true"));
AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
assertThat(agentBuilder2).isNotSameInstanceAs(agentBuilder);
}
use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.
the class ExecutorInstrumentationTest method instrument_enabled.
@Test
public void instrument_enabled() {
Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = true"));
AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
assertThat(agentBuilder2).isNotSameInstanceAs(agentBuilder);
}
use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.
the class UrlInstrumentationTest 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);
}
use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.
the class ExecutorInstrumentationTest 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);
}
use of io.opencensus.contrib.agent.Settings in project instrumentation-java by census-instrumentation.
the class UrlInstrumentationTest method instrument_enabled.
@Test
public void instrument_enabled() {
Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = true"));
AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
assertThat(agentBuilder2).isNotSameInstanceAs(agentBuilder);
}
Aggregations