tracer: dont return noop from context

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-07 22:46:47 +03:00
parent 0854a7ea72
commit 7d68f2396e
3 changed files with 16 additions and 14 deletions

View File

@@ -35,6 +35,7 @@ type noopSpan struct {
ctx context.Context
tracer Tracer
name string
labels []Label
}
func (s *noopSpan) Finish(opts ...SpanOption) {
@@ -56,6 +57,7 @@ func (s *noopSpan) SetName(name string) {
}
func (s *noopSpan) SetLabels(labels ...Label) {
s.labels = labels
}
// NewTracer returns new memory tracer