proxy

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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 ParseId added in v1.9.18

func ParseId(bytes []byte) (Id, error)

func (*Id) Int64

func (id *Id) Int64() int64

func (Id) IsUnknown added in v1.8.1

func (id Id) IsUnknown() bool

func (*Id) MarshalJSON

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

func (*Id) Or added in v1.8.1

func (id *Id) Or(other Id) Id

func (*Id) OrZero

func (id *Id) OrZero() Id

func (Id) String added in v1.9.18

func (id Id) String() string

func (*Id) Uint64 added in v1.7.3

func (id *Id) Uint64() uint64

func (*Id) Uint64OrNil added in v1.8.1

func (id *Id) Uint64OrNil() *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 Timings `json:"timings"`
}

func NewRootSpan added in v1.8.1

func NewRootSpan(name string, trace, id Id) Span

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

func (*Span) IsRoot added in v1.8.1

func (span *Span) IsRoot() 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) IsValid added in v1.8.4

func (ts Timestamp) IsValid() bool

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) ToNanos added in v1.9.0

func (ts Timestamp) ToNanos() int64

func (Timestamp) ToTime

func (ts Timestamp) ToTime() time.Time

func (*Timestamp) UnmarshalJSON added in v1.8.3

func (ts *Timestamp) UnmarshalJSON(encoded []byte) error

type Timings added in v1.8.4

type Timings struct {
	CS Timestamp `json:"cs,omitempty"`
	CR Timestamp `json:"cr,omitempty"`
	SS Timestamp `json:"ss,omitempty"`
	SR Timestamp `json:"sr,omitempty"`
}

type Trace added in v1.9.18

type Trace []Span

Jump to

Keyboard shortcuts

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