Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // common Version, _ = tag.NewKey("version") Commit, _ = tag.NewKey("commit") NodeType, _ = tag.NewKey("node_type") FailureType, _ = tag.NewKey("failure_type") Endpoint, _ = tag.NewKey("endpoint") APIInterface, _ = tag.NewKey("api") // to distinguish between gateway api and full node api endpoint calls )
Global Tags
View Source
var ( // common TitanInfo = stats.Int64("info", "Arbitrary counter to tag titan info to", stats.UnitDimensionless) APIRequestDuration = stats.Float64("api/request_duration_ms", "Duration of API requests", stats.UnitMilliseconds) )
Measures
View Source
var ( InfoView = &view.View{ Name: "info", Description: "Titan node information", Measure: TitanInfo, Aggregation: view.LastValue(), TagKeys: []tag.Key{Version, Commit, NodeType}, } APIRequestDurationView = &view.View{ Measure: APIRequestDuration, Aggregation: defaultMillisecondsDistribution, TagKeys: []tag.Key{APIInterface, Endpoint}, } )
View Source
var DefaultViews = func() []*view.View { views := []*view.View{ InfoView, APIRequestDurationView, } views = append(views, rpcmetrics.DefaultViews...) return views }()
DefaultViews is an array of OpenCensus views for metric gathering purposes
Functions ¶
func SinceInMilliseconds ¶
SinceInMilliseconds returns the duration of time since the provide time as a float64.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.