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