metrics

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

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

Create the tag keys that will be used to add tags to our measurements. Tag keys must conform to the restrictions described in go.opencensus.io/tag/validate.go. Currently those restrictions are: - length between 1 and 255 inclusive - characters are printable US-ASCII

Functions

func AugmentWithResponse

func AugmentWithResponse(baseCtx context.Context, responseCode int) context.Context

AugmentWithResponse augments the given context with response-code specific tags.

func AugmentWithRevision

func AugmentWithRevision(baseCtx context.Context, ns, svc, cfg, rev string) (context.Context, error)

AugmentWithRevision augments the given context with revision specific tags.

func PodContext

func PodContext(pod, container string) (context.Context, error)

PodContext generate a new base metric reporting context containing the respective pod specific tags.

func PodRevisionContext

func PodRevisionContext(pod, container, ns, svc, cfg, rev string) (context.Context, error)

PodRevisionContext generates a new base metric reporting context containing the respective pod and revision specific tags.

func RevisionContext

func RevisionContext(ns, svc, cfg, rev string) (context.Context, error)

RevisionContext generates a new base metric reporting context containing the respective revision specific tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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