Skip to content

Commit

Permalink
Use rule instead of before for disabling tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dimabarbul committed Nov 17, 2023
1 parent 1921f41 commit eb8755f
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
import org.eclipse.ditto.connectivity.service.messaging.mqtt.hivemq.message.publish.GenericMqttPublish;
import org.eclipse.ditto.connectivity.service.messaging.mqtt.hivemq.message.subscribe.GenericMqttSubscribe;
import org.eclipse.ditto.connectivity.service.messaging.mqtt.hivemq.message.subscribe.GenericMqttSubscription;
import org.eclipse.ditto.internal.utils.tracing.DittoTracing;
import org.eclipse.ditto.internal.utils.tracing.config.DefaultTracingConfig;
import org.eclipse.ditto.internal.utils.tracing.DittoTracingInitResource;
import org.eclipse.ditto.json.JsonFactory;
import org.eclipse.ditto.things.model.ThingId;
import org.eclipse.ditto.things.model.signals.commands.modify.MergeThing;
Expand Down Expand Up @@ -82,9 +81,9 @@ public static Collection<MqttVersion> mqttVersions() {
@Parameterized.Parameter
public static MqttVersion mqttVersion;

// @ClassRule
// public static final DittoTracingInitResource DITTO_TRACING_INIT_RESOURCE =
// DittoTracingInitResource.disableDittoTracing();
@ClassRule
public static final DittoTracingInitResource DITTO_TRACING_INIT_RESOURCE =
DittoTracingInitResource.disableDittoTracing();

// @ClassRule
// public static final MongoDbResource MONGO_RESOURCE = new MongoDbResource();
Expand Down Expand Up @@ -116,7 +115,6 @@ public static Collection<MqttVersion> mqttVersions() {
@BeforeClass
public static void beforeClass() {
actorsTestConfig = ConfigFactory.load("test.conf");
DittoTracing.init(DefaultTracingConfig.of(actorsTestConfig));
// mongoClient = provideClientWrapper();
}

Expand Down

0 comments on commit eb8755f

Please sign in to comment.