Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RPCInvalidMethod = stats.Int64("rpc/invalid_method", "Total number of invalid RPC methods called", stats.UnitDimensionless) RPCRequestError = stats.Int64("rpc/request_error", "Total number of request errors handled", stats.UnitDimensionless) RPCResponseError = stats.Int64("rpc/response_error", "Total number of responses errors handled", stats.UnitDimensionless) )
Measures
View Source
var ( // All RPC related metrics should at the very least tag the RPCMethod RPCInvalidMethodView = &view.View{ Measure: RPCInvalidMethod, Aggregation: view.Count(), TagKeys: []tag.Key{RPCMethod}, } RPCRequestErrorView = &view.View{ Measure: RPCRequestError, Aggregation: view.Count(), TagKeys: []tag.Key{RPCMethod}, } RPCResponseErrorView = &view.View{ Measure: RPCResponseError, Aggregation: view.Count(), TagKeys: []tag.Key{RPCMethod}, } )
View Source
var DefaultViews = []*view.View{ RPCInvalidMethodView, RPCRequestErrorView, RPCResponseErrorView, }
DefaultViews is an array of OpenCensus views for metric gathering purposes
View Source
var (
RPCMethod, _ = tag.NewKey("method")
)
Global Tags
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.