Package brave.test.http
Class ITServlet25Container
- java.lang.Object
-
- brave.test.ITRemote
-
- brave.test.http.ITHttpServer
-
- brave.test.http.ITServletContainer
-
- brave.test.http.ITServlet25Container
-
- Direct Known Subclasses:
ITServlet3Container
public abstract class ITServlet25Container extends ITServletContainer
-
-
Field Summary
Fields Modifier and Type Field Description static javax.servlet.UnavailableException
NOT_READY_UE
-
Fields inherited from class brave.test.http.ITHttpServer
client, httpTracing, NOT_READY_ISE
-
Fields inherited from class brave.test.ITRemote
BAGGAGE_FIELD, BAGGAGE_FIELD_KEY, currentTraceContext, propagationFactory, testName, testSpanHandler, tracing
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ITServlet25Container(ServletContainer.ServerController serverController)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addFilter(org.eclipse.jetty.servlet.ServletContextHandler handler, javax.servlet.Filter filter)
protected void
canSetCustomRoute()
Shows that by adding the request attribute "http.route" a layered framework can influence any derived from the route, including the span name.protected void
canUseSpanAttribute()
Shows that a framework can directly use the "brave.Span" rather than relying on the current span.protected void
currentSpanVisibleToOtherFilters()
void
init(org.eclipse.jetty.servlet.ServletContextHandler handler)
Implement by registering a servlet for the test resource and anything needed for tracingprotected abstract javax.servlet.Filter
newTracingFilter()
protected void
traceContextVisibleToOtherFilters()
-
Methods inherited from class brave.test.http.ITServletContainer
init, newServletContainer, stop, url
-
Methods inherited from class brave.test.http.ITHttpServer
addsStatusCode_badRequest, async, childCompletesBeforeServer, createsChildSpan, createsChildWhenJoinDisabled, customSampler, defaultSpanNameIsMethodNameOrRoute, get, get, httpPathTagExcludesQueryParams, httpRoute, httpRoute_async, httpRoute_nested, httpStatusCodeSettable_onUncaughtException, httpStatusCodeSettable_onUncaughtException_async, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException_async, notFound, options, readsBaggage_existingTrace, readsBaggage_newTrace, readsBaggage_unsampled, readsRequestAtResponseTime, reportsClientAddress, reportsClientAddress_XForwardedFor, reportsServerKindToZipkin, reusesPropagatedSpanId, samplingDisabled, setsErrorAndHttpStatusOnUncaughtException, setsErrorAndHttpStatusOnUncaughtException_async, setup, spanHandlerSeesError, spanHandlerSeesError_async, supportsPortableCustomization
-
Methods inherited from class brave.test.ITRemote
assertChildOf, assertChildOf, assertChildOf, assertNoError, assertNoErrorTag, assertSameIds, assertSequential, assertSpanInInterval, checkForLeakedScopes, close, currentTraceContextBuilder, newTraceContext, tracingBuilder
-
-
-
-
Constructor Detail
-
ITServlet25Container
protected ITServlet25Container(ServletContainer.ServerController serverController)
-
-
Method Detail
-
currentSpanVisibleToOtherFilters
@Test protected void currentSpanVisibleToOtherFilters() throws Exception
- Throws:
Exception
-
traceContextVisibleToOtherFilters
@Test protected void traceContextVisibleToOtherFilters() throws Exception
- Throws:
Exception
-
canSetCustomRoute
@Test protected void canSetCustomRoute() throws Exception
Shows that by adding the request attribute "http.route" a layered framework can influence any derived from the route, including the span name.- Throws:
Exception
-
canUseSpanAttribute
@Test protected void canUseSpanAttribute() throws Exception
Shows that a framework can directly use the "brave.Span" rather than relying on the current span.- Throws:
Exception
-
init
public void init(org.eclipse.jetty.servlet.ServletContextHandler handler)
Description copied from class:ITServletContainer
Implement by registering a servlet for the test resource and anything needed for tracing- Specified by:
init
in classITServletContainer
-
newTracingFilter
protected abstract javax.servlet.Filter newTracingFilter()
-
addFilter
protected abstract void addFilter(org.eclipse.jetty.servlet.ServletContextHandler handler, javax.servlet.Filter filter)
-
-