common

package
v0.0.0-...-03a88a3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeV1Key         = "time"
	TimeV2Key         = "_time"
	TraceIDKey        = "trace_id"
	ServiceNameKey    = "service_name"
	OperationNameKey  = "operation_name"
	SpanIDKey         = "span_id"
	DurationKey       = "duration"
	FlagsKey          = "flags"
	ProcessTagKeysKey = "process_tag_keys"
	ReferencesKey     = "references"

	DefaultSpanMeasurement     = "span"      // Store spans here
	DefaultSpanMetaMeasurement = "span-meta" // Store sparse span meta data here
	DefaultLogMeasurement      = "log"       // Store logs here

	MeasurementKey = "_measurement"
	FieldKey       = "_field"
	ValueKey       = "_value"

	ReferenceTypeChildOf     = "ChildOf"
	ReferenceTypeFollowsFrom = "FollowsFrom"

	MaxFlushPoints   = 5000
	MaxFlushInterval = time.Second

	MetaCacheInterval = time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WriterMetaCache

type WriterMetaCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

WriterMetaCache throttles

func NewWriterMetaCache

func NewWriterMetaCache(maxAge time.Duration) *WriterMetaCache

func (*WriterMetaCache) ShouldWrite

func (c *WriterMetaCache) ShouldWrite(serviceName, operationName string, startTime time.Time) (shouldWrite bool)

Jump to

Keyboard shortcuts

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