Documentation ¶
Index ¶
- func LoggerFrom(ctx context.Context, keyvals ...interface{}) kitlog.Logger
- func StartSpan(ctx context.Context, name string, opts ...trace.StartOption) (context.Context, *trace.Span, kitlog.Logger)
- func WithLogger(ctx context.Context, logger kitlog.Logger, keyvals ...interface{}) (context.Context, kitlog.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerFrom ¶ added in v0.6.0
LoggerFrom retrieves the stashed logger from a context, as put there by WithLogger
func StartSpan ¶ added in v0.6.0
func StartSpan(ctx context.Context, name string, opts ...trace.StartOption) (context.Context, *trace.Span, kitlog.Logger)
StartSpan extends the opencensus method so it stashes a logger into the context, and annotates the logger with the current trace ID. If a logger was never provided, we use a no-op logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.