Documentation ¶
Overview ¶
Package otlp provides an otelcol.receiver.otlp component.
Index ¶
- Variables
- type Arguments
- func (args Arguments) Convert() (otelconfig.Receiver, error)
- func (args Arguments) Exporters() map[otelconfig.DataType]map[otelconfig.ComponentID]otelcomponent.Exporter
- func (args Arguments) Extensions() map[otelconfig.ComponentID]otelcomponent.Extension
- func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
- type GRPCServerArguments
- type HTTPServerArguments
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGRPCServerArguments = GRPCServerArguments{ Endpoint: "0.0.0.0:4317", Transport: "tcp", ReadBufferSize: 512 * units.Kibibyte, } DefaultHTTPServerArguments = HTTPServerArguments{ Endpoint: "0.0.0.0:4318", } )
Default server settings.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { GRPC *GRPCServerArguments `river:"grpc,block,optional"` HTTP *HTTPServerArguments `river:"http,block,optional"` // Output configures where to send received data. Required. Output *otelcol.ConsumerArguments `river:"output,block"` }
Arguments configures the otelcol.receiver.otlp component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelconfig.Receiver, error)
Convert implements receiver.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelconfig.DataType]map[otelconfig.ComponentID]otelcomponent.Exporter
Exporters implements receiver.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelconfig.ComponentID]otelcomponent.Extension
Extensions implements receiver.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements receiver.Arguments.
type GRPCServerArguments ¶
type GRPCServerArguments otelcol.GRPCServerArguments
GRPCServerArguments is used to configure otelcol.receiver.otlp with component-specific defaults.
func (*GRPCServerArguments) UnmarshalRiver ¶
func (args *GRPCServerArguments) UnmarshalRiver(f func(interface{}) error) error
UnmarshalRiver implements river.Unmarshaler and supplies defaults.
type HTTPServerArguments ¶
type HTTPServerArguments otelcol.HTTPServerArguments
HTTPServerArguments is used to configure otelcol.receiver.otlp with component-specific defaults.
func (*HTTPServerArguments) UnmarshalRiver ¶
func (args *HTTPServerArguments) UnmarshalRiver(f func(interface{}) error) error
UnmarshalRiver implements river.Unmarshaler and supplies defaults.
Click to show internal directories.
Click to hide internal directories.