Documentation ¶
Overview ¶
Package oc supports OpenCensus tracing and metrics for the Go Cloud Development Kit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MethodKey = tag.MustNewKey("gocdk_method") StatusKey = tag.MustNewKey("gocdk_status") ProviderKey = tag.MustNewKey("gocdk_provider") )
Tag keys used for the standard Go CDK views.
Functions ¶
func LatencyMeasure ¶
func LatencyMeasure(pkg string) *stats.Float64Measure
LatencyMeasure returns the measure for method call latency used by Go CDK APIs.
func ProviderName ¶
func ProviderName(driver interface{}) string
ProviderName returns the name of the provider associated with the driver value. It is intended to be used to set Tracer.Provider. It actually returns the package path of the driver's type.
Types ¶
Click to show internal directories.
Click to hide internal directories.