Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopMeasure = func(_ MetricType, _ MetricName, _ int64) {}
NoopMeasure no-op Measure function type.
Functions ¶
Types ¶
type Instrumenter ¶
type Instrumenter interface { GetHandler() http.Handler Measure(metricType MetricType, name MetricName, val int64) GetHttpTransport(base http.RoundTripper) http.RoundTripper }
func New ¶
func New() (Instrumenter, error)
New creates a new instrumentation bundle (exporter + measure fn...).
type Measure ¶
type Measure func(metricType MetricType, name MetricName, val int64)
type MetricName ¶
type MetricName int
const ( DMRequestsForwarded MetricName = iota // integration payload received DMDatasetsReceived EntityRegisterEntitiesRegistered EntityRegisterEntitiesRegisteredWithWarning EntityRegisterEntitiesRegistrationFailed LoggedErrors )
Click to show internal directories.
Click to hide internal directories.