func NewTraceMsg(m *nats.Msg) *TraceMsg {
	b := bytes.NewBuffer(m.Data)
	return &TraceMsg{*b}
}
NewTraceMsg creates a trace msg from a NATS message's data payload.
package not
import (
	"bytes"
	"fmt"
	"io"
	"log"
	"time"
	"github.com/nats-io/nats.go"
	"github.com/opentracing/opentracing-go"
	"github.com/uber/jaeger-lib/metrics"
	jaeger "github.com/uber/jaeger-client-go"
	jaegercfg "github.com/uber/jaeger-client-go/config"
	jaegerlog "github.com/uber/jaeger-client-go/log"
)
type TraceMsg struct {
	bytes.Buffer
}