wrapper

package
v3.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 added in v3.2.12

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

func NewClientWrapper added in v3.2.12

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

func NewHandlerWrapper added in v3.2.12

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

func NewSubscriberWrapper added in v3.2.12

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

Types

type Option added in v3.2.12

type Option func(*Options)

func Meter added in v3.2.12

func Meter(m meter.Meter) Option

func ServiceID added in v3.2.12

func ServiceID(id string) Option

func ServiceName added in v3.2.12

func ServiceName(name string) Option

func ServiceVersion added in v3.2.12

func ServiceVersion(version string) Option

func SkipEndoints added in v3.3.3

func SkipEndoints(eps ...string) Option

type Options added in v3.2.12

type Options struct {
	Meter meter.Meter

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

func NewOptions added in v3.2.12

func NewOptions(opts ...Option) Options

Jump to

Keyboard shortcuts

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