otlphttp

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package otlphttp provides an otelcol.exporter.otlphttp component.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMaxIddleConns       = 100
	DefaultIdleConnTimeout     = 90 * time.Second
	DefaultHTTPClientArguments = HTTPClientArguments{
		MaxIdleConns:    &DefaultMaxIddleConns,
		IdleConnTimeout: &DefaultIdleConnTimeout,

		Timeout:         30 * time.Second,
		Headers:         map[string]string{},
		Compression:     otelcol.CompressionTypeGzip,
		ReadBufferSize:  0,
		WriteBufferSize: 512 * 1024,
	}
)

Default server settings.

DefaultArguments holds default values for Arguments.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Client HTTPClientArguments    `river:"client,block"`
	Queue  otelcol.QueueArguments `river:"sending_queue,block,optional"`
	Retry  otelcol.RetryArguments `river:"retry_on_failure,block,optional"`

	// The URLs to send metrics/logs/traces to. If omitted the exporter will
	// use Client.Endpoint by appending "/v1/metrics", "/v1/logs" or
	// "/v1/traces", respectively. If set, these settings override
	// Client.Endpoint for the corresponding signal.
	TracesEndpoint  string `river:"traces_endpoint,attr,optional"`
	MetricsEndpoint string `river:"metrics_endpoint,attr,optional"`
	LogsEndpoint    string `river:"logs_endpoint,attr,optional"`
}

Arguments configures the otelcol.exporter.otlphttp component.

func (Arguments) Convert

func (args Arguments) Convert() otelconfig.Exporter

Convert implements exporter.Arguments.

func (Arguments) Exporters

Exporters implements exporter.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelconfig.ComponentID]otelcomponent.Extension

Extensions implements exporter.Arguments.

func (*Arguments) UnmarshalRiver

func (args *Arguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate returns an error if the configuration is invalid.

type HTTPClientArguments

type HTTPClientArguments otelcol.HTTPClientArguments

HTTPClientArguments is used to configure otelcol.exporter.otlphttp with component-specific defaults.

func (*HTTPClientArguments) UnmarshalRiver

func (args *HTTPClientArguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler and supplies defaults.

Jump to

Keyboard shortcuts

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