otlp

package
v0.36.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package otlp provides an otelcol.receiver.otlp component.

Index

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() (otelcomponent.Config, error)

Convert implements receiver.Arguments.

func (Arguments) Exporters

Exporters implements receiver.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.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) SetToDefault added in v0.35.0

func (args *GRPCServerArguments) SetToDefault()

SetToDefault implements river.Defaulter.

type HTTPServerArguments

type HTTPServerArguments otelcol.HTTPServerArguments

HTTPServerArguments is used to configure otelcol.receiver.otlp with component-specific defaults.

func (*HTTPServerArguments) SetToDefault added in v0.35.0

func (args *HTTPServerArguments) SetToDefault()

SetToDefault implements river.Defaulter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL