observability

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 5 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 (
	RealmTagKey     = tag.MustNewKey("realm")
	ErrorCodeTagKey = tag.MustNewKey("error_code")
)

Functions

func APITagKeys added in v0.12.0

func APITagKeys() []tag.Key

APITagKeys return a slice of tag.Key with common tag keys + additional API specific tag keys.

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 WithErrorCode added in v1.1.0

func WithErrorCode(octx context.Context, errorCode string) context.Context

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

func WithRealmID added in v0.11.0

func WithRealmID(octx context.Context, realmID uint64) 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