Documentation ¶
Index ¶
- func ExtractAddress(addr string) (host, port string)
- func GetProtoSize(p any) int
- func ParseFullMethod(fullMethod string) []attribute.KeyValue
- type Meter
- func (m *Meter) GetAttributes() []attribute.KeyValue
- func (m *Meter) RecordStream(ctx context.Context, start time.Time, method string, err error)
- func (m *Meter) RecordUnary(ctx context.Context, p UnaryParams)
- func (m *Meter) StreamClientInterceptor() grpc.StreamClientInterceptor
- func (m *Meter) UnaryClientInterceptor() grpc.UnaryClientInterceptor
- type MeterOpts
- type Option
- type UnaryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAddress ¶
func GetProtoSize ¶
func ParseFullMethod ¶
Types ¶
type Meter ¶
type Meter struct {
// contains filtered or unexported fields
}
func (*Meter) GetAttributes ¶
func (*Meter) RecordStream ¶
func (*Meter) RecordUnary ¶
func (m *Meter) RecordUnary(ctx context.Context, p UnaryParams)
func (*Meter) StreamClientInterceptor ¶
func (m *Meter) StreamClientInterceptor() grpc.StreamClientInterceptor
func (*Meter) UnaryClientInterceptor ¶
func (m *Meter) UnaryClientInterceptor() grpc.UnaryClientInterceptor
Click to show internal directories.
Click to hide internal directories.