From 4b8a481666adbe1b1b2a14d476d131338ab52cb2 Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Sat, 7 Mar 2020 10:34:55 +0300 Subject: [PATCH] Replacing opentracing with opentelemetry in server tests --- .../selenium/remote/server/ActiveSessionFactoryTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/server/test/org/openqa/selenium/remote/server/ActiveSessionFactoryTest.java b/java/server/test/org/openqa/selenium/remote/server/ActiveSessionFactoryTest.java index d2d0e54a83c43..304348fdd3b38 100644 --- a/java/server/test/org/openqa/selenium/remote/server/ActiveSessionFactoryTest.java +++ b/java/server/test/org/openqa/selenium/remote/server/ActiveSessionFactoryTest.java @@ -33,7 +33,7 @@ import org.openqa.selenium.grid.session.SessionFactory; import org.openqa.selenium.remote.Dialect; -import io.opentracing.noop.NoopTracerFactory; +import io.opentelemetry.trace.DefaultTracerFactory; import java.util.Optional; @@ -45,7 +45,7 @@ public void factoriesFoundViaServiceLoadersAreUsedFirst() { Capabilities caps = new ImmutableCapabilities("browserName", "chrome"); DriverProvider provider = new StubbedProvider(caps, driver); - ActiveSessionFactory sessionFactory = new ActiveSessionFactory(NoopTracerFactory.create()) { + ActiveSessionFactory sessionFactory = new ActiveSessionFactory(DefaultTracerFactory.getInstance().get(ActiveSessionFactoryTest.class.getName())) { @Override protected Iterable loadDriverProviders() { return ImmutableSet.of(provider); @@ -62,7 +62,7 @@ protected Iterable loadDriverProviders() { public void canBindNewFactoriesAtRunTime() { ActiveSession session = Mockito.mock(ActiveSession.class); - ActiveSessionFactory sessionFactory = new ActiveSessionFactory(NoopTracerFactory.create()) + ActiveSessionFactory sessionFactory = new ActiveSessionFactory(DefaultTracerFactory.getInstance().get(ActiveSessionFactoryTest.class.getName())) .bind(caps -> "cheese".equals(caps.getBrowserName()), new SessionFactory() {