wrapper

package
v3.8.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientRequestDurationSeconds     = "client_request_duration_seconds"
	ClientRequestLatencyMicroseconds = "client_request_latency_microseconds"
	ClientRequestTotal               = "client_request_total"
	ClientRequestInflight            = "client_request_inflight"

	ServerRequestDurationSeconds     = "server_request_duration_seconds"
	ServerRequestLatencyMicroseconds = "server_request_latency_microseconds"
	ServerRequestTotal               = "server_request_total"
	ServerRequestInflight            = "server_request_inflight"

	PublishMessageDurationSeconds     = "publish_message_duration_seconds"
	PublishMessageLatencyMicroseconds = "publish_message_latency_microseconds"
	PublishMessageTotal               = "publish_message_total"
	PublishMessageInflight            = "publish_message_inflight"

	SubscribeMessageDurationSeconds     = "subscribe_message_duration_seconds"
	SubscribeMessageLatencyMicroseconds = "subscribe_message_latency_microseconds"
	SubscribeMessageTotal               = "subscribe_message_total"
	SubscribeMessageInflight            = "subscribe_message_inflight"

	// DefaultSkipEndpoints contains list of endpoints that not evaluted by wrapper
	DefaultSkipEndpoints = []string{"Meter.Metrics"}
)

Functions

func NewCallWrapper

func NewCallWrapper(opts ...Option) client.CallWrapper

func NewClientWrapper

func NewClientWrapper(opts ...Option) client.Wrapper

func NewHandlerWrapper

func NewHandlerWrapper(opts ...Option) server.HandlerWrapper

func NewSubscriberWrapper

func NewSubscriberWrapper(opts ...Option) server.SubscriberWrapper

Types

type Option

type Option func(*Options)

func Meter

func Meter(m meter.Meter) Option

func ServiceID

func ServiceID(id string) Option

func ServiceName

func ServiceName(name string) Option

func ServiceVersion

func ServiceVersion(version string) Option

func SkipEndoints

func SkipEndoints(eps ...string) Option

type Options

type Options struct {
	Meter meter.Meter

	SkipEndpoints []string
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...Option) Options

Jump to

Keyboard shortcuts

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