diff --git a/plugin/trace/trace.go b/plugin/trace/trace.go index 84076126a07..167a5a37645 100644 --- a/plugin/trace/trace.go +++ b/plugin/trace/trace.go @@ -29,6 +29,8 @@ const ( ) type trace struct { + count uint64 // as per Go spec, needs to be first element in a struct + Next plugin.Handler Endpoint string EndpointType string @@ -37,7 +39,6 @@ type trace struct { serviceName string clientServer bool every uint64 - count uint64 Once sync.Once }