Documentation
¶
Index ¶
- Constants
- func Log(msg string, keyValuePairs ...string)
- func LogWithLevel(lvl provider.Severity, msg string, keyValuePairs ...string)
- func Meter(ctx context.Context, metric string, args ...string)
- func Provider(providerType provider.ProviderType) (interface{}, bool)
- func ReportError(e error)
- type Observer
Constants ¶
View Source
const (
MsgMissingProvider = "provider '%s' required"
)
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider(providerType provider.ProviderType) (interface{}, bool)
Provider returns the registered provider instance if it is defined. The bool flag is set to true if there is a provider and false otherwise.
func ReportError ¶
func ReportError(e error)
ReportError reports error e using the current platform's error reporting provider
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
func DefaultObserver ¶
func DefaultObserver() *Observer
DefaultObserver returns the current default observer.
func (*Observer) RegisterProviders ¶
func (p *Observer) RegisterProviders(ignoreExists bool, opts ...provider.ProviderConfig) error
RegisterProviders registers one or more providers. An existing provider will be overwritten if ignoreExists is true, otherwise the function returns an error.
Click to show internal directories.
Click to hide internal directories.