Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Observer ¶
type Observer interface { Debug(ctx context.Context, message string, fields ...Field) Error(ctx context.Context, message string, err error, fields ...Field) Panic(ctx context.Context, message string, stack []byte, fields ...Field) }
Observer is a type that is used to make a service observable.
func FromContext ¶
FromContext returns the Observer value stored in ctx, if any. If a value is not found, a nop Observer is returned.
Click to show internal directories.
Click to hide internal directories.