metrics

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackagingTime        = "logs.fb.packaging.time"
	PayloadSendTime      = "logs.fb.payload.send.time"
	TotalSendTime        = "logs.fb.total.send.time"
	PayloadCountPerChunk = "logs.fb.payload.count"
	PayloadSize          = "logs.fb.payload.size"
)

Metrics sent from this plugin

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SendSummaryDuration(metricName string, attributes map[string]interface{}, duration time.Duration)
	SendSummaryValue(metricName string, attributes map[string]interface{}, value float64)
}

func NewClient

func NewClient(nrClientConfig config.NRClientConfig) (Client, error)

Return a new metrics client. If sendMetrics is true and a valid Logs API URL is supplied, a real client is returned. If sendMetrics is true or no Metrics API URL mapping exists for the supplied Logs API URL, a noop client is returned.

Jump to

Keyboard shortcuts

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