This is an automated email from the ASF dual-hosted git repository.

zhangliang 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 e14aee96596 Add test cases on 
OpenTelemetryTracingPluginLifecycleServiceTest (#37704)
e14aee96596 is described below

commit e14aee9659674cc65b747ded069f7ef16117444b
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Jan 10 20:25:55 2026 +0800

    Add test cases on OpenTelemetryTracingPluginLifecycleServiceTest (#37704)
---
 .../opentelemetry/OpenTelemetryTracingPluginLifecycleServiceTest.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/agent/plugins/tracing/type/opentelemetry/src/test/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginLifecycleServiceTest.java
 
b/agent/plugins/tracing/type/opentelemetry/src/test/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginLifecycleServiceTest.java
index 22c83cdd293..ed7190b18a6 100644
--- 
a/agent/plugins/tracing/type/opentelemetry/src/test/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginLifecycleServiceTest.java
+++ 
b/agent/plugins/tracing/type/opentelemetry/src/test/java/org/apache/shardingsphere/agent/plugin/tracing/opentelemetry/OpenTelemetryTracingPluginLifecycleServiceTest.java
@@ -24,6 +24,8 @@ import 
org.apache.shardingsphere.infra.util.props.PropertiesBuilder.Property;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Test;
 
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 class OpenTelemetryTracingPluginLifecycleServiceTest {
@@ -42,5 +44,6 @@ class OpenTelemetryTracingPluginLifecycleServiceTest {
                 PropertiesBuilder.build(new 
Property("otel.resource.attributes", "service.name=shardingsphere-agent"), new 
Property("otel.traces.exporter", "zipkin"))), true);
         assertNotNull(GlobalOpenTelemetry.getTracerProvider());
         assertNotNull(GlobalOpenTelemetry.getTracer("shardingsphere-agent"));
+        assertThat(pluginLifecycleService.getType(), is("OpenTelemetry"));
     }
 }

Reply via email to