tracer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOption

type ListOption func(request *cloudtrace.ListTracesRequest)

func WithEndTime

func WithEndTime(end time.Time) ListOption

func WithFilter

func WithFilter(filters ...string) ListOption

func WithLimit

func WithLimit(limit int32) ListOption

func WithOnlyRootSpanView

func WithOnlyRootSpanView() ListOption

func WithOrderBy

func WithOrderBy(field string, desc bool) ListOption

func WithOrderByDuration

func WithOrderByDuration(desc bool) ListOption

func WithOrderByName

func WithOrderByName(desc bool) ListOption

func WithOrderByStart

func WithOrderByStart(desc bool) ListOption

func WithSince

func WithSince(since time.Duration) ListOption

func WithStartTime

func WithStartTime(start time.Time) ListOption

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(ctx context.Context) (*Tracer, error)

func (*Tracer) Close

func (t *Tracer) Close() error

Close closes the inner client connection to the API service.

func (*Tracer) Get

func (t *Tracer) Get(ctx context.Context, projectID, traceID string) (*cloudtrace.Trace, error)

Get retrieve tracer from a specific project by the tracer id.

func (*Tracer) List

func (t *Tracer) List(ctx context.Context, projectID string, opts ...ListOption) ([]*cloudtrace.Trace, error)

List returns of a list of traces that match the specified options conditions.

func (*Tracer) MultiGet

func (t *Tracer) MultiGet(ctx context.Context, projects []string, traceIDs []string) (*cloudtrace.Trace, error)

MultiGet retrieve tracer from multiple projects by the tracer id and aggregate the spans.

Jump to

Keyboard shortcuts

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