observability

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package observability provides tools for working with open census.

Index

Constants

View Source
const (
	MetricRoot = "en-verification-server"
)

Variables

View Source
var (
	BuildIDTagKey  = tag.MustNewKey("build_id")
	BuildTagTagKey = tag.MustNewKey("build_tag")

	KnativeServiceTagKey       = tag.MustNewKey("k_service")
	KnativeRevisionTagKey      = tag.MustNewKey("k_revision")
	KnativeConfigurationTagKey = tag.MustNewKey("k_configuration")

	RealmTagKey = tag.MustNewKey("realm")
)

Functions

func CommonTagKeys added in v0.11.0

func CommonTagKeys() []tag.Key

CommonTagKeys returns the slice of common tag keys that should used in all views.

func WithBuildInfo added in v0.11.0

func WithBuildInfo(octx context.Context) context.Context

WithBuildInfo creates a new context with the build and revision info attached to the observability context.

func WithRealmID added in v0.11.0

func WithRealmID(octx context.Context, realmID uint) context.Context

WithRealmID creates a new context with the realm id attached to the observability context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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