Fix some tests
This commit is contained in:
parent
fd75575796
commit
a04cc15ce8
|
@ -113,7 +113,6 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport, Servlet3Decor
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -103,7 +103,6 @@ class GlassFishServerTest extends HttpServerTest<GlassFish, Servlet3Decorator> {
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_STATUS" endpoint.status
|
||||
|
|
|
@ -4,15 +4,16 @@ import datadog.trace.api.DDSpanTypes
|
|||
import datadog.trace.api.DDTags
|
||||
import datadog.trace.bootstrap.instrumentation.api.Tags
|
||||
import datadog.trace.instrumentation.jetty8.JettyDecorator
|
||||
import javax.servlet.DispatcherType
|
||||
import javax.servlet.ServletException
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
import javax.servlet.http.HttpServletResponse
|
||||
import org.eclipse.jetty.server.Request
|
||||
import org.eclipse.jetty.server.Server
|
||||
import org.eclipse.jetty.server.handler.AbstractHandler
|
||||
import org.eclipse.jetty.server.handler.ErrorHandler
|
||||
|
||||
import javax.servlet.DispatcherType
|
||||
import javax.servlet.ServletException
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
import javax.servlet.http.HttpServletResponse
|
||||
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.EXCEPTION
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.NOT_FOUND
|
||||
|
@ -131,7 +132,6 @@ class JettyHandlerTest extends HttpServerTest<Server, JettyDecorator> {
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -96,7 +96,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
|
||||
|
@ -172,7 +171,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/getQuery.jsp"
|
||||
|
@ -245,7 +243,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/post.jsp"
|
||||
|
@ -315,7 +312,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
|
||||
|
@ -406,7 +402,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/includes/includeHtml.jsp"
|
||||
|
@ -475,7 +470,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/includes/includeMulti.jsp"
|
||||
|
@ -600,7 +594,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
|
||||
|
@ -664,7 +657,6 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$staticFile"
|
||||
|
|
|
@ -95,7 +95,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$forwardFromFileName"
|
||||
|
@ -198,7 +197,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToHtml.jsp"
|
||||
|
@ -267,7 +265,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToIncludeMulti.jsp"
|
||||
|
@ -423,7 +420,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToJspForward.jsp"
|
||||
|
@ -550,7 +546,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToCompileError.jsp"
|
||||
|
@ -636,7 +631,6 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "java-web-servlet"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToNonExistent.jsp"
|
||||
|
|
|
@ -72,7 +72,6 @@ class RatpackOtherTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "$app.address.host"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
|
||||
|
@ -91,7 +90,7 @@ class RatpackOtherTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "ratpack"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "$app.address.host"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
|
||||
"$Tags.HTTP_METHOD" "GET"
|
||||
|
|
|
@ -117,7 +117,6 @@ class RatpackHttpServerTest extends HttpServerTest<EmbeddedApp, NettyHttpServerD
|
|||
tags {
|
||||
"$Tags.COMPONENT" RatpackServerDecorator.DECORATE.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" String
|
||||
|
|
|
@ -4,11 +4,12 @@ import datadog.trace.api.DDSpanTypes
|
|||
import datadog.trace.api.DDTags
|
||||
import datadog.trace.bootstrap.instrumentation.api.Tags
|
||||
import datadog.trace.instrumentation.servlet2.Servlet2Decorator
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
import org.eclipse.jetty.server.Server
|
||||
import org.eclipse.jetty.server.handler.ErrorHandler
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler
|
||||
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.EXCEPTION
|
||||
|
@ -97,7 +98,6 @@ class JettyServlet2Test extends HttpServerTest<Server, Servlet2Decorator> {
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
// No peer port
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -4,10 +4,11 @@ import datadog.trace.api.DDSpanTypes
|
|||
import datadog.trace.api.DDTags
|
||||
import datadog.trace.bootstrap.instrumentation.api.Tags
|
||||
import datadog.trace.instrumentation.servlet3.Servlet3Decorator
|
||||
import javax.servlet.Servlet
|
||||
import okhttp3.Request
|
||||
import org.apache.catalina.core.ApplicationFilterChain
|
||||
|
||||
import javax.servlet.Servlet
|
||||
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.EXCEPTION
|
||||
|
@ -86,7 +87,6 @@ abstract class AbstractServlet3Test<SERVER, CONTEXT> extends HttpServerTest<SERV
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -5,12 +5,13 @@ import datadog.trace.api.DDTags
|
|||
import datadog.trace.bootstrap.instrumentation.api.Tags
|
||||
import groovy.transform.stc.ClosureParams
|
||||
import groovy.transform.stc.SimpleType
|
||||
import javax.servlet.Servlet
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
import org.eclipse.jetty.server.Server
|
||||
import org.eclipse.jetty.server.handler.ErrorHandler
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler
|
||||
|
||||
import javax.servlet.Servlet
|
||||
import javax.servlet.http.HttpServletRequest
|
||||
|
||||
import static datadog.trace.agent.test.asserts.TraceAssert.assertTrace
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
|
||||
|
@ -253,7 +254,6 @@ abstract class JettyDispatchTest extends JettyServlet3Test {
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -6,7 +6,6 @@ import datadog.trace.api.DDTags
|
|||
import datadog.trace.bootstrap.instrumentation.api.Tags
|
||||
import groovy.transform.stc.ClosureParams
|
||||
import groovy.transform.stc.SimpleType
|
||||
import javax.servlet.Servlet
|
||||
import org.apache.catalina.Context
|
||||
import org.apache.catalina.connector.Request
|
||||
import org.apache.catalina.connector.Response
|
||||
|
@ -17,6 +16,8 @@ import org.apache.catalina.valves.ErrorReportValve
|
|||
import org.apache.tomcat.JarScanFilter
|
||||
import org.apache.tomcat.JarScanType
|
||||
|
||||
import javax.servlet.Servlet
|
||||
|
||||
import static datadog.trace.agent.test.asserts.TraceAssert.assertTrace
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED
|
||||
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
|
||||
|
@ -304,7 +305,6 @@ abstract class TomcatDispatchTest extends TomcatServlet3Test {
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -53,7 +53,6 @@ class SparkJavaBasedTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "jetty-handler"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "127.0.0.1"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "http://localhost:$port/param/asdf1234"
|
||||
|
|
|
@ -84,7 +84,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -158,7 +157,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -219,7 +217,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -284,7 +281,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -327,7 +323,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -401,7 +396,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
@ -451,7 +445,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" finalUrl
|
||||
|
@ -514,7 +507,6 @@ class SpringWebfluxTest extends AgentTestRunner {
|
|||
tags {
|
||||
"$Tags.COMPONENT" "netty"
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" "localhost"
|
||||
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" url
|
||||
|
|
|
@ -128,7 +128,6 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext,
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
|
@ -526,7 +526,6 @@ abstract class HttpServerTest<SERVER, DECORATOR extends HttpServerDecorator> ext
|
|||
tags {
|
||||
"$Tags.COMPONENT" serverDecorator.component()
|
||||
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
|
||||
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
|
||||
"$Tags.PEER_PORT" Integer
|
||||
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
|
||||
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
|
||||
|
|
Loading…
Reference in New Issue