Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlowPrinterProvider ¶ added in v1.4.0
func FlowPrinterProvider(_ FlowPrinterEnabled) (node.TerminalFunc[[]*ebpf.Record], error)
func MetricsExporterProvider ¶
func MetricsExporterProvider(cfg MetricsConfig) (node.TerminalFunc[[]*ebpf.Record], error)
Types ¶
type Attributes ¶ added in v1.4.0
type Attributes struct {
// contains filtered or unexported fields
}
Attributes filtered set. Each metric instance must create its own instance by means of AttributesFilter.New()
func (*Attributes) PutString ¶ added in v1.4.0
func (a *Attributes) PutString(key, value string)
func (*Attributes) Slice ¶ added in v1.4.0
func (a *Attributes) Slice() []attribute.KeyValue
type AttributesFilter ¶ added in v1.4.0
type AttributesFilter struct {
// contains filtered or unexported fields
}
AttributesFilter controls which attributes are added to a metric
func NewAttributesFilter ¶ added in v1.4.0
func NewAttributesFilter(allowed []string) AttributesFilter
NewAttributesFilter creates an AttributesFilter that would filter the attributes not contained in the allowed list. If the allowed list is empty, it won't filter any attribute.
func (*AttributesFilter) New ¶ added in v1.4.0
func (af *AttributesFilter) New() Attributes
type FlowPrinterEnabled ¶ added in v1.4.0
type FlowPrinterEnabled bool
func (FlowPrinterEnabled) Enabled ¶ added in v1.4.0
func (fpe FlowPrinterEnabled) Enabled() bool
type MetricsConfig ¶
type MetricsConfig struct { Metrics *otel.MetricsConfig AllowedAttributes []string }
func (MetricsConfig) Enabled ¶ added in v1.4.0
func (mc MetricsConfig) Enabled() bool
Click to show internal directories.
Click to hide internal directories.