This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 56838957978 Remove AgentSPI (#22999)
56838957978 is described below
commit 56838957978ebdc0f0ecebd8fdd9e7ae295dbcfb
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Dec 20 21:34:22 2022 +0800
Remove AgentSPI (#22999)
* Remove AgentSPI
* Refactor PluginBootServiceRegistry
* Update PluginBootService
---
.../apache/shardingsphere/agent/spi/AgentSPI.java | 31 ---------------
.../agent/spi/{plugin => }/PluginBootService.java | 12 ++++--
.../core/plugin/PluginBootServiceManager.java | 7 ++--
.../plugin/loader/AdvisorConfigurationLoader.java | 8 ++--
...egistry.java => PluginBootServiceRegistry.java} | 34 ++++++++++------
.../agent/core/spi/PluginServiceLoader.java | 46 ----------------------
.../logging/base/BaseLoggingPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
.../prometheus/PrometheusPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
.../jaeger/JaegerTracingPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
.../OpenTelemetryTracingPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
.../opentracing/OpenTracingPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
.../zipkin/ZipkinTracingPluginBootService.java | 2 +-
...che.shardingsphere.agent.spi.PluginBootService} | 0
18 files changed, 45 insertions(+), 105 deletions(-)
diff --git
a/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/AgentSPI.java
b/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/AgentSPI.java
deleted file mode 100644
index 15fdb16eb58..00000000000
--- a/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/AgentSPI.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.agent.spi;
-
-/**
- * Agent SPI.
- */
-public interface AgentSPI {
-
- /**
- * Get type.
- *
- * @return type
- */
- String getType();
-}
diff --git
a/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/plugin/PluginBootService.java
b/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/PluginBootService.java
similarity index 85%
rename from
agent/api/src/main/java/org/apache/shardingsphere/agent/spi/plugin/PluginBootService.java
rename to
agent/api/src/main/java/org/apache/shardingsphere/agent/spi/PluginBootService.java
index 876e4be62a2..5f21a712060 100644
---
a/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/plugin/PluginBootService.java
+++
b/agent/api/src/main/java/org/apache/shardingsphere/agent/spi/PluginBootService.java
@@ -15,15 +15,14 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.agent.spi.plugin;
+package org.apache.shardingsphere.agent.spi;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
-import org.apache.shardingsphere.agent.spi.AgentSPI;
/**
* Plugin boot service that the lifecycle is from the agent start to shutdown.
*/
-public interface PluginBootService extends AgentSPI, AutoCloseable {
+public interface PluginBootService extends AutoCloseable {
/**
* Start plugin boot service.
@@ -32,4 +31,11 @@ public interface PluginBootService extends AgentSPI,
AutoCloseable {
* @param isEnhancedForProxy is enhanced for proxy
*/
void start(PluginConfiguration pluginConfig, boolean isEnhancedForProxy);
+
+ /**
+ * Get plugin type.
+ *
+ * @return plugin type
+ */
+ String getType();
}
diff --git
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/PluginBootServiceManager.java
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/PluginBootServiceManager.java
index 19937e0e3d5..8e14e3fe4cd 100644
---
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/PluginBootServiceManager.java
+++
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/PluginBootServiceManager.java
@@ -22,8 +22,7 @@ import lombok.NoArgsConstructor;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
import org.apache.shardingsphere.agent.core.logging.LoggerFactory;
import org.apache.shardingsphere.agent.core.logging.LoggerFactory.Logger;
-import org.apache.shardingsphere.agent.core.spi.AgentSPIRegistry;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.core.spi.PluginBootServiceRegistry;
import java.io.IOException;
import java.util.Collection;
@@ -50,7 +49,7 @@ public final class PluginBootServiceManager {
try {
Thread.currentThread().setContextClassLoader(classLoader);
for (Entry<String, PluginConfiguration> entry :
pluginConfigs.entrySet()) {
- AgentSPIRegistry.getRegisteredService(PluginBootService.class,
entry.getKey()).ifPresent(optional -> {
+
PluginBootServiceRegistry.getRegisteredService(entry.getKey()).ifPresent(optional
-> {
try {
LOGGER.info("Start plugin: {}", optional.getType());
optional.start(entry.getValue(), isEnhancedForProxy);
@@ -72,7 +71,7 @@ public final class PluginBootServiceManager {
* @param pluginJars plugin jars
*/
public static void closeAllServices(final Collection<PluginJar>
pluginJars) {
-
AgentSPIRegistry.getAllRegisteredServices(PluginBootService.class).forEach(each
-> {
+ PluginBootServiceRegistry.getAllRegisteredServices().forEach(each -> {
try {
each.close();
// CHECKSTYLE:OFF
diff --git
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/loader/AdvisorConfigurationLoader.java
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/loader/AdvisorConfigurationLoader.java
index 6017a9bd5cf..a78c45699b4 100644
---
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/loader/AdvisorConfigurationLoader.java
+++
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/loader/AdvisorConfigurationLoader.java
@@ -25,8 +25,8 @@ import
org.apache.shardingsphere.agent.core.classloader.AgentClassLoader;
import org.apache.shardingsphere.agent.core.plugin.PluginJar;
import
org.apache.shardingsphere.agent.core.plugin.yaml.loader.YamlAdvisorsConfigurationLoader;
import
org.apache.shardingsphere.agent.core.plugin.yaml.swapper.YamlAdvisorsConfigurationSwapper;
-import org.apache.shardingsphere.agent.core.spi.PluginServiceLoader;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.core.spi.PluginBootServiceRegistry;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
import java.io.InputStream;
import java.util.Collection;
@@ -47,12 +47,12 @@ public final class AdvisorConfigurationLoader {
* @param pluginJars plugin jars
* @param pluginTypes plugin types
* @param isEnhancedForProxy is enhanced for proxy
- * @return loaded advisor configurations
+ * @return loaded configurations
*/
public static Map<String, AdvisorConfiguration> load(final
Collection<PluginJar> pluginJars, final Collection<String> pluginTypes, final
boolean isEnhancedForProxy) {
Map<String, AdvisorConfiguration> result = new HashMap<>();
AgentClassLoader.init(pluginJars);
- for (PluginBootService each :
PluginServiceLoader.newServiceInstances(PluginBootService.class,
AgentClassLoader.getClassLoader())) {
+ for (PluginBootService each :
PluginBootServiceRegistry.newInstances(AgentClassLoader.getClassLoader())) {
if (pluginTypes.contains(each.getType())) {
Collection<AdvisorConfiguration> advisorConfigs =
YamlAdvisorsConfigurationSwapper
.swapToObject(YamlAdvisorsConfigurationLoader.load(getAdvisorsResourceStream(each,
isEnhancedForProxy)), each.getType());
diff --git
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentSPIRegistry.java
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginBootServiceRegistry.java
similarity index 53%
rename from
agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentSPIRegistry.java
rename to
agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginBootServiceRegistry.java
index 829a1178fc3..c5a5acb782a 100644
---
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentSPIRegistry.java
+++
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginBootServiceRegistry.java
@@ -19,37 +19,49 @@ package org.apache.shardingsphere.agent.core.spi;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
-import org.apache.shardingsphere.agent.spi.AgentSPI;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
import java.util.Collection;
+import java.util.LinkedList;
import java.util.Optional;
+import java.util.ServiceLoader;
/**
- * Agent SPI registry.
+ * Plugin boot service registry.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class AgentSPIRegistry {
+public final class PluginBootServiceRegistry {
/**
* Get registered service.
*
- * @param typedSPIClass typed SPI class
* @param type type
- * @param <T> type of agent typed SPI
* @return registered service
*/
- public static <T extends AgentSPI> Optional<T> getRegisteredService(final
Class<T> typedSPIClass, final String type) {
- return
AgentServiceLoader.getServiceLoader(typedSPIClass).newServiceInstances().stream().filter(each
-> each.getType().equalsIgnoreCase(type)).findFirst();
+ public static Optional<PluginBootService> getRegisteredService(final
String type) {
+ return
AgentServiceLoader.getServiceLoader(PluginBootService.class).newServiceInstances().stream().filter(each
-> each.getType().equalsIgnoreCase(type)).findFirst();
}
/**
* Get all registered services.
*
- * @param typedSPIClass typed SPI class
- * @param <T> type of agent typed SPI
* @return registered services
*/
- public static <T extends AgentSPI> Collection<T>
getAllRegisteredServices(final Class<T> typedSPIClass) {
- return
AgentServiceLoader.getServiceLoader(typedSPIClass).newServiceInstances();
+ public static Collection<PluginBootService> getAllRegisteredServices() {
+ return
AgentServiceLoader.getServiceLoader(PluginBootService.class).newServiceInstances();
+ }
+
+ /**
+ * Create new instances.
+ *
+ * @param classLoader class loader
+ * @return created instances
+ */
+ public static Collection<PluginBootService> newInstances(final ClassLoader
classLoader) {
+ Collection<PluginBootService> result = new LinkedList<>();
+ for (PluginBootService each :
ServiceLoader.load(PluginBootService.class, classLoader)) {
+ result.add(each);
+ }
+ return result;
}
}
diff --git
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginServiceLoader.java
b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginServiceLoader.java
deleted file mode 100644
index 19914321920..00000000000
---
a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/PluginServiceLoader.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.agent.core.spi;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.ServiceLoader;
-
-/**
- * Plugin service loader.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class PluginServiceLoader {
-
- /**
- * New service instances.
- *
- * @param service service type
- * @param <T> type of class
- * @param classLoader class loader
- * @return service instances
- */
- public static <T> Collection<T> newServiceInstances(final Class<T>
service, final ClassLoader classLoader) {
- Collection<T> result = new LinkedList<>();
- ServiceLoader.load(service, classLoader).forEach(result::add);
- return result;
- }
-}
diff --git
a/agent/plugins/logging/base/src/main/java/org/apache/shardingsphere/agent/plugin/logging/base/BaseLoggingPluginBootService.java
b/agent/plugins/logging/base/src/main/java/org/apache/shardingsphere/agent/plugin/logging/base/BaseLoggingPluginBootService.java
index 870fbf0eb36..08e5f5ac360 100644
---
a/agent/plugins/logging/base/src/main/java/org/apache/shardingsphere/agent/plugin/logging/base/BaseLoggingPluginBootService.java
+++
b/agent/plugins/logging/base/src/main/java/org/apache/shardingsphere/agent/plugin/logging/base/BaseLoggingPluginBootService.java
@@ -18,7 +18,7 @@
package org.apache.shardingsphere.agent.plugin.logging.base;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
/**
* Base logging plugin boot service.
diff --git
a/agent/plugins/logging/base/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/logging/base/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/logging/base/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/logging/base/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
diff --git
a/agent/plugins/metrics/type/prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/PrometheusPluginBootService.java
b/agent/plugins/metrics/type/prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/PrometheusPluginBootService.java
index a3d37d52433..5b71aadb142 100644
---
a/agent/plugins/metrics/type/prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/PrometheusPluginBootService.java
+++
b/agent/plugins/metrics/type/prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/PrometheusPluginBootService.java
@@ -29,7 +29,7 @@ import
org.apache.shardingsphere.agent.metrics.prometheus.collector.BuildInfoCol
import
org.apache.shardingsphere.agent.metrics.prometheus.collector.MetaDataInfoCollector;
import
org.apache.shardingsphere.agent.metrics.prometheus.collector.ProxyInfoCollector;
import
org.apache.shardingsphere.agent.metrics.prometheus.wrapper.PrometheusWrapperFactory;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
import java.io.IOException;
import java.net.InetSocketAddress;
diff --git
a/agent/plugins/metrics/type/prometheus/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/metrics/type/prometheus/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/metrics/type/prometheus/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/metrics/type/prometheus/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
diff --git
a/agent/plugins/tracing/type/jaeger/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/jaeger/JaegerTracingPluginBootService.java
b/agent/plugins/tracing/type/jaeger/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/jaeger/JaegerTracingPluginBootService.java
index 6776997219f..d222f53e48c 100644
---
a/agent/plugins/tracing/type/jaeger/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/jaeger/JaegerTracingPluginBootService.java
+++
b/agent/plugins/tracing/type/jaeger/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/jaeger/JaegerTracingPluginBootService.java
@@ -21,7 +21,7 @@ import io.jaegertracing.Configuration;
import io.opentracing.util.GlobalTracer;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
import
org.apache.shardingsphere.agent.core.config.validator.RemotePluginConfigurationValidator;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
import java.util.Optional;
diff --git
a/agent/plugins/tracing/type/jaeger/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/tracing/type/jaeger/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/tracing/type/jaeger/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/tracing/type/jaeger/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
diff --git
a/agent/plugins/tracing/type/opentelemetry/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginBootService.java
b/agent/plugins/tracing/type/opentelemetry/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginBootService.java
index 592d6cf0d44..5d66279a1a4 100644
---
a/agent/plugins/tracing/type/opentelemetry/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginBootService.java
+++
b/agent/plugins/tracing/type/opentelemetry/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginBootService.java
@@ -20,7 +20,7 @@ package
org.apache.shardingsphere.agent.plugin.tracing.opentelemetry;
import io.opentelemetry.sdk.OpenTelemetrySdk;
import io.opentelemetry.sdk.autoconfigure.OpenTelemetrySdkAutoConfiguration;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
public class OpenTelemetryTracingPluginBootService implements
PluginBootService {
diff --git
a/agent/plugins/tracing/type/opentelemetry/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/tracing/type/opentelemetry/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/tracing/type/opentelemetry/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/tracing/type/opentelemetry/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
diff --git
a/agent/plugins/tracing/type/opentracing/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentracing/OpenTracingPluginBootService.java
b/agent/plugins/tracing/type/opentracing/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentracing/OpenTracingPluginBootService.java
index 2f902bf61ad..6efc943677c 100644
---
a/agent/plugins/tracing/type/opentracing/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentracing/OpenTracingPluginBootService.java
+++
b/agent/plugins/tracing/type/opentracing/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/opentracing/OpenTracingPluginBootService.java
@@ -21,7 +21,7 @@ import com.google.common.base.Preconditions;
import io.opentracing.Tracer;
import io.opentracing.util.GlobalTracer;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
/**
* Open tracing plugin boot service.
diff --git
a/agent/plugins/tracing/type/opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/tracing/type/opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/tracing/type/opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/tracing/type/opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
diff --git
a/agent/plugins/tracing/type/zipkin/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/zipkin/ZipkinTracingPluginBootService.java
b/agent/plugins/tracing/type/zipkin/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/zipkin/ZipkinTracingPluginBootService.java
index 46eaff43211..4947cbec90e 100644
---
a/agent/plugins/tracing/type/zipkin/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/zipkin/ZipkinTracingPluginBootService.java
+++
b/agent/plugins/tracing/type/zipkin/src/main/java/org/apache/shardingsphere/agent/plugin/tracing/zipkin/ZipkinTracingPluginBootService.java
@@ -23,7 +23,7 @@ import brave.sampler.RateLimitingSampler;
import brave.sampler.Sampler;
import org.apache.shardingsphere.agent.config.plugin.PluginConfiguration;
import
org.apache.shardingsphere.agent.core.config.validator.RemotePluginConfigurationValidator;
-import org.apache.shardingsphere.agent.spi.plugin.PluginBootService;
+import org.apache.shardingsphere.agent.spi.PluginBootService;
import zipkin2.reporter.brave.AsyncZipkinSpanHandler;
import zipkin2.reporter.okhttp3.OkHttpSender;
diff --git
a/agent/plugins/tracing/type/zipkin/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
b/agent/plugins/tracing/type/zipkin/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService
similarity index 100%
rename from
agent/plugins/tracing/type/zipkin/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.plugin.PluginBootService
rename to
agent/plugins/tracing/type/zipkin/src/main/resources/META-INF/services/org.apache.shardingsphere.agent.spi.PluginBootService