Documentation ¶
Overview ¶
Package jaeger allows converting model.Trace to/from jaeger.thrift model.
Index ¶
- func ConvertSamplingResponseFromDomain(r *api_v2.SamplingStrategyResponse) (*sampling.SamplingStrategyResponse, error)
- func ConvertSamplingResponseToDomain(r *sampling.SamplingStrategyResponse) (*api_v2.SamplingStrategyResponse, error)
- func FromDomain(spans []*model.Span) []*jaeger.Span
- func FromDomainSpan(span *model.Span) *jaeger.Span
- func ToDomain(jSpans []*jaeger.Span, jProcess *jaeger.Process) []*model.Span
- func ToDomainProcess(jProcess *jaeger.Process) *model.Process
- func ToDomainSpan(jSpan *jaeger.Span, jProcess *jaeger.Process) *model.Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertSamplingResponseFromDomain ¶
func ConvertSamplingResponseFromDomain(r *api_v2.SamplingStrategyResponse) (*sampling.SamplingStrategyResponse, error)
ConvertSamplingResponseFromDomain converts proto sampling response to its thrift representation.
func ConvertSamplingResponseToDomain ¶
func ConvertSamplingResponseToDomain(r *sampling.SamplingStrategyResponse) (*api_v2.SamplingStrategyResponse, error)
ConvertSamplingResponseToDomain converts thrift sampling response to its proto representation.
func FromDomain ¶
FromDomain takes an array 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 ¶
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 ¶
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 ¶
ToDomainProcess transforms a process in jaeger.thrift format to model.Span.
Types ¶
This section is empty.