Class TraceConfigzZPageHandler
java.lang.Object
io.opencensus.contrib.zpages.ZPageHandler
io.opencensus.contrib.zpages.TraceConfigzZPageHandler
HTML page formatter for tracing config. The page displays information about the current active
tracing configuration and allows users to change it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final TraceConfigprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TraceConfigzZPageHandlercreate(TraceConfig traceConfig) voidemitHtml(Map<String, String> queryMap, OutputStream outputStream) Emits the HTML generated page to theoutputStream.private static voidemitStyle(PrintWriter out) private static voidemitTraceParamsTable(TraceParams params, PrintWriter out) Returns the URL path that should be used to register this page.private voidmaybeApplyChanges(Map<String, String> queryMap)
-
Field Details
-
TRACE_CONFIGZ_URL
- See Also:
-
traceConfig
-
CHANGE
- See Also:
-
PERMANENT_CHANGE
- See Also:
-
RESTORE_DEFAULT_CHANGE
- See Also:
-
QUERY_COMPONENT_SAMPLING_PROBABILITY
- See Also:
-
QUERY_COMPONENT_MAX_NUMBER_OF_ATTRIBUTES
- See Also:
-
QUERY_COMPONENT_MAX_NUMBER_OF_ANNOTATIONS
- See Also:
-
QUERY_COMPONENT_MAX_NUMBER_OF_NETWORK_EVENTS
- See Also:
-
QUERY_COMPONENT_MAX_NUMBER_OF_LINKS
- See Also:
-
TRACECONFIGZ_FORM_BODY
- See Also:
-
RESTORE_DEFAULT_FORM_BODY
- See Also:
-
-
Constructor Details
-
TraceConfigzZPageHandler
-
-
Method Details
-
create
-
getUrlPath
Description copied from class:ZPageHandlerReturns the URL path that should be used to register this page.- Specified by:
getUrlPathin classZPageHandler- Returns:
- the URL path that should be used to register this page.
-
emitStyle
-
emitHtml
Description copied from class:ZPageHandlerEmits the HTML generated page to theoutputStream.- Specified by:
emitHtmlin classZPageHandler- Parameters:
queryMap- the query components map.outputStream- the outputOutputStream.
-
maybeApplyChanges
-
emitTraceParamsTable
-