We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f32b9 commit f22cc26Copy full SHA for f22cc26
config/src/test/java/com/megaease/easeagent/config/OtelSdkConfigsTest.java
@@ -18,6 +18,7 @@
18
package com.megaease.easeagent.config;
19
20
import com.megaease.easeagent.plugin.utils.SystemEnv;
21
+import org.junit.After;
22
import org.junit.Assert;
23
import org.junit.Test;
24
@@ -26,6 +27,15 @@
26
27
28
public class OtelSdkConfigsTest {
29
30
+ @After
31
+ public void after() {
32
+ SystemEnv.set("OTEL_RESOURCE_ATTRIBUTES", null);
33
+ SystemEnv.set("OTEL_SERVICE_NAME", null);
34
+ SystemEnv.set("OTEL_SERVICE_NAMESPACE", null);
35
+ System.clearProperty("otel.service.name");
36
+ System.clearProperty("otel.service.namespace");
37
+ }
38
+
39
@Test
40
public void updateEnvCfg() {
41
//value from system env "OTEL_RESOURCE_ATTRIBUTES
0 commit comments