package
1.0.11
Repository: https://github.com/rookie-ninja/rk-entry.git
Documentation: pkg.go.dev

# Functions

Internal use only.
GetServerMetricsSet server metrics set.
NewAfterCtx create new AfterCtx with fields initialized.
NewBeforeCtx create new BeforeCtx with fields initialized.
NewMetricsSet creates metrics set with namespace, subSystem and registerer.
NewOptionSet Create new optionSet with options.
NewOptionSetMock for testing purpose.
ToOptions convert BootConfig into Option list.
WithEntryNameAndType provide entry name and entry type.
WithIgnorePrefix provide paths prefix that will ignore.
WithLabelerType provide Labeler which will init metrics based on that.
WithMockOptionSet provide mock OptionSetInterface.
WithRegisterer provide prometheus.Registerer.

# Constants

LabelerTypeGrpc type of labeler.
LabelerTypeHttp type of labeler.
MetricsNameElapsedNano records RPC duration.
MetricsNameResCode records response code.

# Variables

SummaryObjectives will track quantile of P50, P90, P99, P9999 by default.

# Structs

AfterCtx context for After() function.
BeforeCtx context for Before() function.
BootConfig for YAML.
MetricsSet is a collections of counter, gauge, summary, histogram and link to certain registerer.

# Interfaces

OptionSetInterface mainly for testing purpose.

# Type aliases

Option options provided to Interceptor or optionsSet while creating.