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 inherited from class brave.test.ITRemote
BAGGAGE_FIELD, BAGGAGE_FIELD_KEY, currentTraceContext, globalTimeout, propagationFactory, spanHandler, testName, tracing
-
Constructor Summary
Constructors Modifier Constructor Description protected
ITServlet25Container(ServletContainer.ServerController serverController)
-
Method Summary
Modifier and Type Method Description protected abstract void
addFilter(org.eclipse.jetty.servlet.ServletContextHandler handler, javax.servlet.Filter filter)
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.void
canUseSpanAttribute()
Shows that a framework can directly use the "brave.Span" rather than relying on the current span.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()
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_async, notFound, options, readsBaggage_existingTrace, readsBaggage_newTrace, readsBaggage_unsampled, readsRequestAtResponseTime, reportsClientAddress, reportsClientAddress_XForwardedFor, reportsServerKindToZipkin, reusesPropagatedSpanId, samplingDisabled, setsErrorAndHttpStatusOnUncaughtException, setsErrorAndHttpStatusOnUncaughtException_async, setup, spanHandlerSeesError, spanHandlerSeesException_async, supportsPortableCustomization, supportsPortableCustomizationDeprecated
Methods inherited from class brave.test.ITRemote
assertChildOf, assertChildOf, assertChildOf, assertNoError, assertNoErrorTag, assertSameIds, assertSequential, assertSpanInInterval, checkForLeakedScopes, close, currentTraceContextBuilder, newTraceContext, tracingBuilder
-
Constructor Details
-
Method Details
-
currentSpanVisibleToOtherFilters
- Throws:
Exception
-
traceContextVisibleToOtherFilters
- Throws:
Exception
-
canSetCustomRoute
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
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)
-