This commit is contained in:
Tyler Benson 2019-11-11 16:25:51 -08:00
parent bff8303e18
commit 53b4e5db19
4 changed files with 4 additions and 1 deletions

View File

@ -94,6 +94,7 @@ class JettyServlet2Test extends HttpServerTest<Server, Servlet2Decorator> {
}
tags {
"servlet.context" "/$CONTEXT"
"servlet.path" endpoint.path
"span.origin.type" TestServlet2.Sync.name
defaultTags(true)

View File

@ -83,7 +83,7 @@ abstract class AbstractServlet3Test<SERVER, CONTEXT> extends HttpServerTest<SERV
}
tags {
"servlet.context" "/$context"
"servlet.path" endpoint.path
"servlet.path" { it == endpoint.path || it == "/dispatch$endpoint.path" }
"span.origin.type" { it == servlet.name || it == ApplicationFilterChain.name }
defaultTags(true)

View File

@ -244,6 +244,7 @@ abstract class JettyDispatchTest extends JettyServlet3Test {
// we can't reliably assert parent or child relationship here since both are tested.
tags {
"servlet.context" "/$context"
"servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path"
"servlet.dispatch" endpoint.path
"span.origin.type" {
it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name

View File

@ -296,6 +296,7 @@ abstract class TomcatDispatchTest extends TomcatServlet3Test {
// we can't reliably assert parent or child relationship here since both are tested.
tags {
"servlet.context" "/$context"
"servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path"
"servlet.dispatch" endpoint.path
"span.origin.type" {
it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name