Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2020 v1.0.0 Aug 24, 2018 Changes in this version + const HeaderKey + func Middleware(next http.Handler, _ *MiddlewareOpts) http.Handler + func NewContext(ctx context.Context, h *Header) context.Context + type Header struct + Metrics []*Metric + func FromContext(ctx context.Context) *Header + func ParseHeader(input string) (*Header, error) + func (h *Header) Add(m *Metric) *Metric + func (h *Header) NewMetric(name string) *Metric + func (h *Header) String() string + type Metric struct + Desc string + Duration time.Duration + Extra map[string]string + Name string + func (m *Metric) GoString() string + func (m *Metric) Start() *Metric + func (m *Metric) Stop() *Metric + func (m *Metric) String() string + func (m *Metric) WithDesc(desc string) *Metric + type MiddlewareOpts struct