Documentation ¶ Index ¶ Variables func ClientIP(req *http.Request) (clientIP string) func Key() interface{} func Setup(f TraceFunc) func With(ctx context.Context, req *http.Request, f NewFunc) context.Context func WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event type NewFunc type TraceFunc type Tracing Constants ¶ This section is empty. Variables ¶ View Source var Service string Functions ¶ func ClientIP ¶ func ClientIP(req *http.Request) (clientIP string) func Key ¶ func Key() interface{} func Setup ¶ func Setup(f TraceFunc) func With ¶ func With(ctx context.Context, req *http.Request, f NewFunc) context.Context func WithTrace ¶ func WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event Types ¶ type NewFunc ¶ type NewFunc func(ctx context.Context, req *http.Request) Tracing type TraceFunc ¶ type TraceFunc func(ctx context.Context, event *zerolog.Event) *zerolog.Event type Tracing ¶ type Tracing interface { WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event Dump(ctx context.Context, log *zerolog.Event) *zerolog.Event } Source Files ¶ View all Source files tracing.go Click to show internal directories. Click to hide internal directories.