exporter

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator

func Iterator(iter attribute.Iterator) []*commonpb.KeyValue

Iterator transforms an attribute iterator into OTLP key-values.

func KeyValue

func KeyValue(kv attribute.KeyValue) *commonpb.KeyValue

KeyValue transforms an attribute KeyValue into an OTLP key-value.

func KeyValues

func KeyValues(attrs []attribute.KeyValue) []*commonpb.KeyValue

KeyValues transforms a slice of attribute KeyValues into OTLP key-values.

func ResourceAttributes

func ResourceAttributes(res *resource.Resource) []*commonpb.KeyValue

ResourceAttributes transforms a Resource OTLP key-values.

func Value

func Value(v attribute.Value) *commonpb.AnyValue

Value transforms an attribute Value into an OTLP AnyValue.

Types

type Config

type Config struct {
	Debug       bool          // XOTEL_DEBUG
	MaxLookBack time.Duration `default:"6m"` // XOTEL_MAX_LOOK_BACK
	MinLookBack time.Duration `default:"1m"` // XOTEL_MIN_LOOK_BACK
}

type Service

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

func New

func New(ctx context.Context) (*Service, error)

func (*Service) Debug added in v0.3.4

func (s *Service) Debug(msg string)

func (*Service) Run

func (svc *Service) Run(ctx context.Context) error

TODO: concurrency is great, but now need to manage getting rate limited TODO: this will ship duplicate traces, can we do better?

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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