proxy

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id int64

func (*Id) Int64

func (id *Id) Int64() int64

func (*Id) MarshalJSON

func (id *Id) MarshalJSON() ([]byte, error)

func (*Id) OrZero

func (id *Id) OrZero() Id

func (*Id) Uint64 added in v1.7.3

func (id *Id) Uint64() uint64

func (*Id) UnmarshalJSON

func (id *Id) UnmarshalJSON(bytes []byte) error

type Span

type Span struct {
	Id     Id `json:"id"`
	Parent Id `json:"parent"`
	Trace  Id `json:"trace"`

	Name    string `json:"name"`
	Service string `json:"service"`

	Timestamp Timestamp     `json:"timestamp"`
	Duration  time.Duration `json:"duration"`

	Tags    map[string]string    `json:"tags,omitempty"`
	Timings map[string]Timestamp `json:"timings,omitempty"`
}

func NewSpan

func NewSpan(name string, trace, id, parent Id) Span

func (*Span) AddTag

func (span *Span) AddTag(key, value string)

func (*Span) AddTiming

func (span *Span) AddTiming(key string, ns Timestamp)

func (*Span) HasParent

func (span *Span) HasParent() bool

type Timestamp

type Timestamp int64

timestamp in nano seconds

func Microseconds

func Microseconds(us int64) Timestamp

func (Timestamp) Add

func (ts Timestamp) Add(duration time.Duration) Timestamp

func (*Timestamp) AddInPlace

func (ts *Timestamp) AddInPlace(duration time.Duration)

func (Timestamp) MarshalJSON

func (ts Timestamp) MarshalJSON() ([]byte, error)

func (Timestamp) ToMicros

func (ts Timestamp) ToMicros() int64

func (Timestamp) ToMillis

func (ts Timestamp) ToMillis() int64

func (Timestamp) ToTime

func (ts Timestamp) ToTime() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL