From c99e0b916643515374270ec111eccfd2f2973ef4 Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Sun, 14 Oct 2018 18:03:48 +0100 Subject: [PATCH] make Trace be a function instead of a method --- mirko.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirko.go b/mirko.go index c7778d1..417e45d 100644 --- a/mirko.go +++ b/mirko.go @@ -113,7 +113,7 @@ func (m *Mirko) Listen() error { return nil } -func (m *Mirko) Trace(ctx context.Context, f string, args ...interface{}) { +func Trace(ctx context.Context, f string, args ...interface{}) { tr, ok := trace.FromContext(ctx) if !ok { fmtd := fmt.Sprintf(f, args...)