v1

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJSON

func DecodeJSON(r io.Reader) ([]*types.Span, error)

DecodeJSON reads an array of JSON-encoded spans from an io.Reader, and converts that array to a slice of Spans.

func DecodeThrift

func DecodeThrift(r io.Reader) ([]*types.Span, error)

DecodeThrift reads a list of encoded thrift spans from an io.Reader, and converts that list to a slice of Spans. The implementation is based on jaeger internals, but not exported there.

Types

type Annotation

type Annotation struct {
	Timestamp int64     `json:"timestamp"`
	Value     string    `json:"value"`
	Host      *Endpoint `json:"endpoint,omitempty"`
}

type Endpoint

type Endpoint struct {
	Ipv4        string `json:"ipv4"`
	Port        int    `json:"port"`
	ServiceName string `json:"serviceName"`
}

type ZipkinJSONSpan

type ZipkinJSONSpan struct {
	TraceID           string              `json:"traceId"`
	Name              string              `json:"name"`
	ID                string              `json:"id"`
	ParentID          string              `json:"parentId,omitempty"`
	Annotations       []*Annotation       `json:"annotations"`
	BinaryAnnotations []*binaryAnnotation `json:"binaryAnnotations"`
	Debug             bool                `json:"debug,omitempty"`
	Timestamp         int64               `json:"timestamp,omitempty"`
	Duration          int64               `json:"duration,omitempty"`
}

ZipkinJSONSpan represents the Zipkin V1 Span object. See https://github.com/openzipkin/zipkin-api/blob/master/zipkin-api.yaml

Jump to

Keyboard shortcuts

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