datadog

package
v0.0.0-...-8e6316b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessagePackEncode

func MessagePackEncode(buf io.Writer, spanList SpanList) error

func Send

func Send(buf io.Reader, agent string) error

Types

type Span

type Span struct {
	Name     string            `msg:"name"`
	Service  string            `msg:"service"`
	Start    int64             `msg:"start"`
	Duration int64             `msg:"duration"`
	Meta     map[string]string `msg:"meta,omitempty"`
	SpanID   uint64            `msg:"span_id"`
	TraceID  uint64            `msg:"trace_id"`
	ParentID uint64            `msg:"parent_id"`
}

func (*Span) DecodeMsg

func (z *Span) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Span) EncodeMsg

func (z *Span) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Span) Msgsize

func (z *Span) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

type SpanList

type SpanList []*Span

func MiniSpansToDatadogSpanList

func MiniSpansToDatadogSpanList(
	serviceName string,
	trace minitrace.Trace,
) SpanList

func (*SpanList) DecodeMsg

func (z *SpanList) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (SpanList) EncodeMsg

func (z SpanList) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (SpanList) Msgsize

func (z SpanList) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

Jump to

Keyboard shortcuts

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