Documentation ¶
Index ¶
- type ClientRpcAttrsExtractor
- func (s *ClientRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
- func (s *ClientRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, ...) ([]attribute.KeyValue, context.Context)
- func (s *ClientRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
- type RpcAttrsExtractor
- func (r *RpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, ...) ([]attribute.KeyValue, context.Context)
- func (r *RpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
- type RpcAttrsGetter
- type RpcSpanNameExtractor
- type ServerRpcAttrsExtractor
- func (s *ServerRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
- func (s *ServerRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, ...) ([]attribute.KeyValue, context.Context)
- func (s *ServerRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientRpcAttrsExtractor ¶
type ClientRpcAttrsExtractor[REQUEST any, RESPONSE any, GETTER RpcAttrsGetter[REQUEST]] struct { Base RpcAttrsExtractor[REQUEST, RESPONSE, GETTER] }
func (*ClientRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey ¶
func (s *ClientRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
type RpcAttrsExtractor ¶
type RpcAttrsExtractor[REQUEST any, RESPONSE any, GETTER RpcAttrsGetter[REQUEST]] struct { Getter GETTER }
type RpcAttrsGetter ¶
type RpcSpanNameExtractor ¶
type RpcSpanNameExtractor[REQUEST any] struct { Getter RpcAttrsGetter[REQUEST] }
func (*RpcSpanNameExtractor[REQUEST]) Extract ¶
func (r *RpcSpanNameExtractor[REQUEST]) Extract(request REQUEST) string
type ServerRpcAttrsExtractor ¶
type ServerRpcAttrsExtractor[REQUEST any, RESPONSE any, GETTER RpcAttrsGetter[REQUEST]] struct { Base RpcAttrsExtractor[REQUEST, RESPONSE, GETTER] }
func (*ServerRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey ¶
func (s *ServerRpcAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
Click to show internal directories.
Click to hide internal directories.