metricsware

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package metricsware provides a middleware for recording metrics of different kinds

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleWare

func NewMiddleWare(exporter *metrics.Exporter) Middleware

func (Middleware) RecordBadJSON

func (m Middleware) RecordBadJSON(ctx context.Context)

func (Middleware) RecordBadVerification

func (m Middleware) RecordBadVerification(ctx context.Context)

func (Middleware) RecordDrops

func (m Middleware) RecordDrops(ctx context.Context, drops int)

func (Middleware) RecordErrorLoadingAuthorizedApp

func (m Middleware) RecordErrorLoadingAuthorizedApp(ctx context.Context)

func (Middleware) RecordExportBatcherCreation

func (m Middleware) RecordExportBatcherCreation(ctx context.Context, batches int)

func (Middleware) RecordExportBatcherFailure

func (m Middleware) RecordExportBatcherFailure(ctx context.Context)

func (Middleware) RecordExportBatcherLockContention

func (m Middleware) RecordExportBatcherLockContention(ctx context.Context)

func (Middleware) RecordExportBatcherNoWork

func (m Middleware) RecordExportBatcherNoWork(ctx context.Context)

func (Middleware) RecordExportWorkerBadKeyLength

func (m Middleware) RecordExportWorkerBadKeyLength(ctx context.Context, droppedKeys int)

func (Middleware) RecordExportsCutoffDate

func (m Middleware) RecordExportsCutoffDate(ctx context.Context, cutoff int64)

func (Middleware) RecordExportsDeleteFailed

func (m Middleware) RecordExportsDeleteFailed(ctx context.Context)

func (Middleware) RecordExportsDeleted

func (m Middleware) RecordExportsDeleted(ctx context.Context, deletions int)

func (Middleware) RecordExportsSetupFailed

func (m Middleware) RecordExportsSetupFailed(ctx context.Context)

func (Middleware) RecordExposuresCleanupCutoff

func (m Middleware) RecordExposuresCleanupCutoff(ctx context.Context, cutoff int64)

func (Middleware) RecordExposuresDeleteFailed

func (m Middleware) RecordExposuresDeleteFailed(ctx context.Context)

func (Middleware) RecordExposuresDeleted

func (m Middleware) RecordExposuresDeleted(ctx context.Context, count int64)

func (Middleware) RecordExposuresSetupFailed

func (m Middleware) RecordExposuresSetupFailed(ctx context.Context)

func (Middleware) RecordFetchCount

func (m Middleware) RecordFetchCount(ctx context.Context, count int)

func (Middleware) RecordFetchError

func (m Middleware) RecordFetchError(ctx context.Context)

func (Middleware) RecordFetchFailure

func (m Middleware) RecordFetchFailure(ctx context.Context)

func (Middleware) RecordFetchRegionsExcluded

func (m Middleware) RecordFetchRegionsExcluded(ctx context.Context, excludedRegions int)

func (Middleware) RecordFetchRegionsRequested

func (m Middleware) RecordFetchRegionsRequested(ctx context.Context, requestedRegions int)

func (Middleware) RecordHealthAuthorityNotAuthorized

func (m Middleware) RecordHealthAuthorityNotAuthorized(ctx context.Context)

func (Middleware) RecordInsertions

func (m Middleware) RecordInsertions(ctx context.Context, insertions int)

func (Middleware) RecordInternalErrorDuringFetch

func (m Middleware) RecordInternalErrorDuringFetch(ctx context.Context)

func (Middleware) RecordInvalidAudienceDuringFetch

func (m Middleware) RecordInvalidAudienceDuringFetch(ctx context.Context)

func (Middleware) RecordInvalidFetchAuthToken

func (m Middleware) RecordInvalidFetchAuthToken(ctx context.Context)

func (Middleware) RecordPaddingFailure

func (m Middleware) RecordPaddingFailure(ctx context.Context)

func (Middleware) RecordPullDropped added in v0.11.0

func (m Middleware) RecordPullDropped(ctx context.Context, numDroped int)

func (Middleware) RecordPullInsertions

func (m Middleware) RecordPullInsertions(ctx context.Context, numExposures int)

func (Middleware) RecordPullInvalidRequest

func (m Middleware) RecordPullInvalidRequest(ctx context.Context)

func (Middleware) RecordPullLockContention

func (m Middleware) RecordPullLockContention(ctx context.Context)

func (Middleware) RecordPullRevisions added in v0.11.0

func (m Middleware) RecordPullRevisions(ctx context.Context, numRevised int)

func (Middleware) RecordRegionNotAuthorized

func (m Middleware) RecordRegionNotAuthorized(ctx context.Context)

func (Middleware) RecordRegionNotSpecified

func (m Middleware) RecordRegionNotSpecified(ctx context.Context)

func (Middleware) RecordRevisionKeyCreation

func (m Middleware) RecordRevisionKeyCreation(ctx context.Context)

func (Middleware) RecordRevisionKeyDeletion

func (m Middleware) RecordRevisionKeyDeletion(ctx context.Context, deletions int)

func (Middleware) RecordRevisionTokenIssue

func (m Middleware) RecordRevisionTokenIssue(ctx context.Context, metric string)

func (Middleware) RecordRevisions

func (m Middleware) RecordRevisions(ctx context.Context, revisions int)

func (Middleware) RecordTransformFail

func (m Middleware) RecordTransformFail(ctx context.Context)

func (Middleware) RecordUnauthorizedFetchAttempt

func (m Middleware) RecordUnauthorizedFetchAttempt(ctx context.Context)

func (Middleware) RecordVerificationBypassed

func (m Middleware) RecordVerificationBypassed(ctx context.Context)

Jump to

Keyboard shortcuts

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