Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SignalTraces = globalsignal.MustNewSignal("traces") SignalMetrics = globalsignal.MustNewSignal("metrics") SignalLogs = globalsignal.MustNewSignal("logs") )
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 ¶
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 ¶
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 NewIDWithName ¶
NewIDWithName returns a new ID with the given Signal and name.
func (ID) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface. This marshals the Signal and name as one string in the config.
func (*ID) UnmarshalText ¶
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.