Documentation
¶
Index ¶
- func ClientIP(req *http.Request) string
- func Key() interface{}
- func Service() string
- func Setup(opt ...Option)
- func With(ctx context.Context, req *http.Request, f NewFunc) context.Context
- func WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event
- type IpHeader
- type IpHeaders
- type NewFunc
- type Option
- type TraceFunc
- type Tracing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IpHeader ¶ added in v0.2.0
func RemoteAddr ¶ added in v0.2.0
func RemoteAddr() IpHeader
func XEnvoyExternalAddress ¶ added in v0.2.0
func XEnvoyExternalAddress() IpHeader
func XForwardedFor ¶ added in v0.2.0
func XForwardedFor() IpHeader
type IpHeaders ¶ added in v0.2.0
type IpHeaders []IpHeader
func DefaultIpHeaders ¶ added in v0.2.0
func DefaultIpHeaders() IpHeaders
type Option ¶ added in v0.2.0
type Option func()
func ServiceName ¶ added in v0.2.0
func TraceOption ¶ added in v0.2.0
func WithIpHeaders ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.