configtelemetry

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 57

Documentation

Overview

Package configtelemetry defines various telemetry level for configuration. It enables every component to have access to telemetry level to enable metrics only when necessary.

Index

Constants

View Source
const UseOpenTelemetryForInternalMetrics = false

Variables

This section is empty.

Functions

func Flags added in v0.15.0

func Flags(*flag.FlagSet)

Flags is a helper function to add telemetry config flags to the service that exposes the application flags. Deprecated: No-op, kept for backwards compatibility until v0.44.0.

Types

type Level

type Level int32

Level is the level of internal telemetry (metrics, logs, traces about the component itself) that every component should generate.

const (
	// LevelNone indicates that no telemetry data should be collected.
	LevelNone Level = iota - 1
	// LevelBasic is the recommended and covers the basics of the service telemetry.
	LevelBasic
	// LevelNormal adds some other indicators on top of basic.
	LevelNormal
	// LevelDetailed adds dimensions and views to the previous levels.
	LevelDetailed
)

func (*Level) Set deprecated added in v0.15.0

func (l *Level) Set(s string) error

Deprecated: will be removed in v0.44.0.

func (Level) String added in v0.15.0

func (l Level) String() string

func (*Level) UnmarshalText added in v0.42.0

func (l *Level) UnmarshalText(text []byte) error

UnmarshalText unmarshals text to a Level.

Jump to

Keyboard shortcuts

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