jaeger

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package jaeger allows converting model.Trace to/from jaeger.thrift model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSamplingResponseFromDomain added in v1.9.0

func ConvertSamplingResponseFromDomain(r *api_v2.SamplingStrategyResponse) (*sampling.SamplingStrategyResponse, error)

ConvertSamplingResponseFromDomain converts proto sampling response to its thrift representation.

func ConvertSamplingResponseToDomain added in v1.9.0

func ConvertSamplingResponseToDomain(r *sampling.SamplingStrategyResponse) (*api_v2.SamplingStrategyResponse, error)

ConvertSamplingResponseToDomain converts thrift sampling response to its proto representation.

func FromDomain

func FromDomain(spans []*model.Span) []*jaeger.Span

FromDomain takes an arrya of model.Span and returns an array of jaeger.Span. If errors are found during conversion of tags, then error tags are appended.

func FromDomainSpan

func FromDomainSpan(span *model.Span) *jaeger.Span

FromDomainSpan takes a single model.Span and converts it into a jaeger.Span. If errors are found during conversion of tags, then error tags are appended.

func ToDomain

func ToDomain(jSpans []*jaeger.Span, jProcess *jaeger.Process) []*model.Span

ToDomain transforms a set of spans and a process in jaeger.thrift format into a slice of model.Span. A valid []*model.Span is always returned, even when there are errors. Errors are presented as tags on spans

func ToDomainProcess added in v1.9.0

func ToDomainProcess(jProcess *jaeger.Process) *model.Process

ToDomainProcess transforms a process in jaeger.thrift format to model.Span.

func ToDomainSpan

func ToDomainSpan(jSpan *jaeger.Span, jProcess *jaeger.Process) *model.Span

ToDomainSpan transforms a span in jaeger.thrift format into model.Span. A valid model.Span is always returned, even when there are errors. Errors are presented as tags on spans

Types

This section is empty.

Jump to

Keyboard shortcuts

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