Skip to content

Commit 0745c67

Browse files
committed
http
1 parent 085af05 commit 0745c67

File tree

1 file changed

+2
-1
lines changed
  • instrumentation/apache-shenyu-2.4/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apacheshenyu/v2_4

1 file changed

+2
-1
lines changed

instrumentation/apache-shenyu-2.4/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apacheshenyu/v2_4/ShenYuRouteTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension;
1414
import java.lang.reflect.InvocationTargetException;
1515
import java.lang.reflect.Method;
16+
import io.opentelemetry.semconv.HttpAttributes;
1617
import org.apache.shenyu.common.dto.MetaData;
1718
import org.junit.jupiter.api.BeforeAll;
1819
import org.junit.jupiter.api.Test;
@@ -111,7 +112,7 @@ void testUpdateRouter() {
111112
span.hasName("GET /a/b/c")
112113
.hasKind(SpanKind.SERVER)
113114
.hasAttributesSatisfying(
114-
equalTo(AttributeKey.stringKey("http.route"), "/a/b/c"),
115+
equalTo(HttpAttributes.HTTP_ROUTE, "/a/b/c"),
115116
equalTo(META_ID_ATTRIBUTE, "123"),
116117
equalTo(META_ENABLED_ATTRIBUTE, true),
117118
equalTo(METHOD_NAME_ATTRIBUTE, "hello"),

0 commit comments

Comments
 (0)