Add comment

This commit is contained in:
Erik Johnston 2017-11-30 16:39:19 +00:00
parent d843b51554
commit dcf04b251c

View file

@ -66,6 +66,8 @@ func (o *OutputEvent) AddSpanFromContext(ctx context.Context) error {
return nil return nil
} }
// StartSpanAndReplaceContext produces a context and opentracing span from the
// info embedded in OutputEvent
func (o *OutputEvent) StartSpanAndReplaceContext( func (o *OutputEvent) StartSpanAndReplaceContext(
ctx context.Context, ctx context.Context,
) (context.Context, opentracing.Span) { ) (context.Context, opentracing.Span) {