Package io.opencensus.contrib.http.util
Class HttpViews
java.lang.Object
io.opencensus.contrib.http.util.HttpViews
A helper class that allows users to register HTTP views easily.
- Since:
- 0.13
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
Register all default client views.(package private) static void
registerAllClientViews
(ViewManager viewManager) static final void
Register all default server views.(package private) static void
registerAllServerViews
(ViewManager viewManager) static final void
Register all default views.(package private) static void
registerAllViews
(ViewManager viewManager)
-
Field Details
-
HTTP_SERVER_VIEWS_SET
-
HTTP_CLIENT_VIEWS_SET
-
-
Constructor Details
-
HttpViews
private HttpViews()
-
-
Method Details
-
registerAllClientViews
public static final void registerAllClientViews()Register all default client views.It is recommended to call this method before doing any HTTP call to avoid missing stats.
- Since:
- 0.13
-
registerAllClientViews
-
registerAllServerViews
public static final void registerAllServerViews()Register all default server views.It is recommended to call this method before doing any HTTP call to avoid missing stats.
- Since:
- 0.13
-
registerAllServerViews
-
registerAllViews
public static final void registerAllViews()Register all default views. Equivalent with callingregisterAllClientViews()
andregisterAllServerViews()
.It is recommended to call this method before doing any HTTP call to avoid missing stats.
- Since:
- 0.13
-
registerAllViews
-