net

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
}

func (*NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd

func (i *NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, response RESPONSE, err error) ([]attribute.KeyValue, context.Context)

func (*NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart

func (i *NetworkAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, request REQUEST) ([]attribute.KeyValue, context.Context)

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
}

func (*UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd

func (u *UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attributes []attribute.KeyValue, context context.Context, request REQUEST, response RESPONSE, err error) ([]attribute.KeyValue, context.Context)

func (*UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart

func (u *UrlAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, request REQUEST) ([]attribute.KeyValue, context.Context)

type UrlAttrsGetter

type UrlAttrsGetter[REQUEST any] interface {
	GetUrlScheme(request REQUEST) string
	GetUrlPath(request REQUEST) string
	GetUrlQuery(request REQUEST) string
}

Jump to

Keyboard shortcuts

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