visit

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptDataPoint

func AcceptDataPoint(tsn BaseDataPoint, a *All) bool

We pass start and end to avoid calling TimeRange on each data point

func AcceptResource

func AcceptResource(r BaseResource, a *All) bool

func AcceptScope

func AcceptScope(schema string, r *commonV1.InstrumentationScope, a *All) bool

func VisitData

func VisitData(data *v1.Data, a *All) *v1.Data

Types

type All

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

func New

func New() *All

func (*All) AcceptAttributes

func (a *All) AcceptAttributes(attr []*commonV1.KeyValue) bool

func (*All) AcceptLogLevel

func (a *All) AcceptLogLevel(lvl string) bool

func (*All) AcceptName

func (a *All) AcceptName(name string) bool

func (*All) AcceptParentSpanID

func (a *All) AcceptParentSpanID(id []byte) bool

func (*All) AcceptResourceAttributes

func (a *All) AcceptResourceAttributes(kv []*commonV1.KeyValue) bool

func (*All) AcceptResourceSchema

func (a *All) AcceptResourceSchema(schema string) bool

func (*All) AcceptScopeAttributes

func (a *All) AcceptScopeAttributes(attr []*commonV1.KeyValue) bool

func (*All) AcceptScopeName

func (a *All) AcceptScopeName(name string) bool

func (*All) AcceptScopeSchema

func (a *All) AcceptScopeSchema(schema string) bool

func (*All) AcceptScopeVersion

func (a *All) AcceptScopeVersion(version string) bool

func (*All) AcceptSpanID

func (a *All) AcceptSpanID(id []byte) bool

func (*All) AcceptTimestamp

func (a *All) AcceptTimestamp(ts uint64) bool

func (*All) AcceptTraceID

func (a *All) AcceptTraceID(id []byte) bool

func (*All) Release

func (a *All) Release()

func (*All) Reset

func (a *All) Reset()

func (*All) SetAttr

func (a *All) SetAttr(k, v string)

func (*All) SetLogLevel

func (a *All) SetLogLevel(lvl string)

func (*All) SetName

func (a *All) SetName(name string)

func (*All) SetParentSpanID

func (a *All) SetParentSpanID(id string) error

func (*All) SetResourceAttr

func (a *All) SetResourceAttr(k, v string)

func (*All) SetResourceSchema

func (a *All) SetResourceSchema(schema string)

func (*All) SetScopVersion

func (a *All) SetScopVersion(version string)

func (*All) SetScopeAttr

func (a *All) SetScopeAttr(k, v string)

func (*All) SetScopeName

func (a *All) SetScopeName(name string)

func (*All) SetScopeSchema

func (a *All) SetScopeSchema(schema string)

func (*All) SetSpanID

func (a *All) SetSpanID(id string) error

func (*All) SetTimeRange

func (a *All) SetTimeRange(start, end uint64)

func (*All) SetTraceID

func (a *All) SetTraceID(id string) error

func (*All) TimeRange

func (a *All) TimeRange() (start, end uint64)

type BaseDataPoint

type BaseDataPoint interface {
	GetAttributes() []*commonV1.KeyValue
	GetTimeUnixNano() uint64
}

type BaseResource

type BaseResource interface {
	GetSchemaUrl() string
	GetResource() *resourceV1.Resource
}

type Logs

type Logs struct{}

func (Logs) Visit

func (Logs) Visit(data *logsv1.LogsData, visitor *All) *logsv1.LogsData

type Metrics

type Metrics struct{}

func (Metrics) Visit

func (Metrics) Visit(data *metricsV1.MetricsData, visitor *All) *metricsV1.MetricsData

type Trace

type Trace struct{}

func (Trace) Visit

func (Trace) Visit(data *tracev1.TracesData, visitor *All) *tracev1.TracesData

Jump to

Keyboard shortcuts

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