objects

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//TagDotReplacementCharacter state which character should replace the dot in es
	TagDotReplacementCharacter = "@"
)

Variables

This section is empty.

Functions

func TransformToLogzioSpanBytes

func TransformToLogzioSpanBytes(span *model.Span) ([]byte, error)

TransformToLogzioSpanBytes receives a Jaeger span, converts it to logzio span and returns it as a byte array. The main differences between Jaeger span and logzio span are arrays which are represented as maps

Types

type LogzioService

type LogzioService struct {
	OperationName string `json:"operationName"`
	ServiceName   string `json:"serviceName"`
	Type          string `json:"type"`
}

LogzioService type, for query purposes

func NewLogzioService

func NewLogzioService(span *model.Span) LogzioService

NewLogzioService creates a new logzio service from a span

func (*LogzioService) HashCode

func (service *LogzioService) HashCode() (string, error)

HashCode receives a logzio service and returns a hash representation of it's service name and operation name.

type LogzioSpan

type LogzioSpan struct {
	TraceID         dbmodel.TraceID        `json:"traceID"`
	OperationName   string                 `json:"operationName,omitempty"`
	SpanID          dbmodel.SpanID         `json:"spanID"`
	References      []dbmodel.Reference    `json:"references"`
	Flags           uint32                 `json:"flags,omitempty"`
	StartTime       uint64                 `json:"startTime"`
	StartTimeMillis uint64                 `json:"startTimeMillis"`
	Timestamp       uint64                 `json:"@timestamp"`
	Duration        uint64                 `json:"duration"`
	Tags            []dbmodel.KeyValue     `json:"JaegerTags,omitempty"`
	Tag             map[string]interface{} `json:"JaegerTag,omitempty"`
	Logs            []dbmodel.Log          `json:"logs"`
	Process         dbmodel.Process        `json:"process,omitempty"`
	Type            string                 `json:"type"`
}

LogzioSpan is same as esSpan with a few different json field names and an addition on type field.

func (*LogzioSpan) TransformToDbModelSpan

func (span *LogzioSpan) TransformToDbModelSpan() *dbmodel.Span

TransformToDbModelSpan coverts logz.io span to ElasticSearch span

Jump to

Keyboard shortcuts

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