zipkin

package
v0.0.0-...-a142011 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Cluster to be used in a multicluster environment
	Cluster cluster.Cluster

	// HTTP Address of ingress gateway of the cluster to be used to install zipkin in.
	IngressAddr string
}

type Instance

type Instance interface {
	resource.Resource

	// QueryTraces gets at most number of limit most recent available traces from zipkin.
	// spanName filters that only trace with the given span name will be included.
	QueryTraces(limit int, spanName, annotationQuery, hostDomain string) ([]Trace, error)
}

Instance represents a zipkin deployment on kube

func New

func New(ctx resource.Context, c Config) (i Instance, err error)

New returns a new instance of zipkin.

func NewOrFail

func NewOrFail(t *testing.T, ctx resource.Context, c Config) Instance

NewOrFail returns a new zipkin instance or fails test.

type Span

type Span struct {
	SpanID       string
	ParentSpanID string
	ServiceName  string
	Name         string
	ChildSpans   []*Span
}

Span represents a single span, which includes span attributes for verification TODO(bianpengyuan) consider using zipkin proto api https://github.com/istio/istio/issues/13926

type Trace

type Trace struct {
	Spans []Span
}

Trace represents a trace by a collection of spans which all belong to that trace

Jump to

Keyboard shortcuts

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