Documentation
¶
Index ¶
- type Id
- func (id *Id) Int64() int64
- func (id Id) IsUnknown() bool
- func (id *Id) MarshalJSON() ([]byte, error)
- func (id *Id) Or(other Id) Id
- func (id *Id) OrZero() Id
- func (id Id) String() string
- func (id *Id) Uint64() uint64
- func (id *Id) Uint64OrNil() *uint64
- func (id *Id) UnmarshalJSON(bytes []byte) error
- type Span
- type Timestamp
- func (ts Timestamp) Add(duration time.Duration) Timestamp
- 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
- type Trace
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) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶ added in v1.8.3
Click to show internal directories.
Click to hide internal directories.