Documentation
¶
Index ¶
- type Id
- type Span
- type Timestamp
- func (ts Timestamp) Add(duration time.Duration) Timestamp
- func (ts *Timestamp) AddInPlace(duration time.Duration)
- func (ts Timestamp) IsValid() bool
- func (ts Timestamp) MarshalJSON() ([]byte, error)
- func (ts Timestamp) ToMicros() int64
- func (ts Timestamp) ToMillis() int64
- func (ts Timestamp) ToNanos() int64
- func (ts Timestamp) ToTime() time.Time
- func (ts *Timestamp) UnmarshalJSON(encoded []byte) error
- type Timings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Id ¶
type Id int64
func (*Id) MarshalJSON ¶
func (*Id) Uint64OrNil ¶ added in v1.8.1
func (*Id) UnmarshalJSON ¶
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
type Timestamp ¶
type Timestamp int64
timestamp in nano seconds
func Microseconds ¶
func (*Timestamp) AddInPlace ¶
func (Timestamp) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶ added in v1.8.3
Click to show internal directories.
Click to hide internal directories.