metrics

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Count = &view.View{
		Name:        "maps.googleapis.com/client/count",
		Description: "Request Counts",
		TagKeys:     []tag.Key{requestName, apiStatus, httpCode, metroArea},
		Measure:     latency_measure,
		Aggregation: view.Count(),
	}

	Latency = &view.View{
		Name:        "maps.googleapis.com/client/request_latency",
		Description: "Total time between library method called and results returned",
		TagKeys:     []tag.Key{requestName, apiStatus, httpCode, metroArea},
		Measure:     latency_measure,
		Aggregation: view.Distribution(20.0, 25.2, 31.7, 40.0, 50.4, 63.5, 80.0, 100.8, 127.0, 160.0, 201.6, 254.0, 320.0, 403.2, 508.0, 640.0, 806.3, 1015.9, 1280.0, 1612.7, 2031.9, 2560.0, 3225.4, 4063.7),
	}
)

Functions

func RegisterViews

func RegisterViews() error

Types

type NoOpReporter

type NoOpReporter struct {
}

func (NoOpReporter) NewRequest

func (n NoOpReporter) NewRequest(name string) Request

type OpenCensusReporter

type OpenCensusReporter struct {
}

func (OpenCensusReporter) NewRequest

func (o OpenCensusReporter) NewRequest(name string) Request

type Reporter

type Reporter interface {
	NewRequest(name string) Request
}

type Request

type Request interface {
	EndRequest(ctx context.Context, err error, httpResp *http.Response, metro string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL