Documentation ¶
Overview ¶
Package extension provides utilities to create an Alloy component from OpenTelemetry Collector extensions.
Other OpenTelemetry Collector extensions are better served as generic Alloy components rather than being placed in the otelcol namespace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments interface { component.Arguments // Convert converts the Arguments into an OpenTelemetry Collector // extension configuration. Convert() (otelcomponent.Config, error) // Extensions returns the set of extensions that the configured component is // allowed to use. Extensions() map[otelcomponent.ID]otelextension.Extension // Exporters returns the set of exporters that are exposed to the configured // component. Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component }
Arguments is an extension of component.Arguments which contains necessary settings for OpenTelemetry Collector extensions.
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
Extension is an Alloy component shim which manages an OpenTelemetry Collector extension.
func New ¶
New creates a new Alloy component which encapsulates an OpenTelemetry Collector extension. args must hold a value of the argument type registered with the Alloy component.
func (*Extension) CurrentHealth ¶
CurrentHealth implements component.HealthComponent.