Skip to content

Commit

Permalink
Enabling tracer for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagan Juneja committed Jun 27, 2023
1 parent 248c031 commit e019e92
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
import org.opensearch.node.NodeValidationException;
import org.opensearch.plugins.Plugin;
import org.opensearch.script.MockScriptService;
import org.opensearch.search.SearchService;
import org.opensearch.search.internal.SearchContext;
import org.opensearch.telemetry.TelemetrySettings;
import org.opensearch.tracing.MockTelemetryPlugin;
import org.opensearch.transport.TransportSettings;
import org.junit.AfterClass;
Expand Down Expand Up @@ -116,6 +118,7 @@ protected void startNode(long seed) throws Exception {
.setOrder(0)
.setSettings(Settings.builder().put(IndexSettings.INDEX_SOFT_DELETES_RETENTION_OPERATIONS_SETTING.getKey(), between(0, 1000)))
.get();
client().admin().cluster().
}

private static void stopNode() throws IOException, InterruptedException {
Expand Down Expand Up @@ -209,7 +212,7 @@ protected final Collection<Class<? extends Plugin>> pluginList(Class<? extends P

/** Additional settings to add when creating the node. Also allows overriding the default settings. */
protected Settings nodeSettings() {
return Settings.EMPTY;
return Settings.builder().put(TelemetrySettings.TRACER_ENABLED_SETTING.getKey(), true).build();
}

/** True if a dummy http transport should be used, or false if the real http transport should be used. */
Expand Down

0 comments on commit e019e92

Please sign in to comment.