monitoring

package
v2.0.0-...-571da87 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WrapperBuilder

type WrapperBuilder interface {
	// Build builds monitor.Reporter
	Build(bricksBuilder monitor.Builder) monitor.Reporter
	// DoOnError is a helper function to act when receiving an error during Metric creation
	DoOnError(onError func(error)) WrapperBuilder
	// AddExtractors adds ContextExtractors that might override tag values when calling metric functions
	AddExtractors(extractors ...monitor.ContextExtractor) WrapperBuilder
	// SetTags saves defaults tags, these tags will always be included in every metric
	SetTags(tags monitor.Tags) WrapperBuilder
}

WrapperBuilder is a helper builder to define internal Bricks monitoring wrapper

func Builder

func Builder() WrapperBuilder

Builder creates a WrapperBuilder

Jump to

Keyboard shortcuts

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