Documentation ¶
Index ¶
- type NetworkAttrsExtractor
- func (i *NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, ...) ([]attribute.KeyValue, context.Context)
- func (i *NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
- type NetworkAttrsGetter
- type UrlAttrsExtractor
- func (u *UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, ...) ([]attribute.KeyValue, context.Context)
- func (u *UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
- type UrlAttrsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkAttrsExtractor ¶
type NetworkAttrsExtractor[REQUEST any, RESPONSE any, GETTER NetworkAttrsGetter[REQUEST, RESPONSE]] struct { Getter GETTER }
type NetworkAttrsGetter ¶
type NetworkAttrsGetter[REQUEST any, RESPONSE any] interface { GetNetworkType(request REQUEST, response RESPONSE) string GetNetworkTransport(request REQUEST, response RESPONSE) string GetNetworkProtocolName(request REQUEST, response RESPONSE) string GetNetworkProtocolVersion(request REQUEST, response RESPONSE) string GetNetworkLocalInetAddress(request REQUEST, response RESPONSE) string GetNetworkLocalPort(request REQUEST, response RESPONSE) int GetNetworkPeerInetAddress(request REQUEST, response RESPONSE) string GetNetworkPeerPort(request REQUEST, response RESPONSE) int }
type UrlAttrsExtractor ¶
type UrlAttrsExtractor[REQUEST any, RESPONSE any, GETTER UrlAttrsGetter[REQUEST]] struct { Getter GETTER }
Click to show internal directories.
Click to hide internal directories.