config

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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, syncerKeys []string, moduleStageNames map[string][]string) *DetailedMetricsEngine

NewMetricsEngine reads the configuration and returns the appropriate metrics engine for this instance.

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) RecordAdapterBuyerUIDScrubbed added in v2.15.0

func (me *MultiMetricsEngine) RecordAdapterBuyerUIDScrubbed(adapter openrtb_ext.BidderName)

RecordAdapterBuyerUIDScrubbed 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) 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) RecordAdsCertReq

func (me *MultiMetricsEngine) RecordAdsCertReq(success bool)

func (*MultiMetricsEngine) RecordAdsCertSignTime

func (me *MultiMetricsEngine) RecordAdsCertSignTime(adsCertSignTime time.Duration)

func (*MultiMetricsEngine) RecordBidValidationCreativeSizeError

func (me *MultiMetricsEngine) RecordBidValidationCreativeSizeError(adapter openrtb_ext.BidderName, account string)

func (*MultiMetricsEngine) RecordBidValidationCreativeSizeWarn

func (me *MultiMetricsEngine) RecordBidValidationCreativeSizeWarn(adapter openrtb_ext.BidderName, account string)

func (*MultiMetricsEngine) RecordBidValidationSecureMarkupError

func (me *MultiMetricsEngine) RecordBidValidationSecureMarkupError(adapter openrtb_ext.BidderName, account string)

func (*MultiMetricsEngine) RecordBidValidationSecureMarkupWarn

func (me *MultiMetricsEngine) RecordBidValidationSecureMarkupWarn(adapter openrtb_ext.BidderName, account string)

func (*MultiMetricsEngine) RecordBidderServerResponseTime

func (me *MultiMetricsEngine) RecordBidderServerResponseTime(bidderServerResponseTime time.Duration)

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(status metrics.CookieSyncStatus)

RecordCookieSync across all engines

func (*MultiMetricsEngine) RecordDNSTime

func (me *MultiMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)

Times the DNS resolution process

func (*MultiMetricsEngine) RecordDebugRequest

func (me *MultiMetricsEngine) RecordDebugRequest(debugEnabled bool, pubId string)

RecordDebugRequest across all engines

func (*MultiMetricsEngine) RecordImps

func (me *MultiMetricsEngine) RecordImps(implabels metrics.ImpLabels)

RecordsImps records imps with imp types across all metric engines

func (*MultiMetricsEngine) RecordModuleCalled

func (me *MultiMetricsEngine) RecordModuleCalled(labels metrics.ModuleLabels, duration time.Duration)

func (*MultiMetricsEngine) RecordModuleExecutionError

func (me *MultiMetricsEngine) RecordModuleExecutionError(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordModuleFailed

func (me *MultiMetricsEngine) RecordModuleFailed(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordModuleSuccessNooped

func (me *MultiMetricsEngine) RecordModuleSuccessNooped(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordModuleSuccessRejected

func (me *MultiMetricsEngine) RecordModuleSuccessRejected(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordModuleSuccessUpdated

func (me *MultiMetricsEngine) RecordModuleSuccessUpdated(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordModuleTimeout

func (me *MultiMetricsEngine) RecordModuleTimeout(labels metrics.ModuleLabels)

func (*MultiMetricsEngine) RecordOverheadTime

func (me *MultiMetricsEngine) RecordOverheadTime(overhead metrics.OverheadType, length time.Duration)

RecordOverheadTime across all engines

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) RecordSetUid

func (me *MultiMetricsEngine) RecordSetUid(status metrics.SetUidStatus)

RecordSetUid 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) RecordStoredResponse

func (me *MultiMetricsEngine) RecordStoredResponse(pubId string)

func (*MultiMetricsEngine) RecordSyncerRequest

func (me *MultiMetricsEngine) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)

RecordSyncerRequest across all engines

func (*MultiMetricsEngine) RecordSyncerSet

func (me *MultiMetricsEngine) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)

RecordSyncerSet across all engines

func (*MultiMetricsEngine) RecordTLSHandshakeTime

func (me *MultiMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)

func (*MultiMetricsEngine) RecordTMaxTimeout

func (me *MultiMetricsEngine) RecordTMaxTimeout()

func (*MultiMetricsEngine) RecordTimeoutNotice

func (me *MultiMetricsEngine) RecordTimeoutNotice(success bool)

RecordTimeoutNotice across all engines

type NilMetricsEngine

type NilMetricsEngine struct{}

NilMetricsEngine implements the MetricsEngine interface where no metrics are actually captured. This is used if no metric backend is configured and also for tests.

func (*NilMetricsEngine) RecordAccountCacheResult

func (me *NilMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)

RecordAccountCacheResult as a noop

func (*NilMetricsEngine) RecordAdapterBidReceived

func (me *NilMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)

RecordAdapterBidReceived as a noop

func (*NilMetricsEngine) RecordAdapterBuyerUIDScrubbed added in v2.15.0

func (me *NilMetricsEngine) RecordAdapterBuyerUIDScrubbed(adapter openrtb_ext.BidderName)

RecordAdapterBuyerUIDScrubbed as a noop

func (*NilMetricsEngine) RecordAdapterConnections

func (me *NilMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, connWaitTime time.Duration)

RecordAdapterConnections as a noop

func (*NilMetricsEngine) RecordAdapterGDPRRequestBlocked

func (me *NilMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)

RecordAdapterGDPRRequestBlocked as a noop

func (*NilMetricsEngine) RecordAdapterPanic

func (me *NilMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)

RecordAdapterPanic as a noop

func (*NilMetricsEngine) RecordAdapterPrice

func (me *NilMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)

RecordAdapterPrice as a noop

func (*NilMetricsEngine) RecordAdapterRequest

func (me *NilMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)

RecordAdapterRequest as a noop

func (*NilMetricsEngine) RecordAdapterTime

func (me *NilMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)

RecordAdapterTime as a noop

func (*NilMetricsEngine) RecordAdsCertReq

func (me *NilMetricsEngine) RecordAdsCertReq(success bool)

func (*NilMetricsEngine) RecordAdsCertSignTime

func (me *NilMetricsEngine) RecordAdsCertSignTime(adsCertSignTime time.Duration)

func (*NilMetricsEngine) RecordBidValidationCreativeSizeError

func (me *NilMetricsEngine) RecordBidValidationCreativeSizeError(adapter openrtb_ext.BidderName, account string)

func (*NilMetricsEngine) RecordBidValidationCreativeSizeWarn

func (me *NilMetricsEngine) RecordBidValidationCreativeSizeWarn(adapter openrtb_ext.BidderName, account string)

func (*NilMetricsEngine) RecordBidValidationSecureMarkupError

func (me *NilMetricsEngine) RecordBidValidationSecureMarkupError(adapter openrtb_ext.BidderName, account string)

func (*NilMetricsEngine) RecordBidValidationSecureMarkupWarn

func (me *NilMetricsEngine) RecordBidValidationSecureMarkupWarn(adapter openrtb_ext.BidderName, account string)

func (*NilMetricsEngine) RecordBidderServerResponseTime

func (me *NilMetricsEngine) RecordBidderServerResponseTime(bidderServerResponseTime time.Duration)

RecordBidderServerResponseTime as a noop

func (*NilMetricsEngine) RecordConnectionAccept

func (me *NilMetricsEngine) RecordConnectionAccept(success bool)

RecordConnectionAccept as a noop

func (*NilMetricsEngine) RecordConnectionClose

func (me *NilMetricsEngine) RecordConnectionClose(success bool)

RecordConnectionClose as a noop

func (*NilMetricsEngine) RecordCookieSync

func (me *NilMetricsEngine) RecordCookieSync(status metrics.CookieSyncStatus)

RecordCookieSync as a noop

func (*NilMetricsEngine) RecordDNSTime

func (me *NilMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)

RecordDNSTime as a noop

func (*NilMetricsEngine) RecordDebugRequest

func (me *NilMetricsEngine) RecordDebugRequest(debugEnabled bool, pubId string)

RecordDebugRequest as a noop

func (*NilMetricsEngine) RecordImps

func (me *NilMetricsEngine) RecordImps(implabels metrics.ImpLabels)

RecordImps as a noop

func (*NilMetricsEngine) RecordModuleCalled

func (me *NilMetricsEngine) RecordModuleCalled(labels metrics.ModuleLabels, duration time.Duration)

func (*NilMetricsEngine) RecordModuleExecutionError

func (me *NilMetricsEngine) RecordModuleExecutionError(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordModuleFailed

func (me *NilMetricsEngine) RecordModuleFailed(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordModuleSuccessNooped

func (me *NilMetricsEngine) RecordModuleSuccessNooped(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordModuleSuccessRejected

func (me *NilMetricsEngine) RecordModuleSuccessRejected(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordModuleSuccessUpdated

func (me *NilMetricsEngine) RecordModuleSuccessUpdated(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordModuleTimeout

func (me *NilMetricsEngine) RecordModuleTimeout(labels metrics.ModuleLabels)

func (*NilMetricsEngine) RecordOverheadTime

func (me *NilMetricsEngine) RecordOverheadTime(overhead metrics.OverheadType, length time.Duration)

RecordOverheadTime as a noop

func (*NilMetricsEngine) RecordPrebidCacheRequestTime

func (me *NilMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)

RecordPrebidCacheRequestTime as a noop

func (*NilMetricsEngine) RecordRequest

func (me *NilMetricsEngine) RecordRequest(labels metrics.Labels)

RecordRequest as a noop

func (*NilMetricsEngine) RecordRequestPrivacy

func (me *NilMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)

RecordRequestPrivacy as a noop

func (*NilMetricsEngine) RecordRequestQueueTime

func (me *NilMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)

RecordRequestQueueTime as a noop

func (*NilMetricsEngine) RecordRequestTime

func (me *NilMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)

RecordRequestTime as a noop

func (*NilMetricsEngine) RecordSetUid

func (me *NilMetricsEngine) RecordSetUid(status metrics.SetUidStatus)

RecordSetUid as a noop

func (*NilMetricsEngine) RecordStoredDataError

func (me *NilMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)

RecordStoredDataError as a noop

func (*NilMetricsEngine) RecordStoredDataFetchTime

func (me *NilMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)

RecordStoredDataFetchTime as a noop

func (*NilMetricsEngine) RecordStoredImpCacheResult

func (me *NilMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)

RecordStoredImpCacheResult as a noop

func (*NilMetricsEngine) RecordStoredReqCacheResult

func (me *NilMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)

RecordStoredReqCacheResult as a noop

func (*NilMetricsEngine) RecordStoredResponse

func (me *NilMetricsEngine) RecordStoredResponse(pubId string)

func (*NilMetricsEngine) RecordSyncerRequest

func (me *NilMetricsEngine) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)

RecordSyncerRequest as a noop

func (*NilMetricsEngine) RecordSyncerSet

func (me *NilMetricsEngine) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)

RecordSyncerSet as a noop

func (*NilMetricsEngine) RecordTLSHandshakeTime

func (me *NilMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)

RecordTLSHandshakeTime as a noop

func (*NilMetricsEngine) RecordTMaxTimeout

func (me *NilMetricsEngine) RecordTMaxTimeout()

RecordTMaxTimeout as a noop

func (*NilMetricsEngine) RecordTimeoutNotice

func (me *NilMetricsEngine) RecordTimeoutNotice(success bool)

RecordTimeoutNotice as a noop

Jump to

Keyboard shortcuts

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