Documentation ¶
Index ¶
- type DetailedMetricsEngine
- type DummyMetricsEngine
- func (me *DummyMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *DummyMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- func (me *DummyMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, ...)
- func (me *DummyMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
- func (me *DummyMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)
- func (me *DummyMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)
- func (me *DummyMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
- func (me *DummyMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)
- func (me *DummyMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
- func (me *DummyMetricsEngine) RecordConnectionAccept(success bool)
- func (me *DummyMetricsEngine) RecordConnectionClose(success bool)
- func (me *DummyMetricsEngine) RecordCookieSync()
- func (me *DummyMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)
- func (me *DummyMetricsEngine) RecordImps(implabels metrics.ImpLabels)
- func (me *DummyMetricsEngine) RecordLegacyImps(labels metrics.Labels, numImps int)
- func (me *DummyMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)
- func (me *DummyMetricsEngine) RecordRequest(labels metrics.Labels)
- func (me *DummyMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
- func (me *DummyMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)
- func (me *DummyMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)
- func (me *DummyMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)
- func (me *DummyMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
- func (me *DummyMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *DummyMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *DummyMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)
- func (me *DummyMetricsEngine) RecordTimeoutNotice(success bool)
- func (me *DummyMetricsEngine) RecordUserIDSet(userLabels metrics.UserLabels)
- type MultiMetricsEngine
- func (me *MultiMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *MultiMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- func (me *MultiMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, ...)
- func (me *MultiMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
- func (me *MultiMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)
- func (me *MultiMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)
- func (me *MultiMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
- func (me *MultiMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)
- func (me *MultiMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
- func (me *MultiMetricsEngine) RecordConnectionAccept(success bool)
- func (me *MultiMetricsEngine) RecordConnectionClose(success bool)
- func (me *MultiMetricsEngine) RecordCookieSync()
- func (me *MultiMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)
- func (me *MultiMetricsEngine) RecordImps(implabels metrics.ImpLabels)
- func (me *MultiMetricsEngine) RecordLegacyImps(labels metrics.Labels, numImps int)
- func (me *MultiMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)
- func (me *MultiMetricsEngine) RecordRequest(labels metrics.Labels)
- func (me *MultiMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
- func (me *MultiMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)
- func (me *MultiMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)
- func (me *MultiMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)
- func (me *MultiMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
- func (me *MultiMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *MultiMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
- func (me *MultiMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)
- func (me *MultiMetricsEngine) RecordTimeoutNotice(success bool)
- func (me *MultiMetricsEngine) RecordUserIDSet(userLabels metrics.UserLabels)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailedMetricsEngine ¶
type DetailedMetricsEngine struct { metrics.MetricsEngine GoMetrics *metrics.Metrics PrometheusMetrics *prometheusmetrics.Metrics }
DetailedMetricsEngine is a MultiMetricsEngine that preserves links to underlying metrics engines.
func NewMetricsEngine ¶
func NewMetricsEngine(cfg *config.Configuration, adapterList []openrtb_ext.BidderName) *DetailedMetricsEngine
NewMetricsEngine reads the configuration and returns the appropriate metrics engine for this instance.
type DummyMetricsEngine ¶
type DummyMetricsEngine struct{}
DummyMetricsEngine is a Noop metrics engine in case no metrics are configured. (may also be useful for tests)
func (*DummyMetricsEngine) RecordAccountCacheResult ¶
func (me *DummyMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
RecordAccountCacheResult as a noop
func (*DummyMetricsEngine) RecordAdapterBidReceived ¶
func (me *DummyMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
RecordAdapterBidReceived as a noop
func (*DummyMetricsEngine) RecordAdapterConnections ¶
func (me *DummyMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, connWaitTime time.Duration)
RecordAdapterConnections as a noop
func (*DummyMetricsEngine) RecordAdapterCookieSync ¶
func (me *DummyMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
RecordAdapterCookieSync as a noop
func (*DummyMetricsEngine) RecordAdapterGDPRRequestBlocked ¶
func (me *DummyMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)
RecordAdapterGDPRRequestBlocked as a noop
func (*DummyMetricsEngine) RecordAdapterPanic ¶
func (me *DummyMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)
RecordAdapterPanic as a noop
func (*DummyMetricsEngine) RecordAdapterPrice ¶
func (me *DummyMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
RecordAdapterPrice as a noop
func (*DummyMetricsEngine) RecordAdapterRequest ¶
func (me *DummyMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)
RecordAdapterRequest as a noop
func (*DummyMetricsEngine) RecordAdapterTime ¶
func (me *DummyMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
RecordAdapterTime as a noop
func (*DummyMetricsEngine) RecordConnectionAccept ¶
func (me *DummyMetricsEngine) RecordConnectionAccept(success bool)
RecordConnectionAccept as a noop
func (*DummyMetricsEngine) RecordConnectionClose ¶
func (me *DummyMetricsEngine) RecordConnectionClose(success bool)
RecordConnectionClose as a noop
func (*DummyMetricsEngine) RecordCookieSync ¶
func (me *DummyMetricsEngine) RecordCookieSync()
RecordCookieSync as a noop
func (*DummyMetricsEngine) RecordDNSTime ¶
func (me *DummyMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)
RecordDNSTime as a noop
func (*DummyMetricsEngine) RecordImps ¶
func (me *DummyMetricsEngine) RecordImps(implabels metrics.ImpLabels)
RecordImps as a noop
func (*DummyMetricsEngine) RecordLegacyImps ¶
func (me *DummyMetricsEngine) RecordLegacyImps(labels metrics.Labels, numImps int)
RecordLegacyImps as a noop
func (*DummyMetricsEngine) RecordPrebidCacheRequestTime ¶
func (me *DummyMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)
RecordPrebidCacheRequestTime as a noop
func (*DummyMetricsEngine) RecordRequest ¶
func (me *DummyMetricsEngine) RecordRequest(labels metrics.Labels)
RecordRequest as a noop
func (*DummyMetricsEngine) RecordRequestPrivacy ¶
func (me *DummyMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
RecordRequestPrivacy as a noop
func (*DummyMetricsEngine) RecordRequestQueueTime ¶
func (me *DummyMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)
RecordRequestQueueTime as a noop
func (*DummyMetricsEngine) RecordRequestTime ¶
func (me *DummyMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)
RecordRequestTime as a noop
func (*DummyMetricsEngine) RecordStoredDataError ¶
func (me *DummyMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)
RecordStoredDataError as a noop
func (*DummyMetricsEngine) RecordStoredDataFetchTime ¶
func (me *DummyMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
RecordStoredDataFetchTime as a noop
func (*DummyMetricsEngine) RecordStoredImpCacheResult ¶
func (me *DummyMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
RecordStoredImpCacheResult as a noop
func (*DummyMetricsEngine) RecordStoredReqCacheResult ¶
func (me *DummyMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
RecordStoredReqCacheResult as a noop
func (*DummyMetricsEngine) RecordTLSHandshakeTime ¶
func (me *DummyMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)
RecordTLSHandshakeTime as a noop
func (*DummyMetricsEngine) RecordTimeoutNotice ¶
func (me *DummyMetricsEngine) RecordTimeoutNotice(success bool)
RecordTimeoutNotice as a noop
func (*DummyMetricsEngine) RecordUserIDSet ¶
func (me *DummyMetricsEngine) RecordUserIDSet(userLabels metrics.UserLabels)
RecordUserIDSet as a noop
type MultiMetricsEngine ¶
type MultiMetricsEngine []metrics.MetricsEngine
MultiMetricsEngine logs metrics to multiple metrics databases The can be useful in transitioning an instance from one engine to another, you can run both in parallel to verify stats match up.
func (*MultiMetricsEngine) RecordAccountCacheResult ¶
func (me *MultiMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
RecordAccountCacheResult across all engines
func (*MultiMetricsEngine) RecordAdapterBidReceived ¶
func (me *MultiMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
RecordAdapterBidReceived across all engines
func (*MultiMetricsEngine) RecordAdapterConnections ¶
func (me *MultiMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, connWaitTime time.Duration)
Keeps track of created and reused connections to adapter bidders and the time from the connection request, to the connection creation, or reuse from the pool across all engines
func (*MultiMetricsEngine) RecordAdapterCookieSync ¶
func (me *MultiMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
RecordAdapterCookieSync across all engines
func (*MultiMetricsEngine) RecordAdapterGDPRRequestBlocked ¶
func (me *MultiMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)
RecordAdapterGDPRRequestBlocked across all engines
func (*MultiMetricsEngine) RecordAdapterPanic ¶
func (me *MultiMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)
RecordAdapterPanic across all engines
func (*MultiMetricsEngine) RecordAdapterPrice ¶
func (me *MultiMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
RecordAdapterPrice across all engines
func (*MultiMetricsEngine) RecordAdapterRequest ¶
func (me *MultiMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)
RecordAdapterRequest across all engines
func (*MultiMetricsEngine) RecordAdapterTime ¶
func (me *MultiMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
RecordAdapterTime across all engines
func (*MultiMetricsEngine) RecordConnectionAccept ¶
func (me *MultiMetricsEngine) RecordConnectionAccept(success bool)
func (*MultiMetricsEngine) RecordConnectionClose ¶
func (me *MultiMetricsEngine) RecordConnectionClose(success bool)
func (*MultiMetricsEngine) RecordCookieSync ¶
func (me *MultiMetricsEngine) RecordCookieSync()
RecordCookieSync across all engines
func (*MultiMetricsEngine) RecordDNSTime ¶
func (me *MultiMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)
Times the DNS resolution process
func (*MultiMetricsEngine) RecordImps ¶
func (me *MultiMetricsEngine) RecordImps(implabels metrics.ImpLabels)
RecordsImps records imps with imp types across all metric engines
func (*MultiMetricsEngine) RecordLegacyImps ¶
func (me *MultiMetricsEngine) RecordLegacyImps(labels metrics.Labels, numImps int)
RecordImps for the legacy endpoint
func (*MultiMetricsEngine) RecordPrebidCacheRequestTime ¶
func (me *MultiMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)
RecordPrebidCacheRequestTime across all engines
func (*MultiMetricsEngine) RecordRequest ¶
func (me *MultiMetricsEngine) RecordRequest(labels metrics.Labels)
RecordRequest across all engines
func (*MultiMetricsEngine) RecordRequestPrivacy ¶
func (me *MultiMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
RecordRequestPrivacy across all engines
func (*MultiMetricsEngine) RecordRequestQueueTime ¶
func (me *MultiMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)
RecordRequestQueueTime across all engines
func (*MultiMetricsEngine) RecordRequestTime ¶
func (me *MultiMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)
RecordRequestTime across all engines
func (*MultiMetricsEngine) RecordStoredDataError ¶
func (me *MultiMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)
RecordStoredDataError across all engines
func (*MultiMetricsEngine) RecordStoredDataFetchTime ¶
func (me *MultiMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
RecordStoredDataFetchTime across all engines
func (*MultiMetricsEngine) RecordStoredImpCacheResult ¶
func (me *MultiMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
RecordStoredImpCacheResult across all engines
func (*MultiMetricsEngine) RecordStoredReqCacheResult ¶
func (me *MultiMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
RecordStoredReqCacheResult across all engines
func (*MultiMetricsEngine) RecordTLSHandshakeTime ¶
func (me *MultiMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)
func (*MultiMetricsEngine) RecordTimeoutNotice ¶
func (me *MultiMetricsEngine) RecordTimeoutNotice(success bool)
RecordTimeoutNotice across all engines
func (*MultiMetricsEngine) RecordUserIDSet ¶
func (me *MultiMetricsEngine) RecordUserIDSet(userLabels metrics.UserLabels)
RecordUserIDSet across all engines