From dcf04b251c39d8de098e599678ec55d0878903ee Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 30 Nov 2017 16:39:19 +0000 Subject: [PATCH] Add comment --- src/github.com/matrix-org/dendrite/roomserver/api/output.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/api/output.go b/src/github.com/matrix-org/dendrite/roomserver/api/output.go index 3c928202..4f35dbbc 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/api/output.go +++ b/src/github.com/matrix-org/dendrite/roomserver/api/output.go @@ -66,6 +66,8 @@ func (o *OutputEvent) AddSpanFromContext(ctx context.Context) error { return nil } +// StartSpanAndReplaceContext produces a context and opentracing span from the +// info embedded in OutputEvent func (o *OutputEvent) StartSpanAndReplaceContext( ctx context.Context, ) (context.Context, opentracing.Span) {