From 662c09420118fe63e298d85b7d38852208b93c68 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 29 Jun 2022 21:09:48 -0700 Subject: [PATCH] Don't add reporter twice --- trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace.go b/trace.go index 464e8cf..886f89f 100644 --- a/trace.go +++ b/trace.go @@ -47,7 +47,7 @@ func WithTrace(path string) Option { func WithTraceReporter(reporter TraceReporter) Option { return func(r *resourceManager) error { if r.trace == nil { - r.trace = &trace{reporters: []TraceReporter{reporter}} + r.trace = &trace{} } r.trace.reporters = append(r.trace.reporters, reporter) return nil