Documentation ¶
Index ¶
- type Arguments
- func (Arguments) ConnectorType() int
- func (args Arguments) Convert() (otelcomponent.Config, error)
- func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
- func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
- func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
- func (args *Arguments) SetToDefault()
- func (args *Arguments) Validate() error
- type StoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { // LatencyHistogramBuckets is the list of durations representing latency histogram buckets. LatencyHistogramBuckets []time.Duration `alloy:"latency_histogram_buckets,attr,optional"` // Dimensions defines the list of additional dimensions on top of the provided: // - client // - server // - failed // - connection_type // The dimensions will be fetched from the span's attributes. Examples of some conventionally used attributes: // https://github.com/open-telemetry/opentelemetry-collector/blob/main/model/semconv/opentelemetry.go. Dimensions []string `alloy:"dimensions,attr,optional"` // Store contains the config for the in-memory store used to find requests between services by pairing spans. Store StoreConfig `alloy:"store,block,optional"` // CacheLoop defines how often to clean the cache of stale series. CacheLoop time.Duration `alloy:"cache_loop,attr,optional"` // StoreExpirationLoop defines how often to expire old entries from the store. StoreExpirationLoop time.Duration `alloy:"store_expiration_loop,attr,optional"` // MetricsFlushInterval is the interval at which metrics are flushed to the exporter. // If set to 0, metrics are flushed on every received batch of traces. MetricsFlushInterval time.Duration `alloy:"metrics_flush_interval,attr,optional"` // DatabaseNameAttribute is the attribute name used to identify the database name from span attributes. // The default value is db.name DatabaseNameAttribute string `alloy:"database_name_attribute,attr,optional"` // Output configures where to send processed data. Required. Output *otelcol.ConsumerArguments `alloy:"output,block"` }
Arguments configures the otelcol.connector.servicegraph component.
func (Arguments) ConnectorType ¶
ConnectorType() int implements connector.Arguments.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements connector.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements connector.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements connector.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements connector.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type StoreConfig ¶
type StoreConfig struct { // MaxItems is the maximum number of items to keep in the store. MaxItems int `alloy:"max_items,attr,optional"` // TTL is the time to live for items in the store. TTL time.Duration `alloy:"ttl,attr,optional"` }
func (*StoreConfig) SetToDefault ¶
func (sc *StoreConfig) SetToDefault()
Click to show internal directories.
Click to hide internal directories.