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.
Click to show internal directories.
Click to hide internal directories.