pipeline

package module
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 47

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SignalTraces  = globalsignal.MustNewSignal("traces")
	SignalMetrics = globalsignal.MustNewSignal("metrics")
	SignalLogs    = globalsignal.MustNewSignal("logs")
)
View Source
var ErrSignalNotSupported = errors.New("telemetry type is not supported")

Functions

This section is empty.

Types

type ID

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

ID represents the identity for a pipeline. It combines two values: * signal - the Signal of the pipeline. * name - the name of that pipeline.

func MustNewID

func MustNewID(signal string) ID

MustNewID builds a Signal and returns a new ID with the given Signal and empty name. It panics if the Signal is invalid. A signal must consist of 1 to 62 lowercase ASCII alphabetic characters.

func MustNewIDWithName

func MustNewIDWithName(signal string, name string) ID

MustNewIDWithName builds a Signal and returns a new ID with the given Signal and name. It panics if the Signal is invalid or name is invalid. A signal must consist of 1 to 62 lowercase ASCII alphabetic characters. A name must consist of 1 to 1024 unicode characters excluding whitespace, control characters, and symbols.

func NewID

func NewID(signal Signal) ID

NewID returns a new ID with the given Signal and empty name.

func NewIDWithName

func NewIDWithName(signal Signal, name string) ID

NewIDWithName returns a new ID with the given Signal and name.

func (ID) MarshalText

func (i ID) MarshalText() (text []byte, err error)

MarshalText implements the encoding.TextMarshaler interface. This marshals the Signal and name as one string in the config.

func (ID) Name

func (i ID) Name() string

Name returns the name of the ID.

func (ID) Signal

func (i ID) Signal() Signal

Signal returns the Signal of the ID.

func (ID) String

func (i ID) String() string

String returns the ID string representation as "signal[/name]" format.

func (*ID) UnmarshalText

func (i *ID) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

type Signal

type Signal = globalsignal.Signal

Signal represents the signals supported by the collector. We currently support collecting metrics, traces and logs, this can expand in the future.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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