v2

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: 5 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.

Types

type ZipkinJSONSpan

type ZipkinJSONSpan struct {
	TraceID        string                 `json:"traceId"`
	Name           string                 `json:"name"`
	ID             string                 `json:"id"`
	ParentID       string                 `json:"parentId,omitempty"`
	Kind           string                 `json:"kind,omitempty"`
	LocalEndpoint  localEndpoint          `json:"localEndpoint,omitempty"`
	RemoteEndpoint remoteEndpoint         `json:"remoteEndpoint,omitempty"`
	Annotations    []*annotation          `json:"annotation"`
	Tags           map[string]interface{} `json:"tags"`
	Debug          bool                   `json:"debug,omitempty"`
	Timestamp      int64                  `json:"timestamp,omitempty"`
	Duration       int64                  `json:"duration,omitempty"`
}

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

Jump to

Keyboard shortcuts

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