Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ViewLatency = &view.View{ Measure: measureLatency, Aggregation: distMS, TagKeys: []tag.Key{keyOperation, keyHost, keyStatusCode, keyError}, } ViewLength = &view.View{ Measure: measureLength, Aggregation: distLength, TagKeys: []tag.Key{keyOperation, keyHost}, } OpenCensusViews = []*view.View{ ViewLatency, ViewLength, } )
View Source
var ImportPath = importPath()
ImportPath is the canonical import path that allows us to identify official client builds vs modified forks, and use that info in User-Agent header.
Functions ¶
Types ¶
type Option ¶
type Option func(*client)
func WithHTTPClient ¶
func WithHTTPClient(h httpClient) Option
func WithIdentity ¶
func WithProviderInfo ¶
func WithStreamResultsRequired ¶
func WithStreamResultsRequired() Option
func WithUserAgent ¶
type ResponseBodyLimitedTransport ¶
type ResponseBodyLimitedTransport struct { http.RoundTripper LimitBytes int64 UserAgent string }
Click to show internal directories.
Click to hide internal directories.