Package io.opencensus.contrib.zpages
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 String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final TraceConfig
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TraceConfigzZPageHandler
create
(TraceConfig traceConfig) void
emitHtml
(Map<String, String> queryMap, OutputStream outputStream) Emits the HTML generated page to theoutputStream
.private static void
emitStyle
(PrintWriter out) private static void
emitTraceParamsTable
(TraceParams params, PrintWriter out) Returns the URL path that should be used to register this page.private void
maybeApplyChanges
(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:ZPageHandler
Returns the URL path that should be used to register this page.- Specified by:
getUrlPath
in classZPageHandler
- Returns:
- the URL path that should be used to register this page.
-
emitStyle
-
emitHtml
Description copied from class:ZPageHandler
Emits the HTML generated page to theoutputStream
.- Specified by:
emitHtml
in classZPageHandler
- Parameters:
queryMap
- the query components map.outputStream
- the outputOutputStream
.
-
maybeApplyChanges
-
emitTraceParamsTable
-