testconnection

package
v0.0.0-...-070a2f1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDestinationToConfigurer

func ConvertDestinationToConfigurer(destination model.DestinationInput) (config.ExporterConfigurer, error)

func NewOTLPHTTPTester

func NewOTLPHTTPTester() *otlphttpExporterConnectionTester

func NewOTLPTester

func NewOTLPTester() *otlpExporterConnectionTester

Types

type DestinationConfigurer

type DestinationConfigurer struct {
	// contains filtered or unexported fields
}

Implement the ExporterConfigurer interface

func (*DestinationConfigurer) GetConfig

func (dc *DestinationConfigurer) GetConfig() map[string]string

func (*DestinationConfigurer) GetID

func (dc *DestinationConfigurer) GetID() string

func (*DestinationConfigurer) GetSignals

func (*DestinationConfigurer) GetType

type ExporterConnectionTester

type ExporterConnectionTester interface {
	// Factory returns the exporter factory for the exporter type.
	// This is used to create the exporter instance for testing the connection.
	Factory() exporter.Factory
	// ModifyConfigForConnectionTest modifies the exporter configuration for testing the connection.
	// Since the default configuration may have batching, retries, etc. which may not be suitable for testing the connection.
	ModifyConfigForConnectionTest(component.Config) component.Config
}

type TestConnectionErrorReason

type TestConnectionErrorReason string
const (
	UnKnownDestination      TestConnectionErrorReason = "unknown destination"
	InvalidConfig           TestConnectionErrorReason = "invalid config"
	UnsupportedExporterType TestConnectionErrorReason = "unsupported exporter type"
	FailedToConnect         TestConnectionErrorReason = "failed to connect"
)

type TestConnectionResult

type TestConnectionResult struct {
	Succeeded       bool
	Message         string
	Reason          TestConnectionErrorReason
	StatusCode      int
	DestinationType common.DestinationType
}

Jump to

Keyboard shortcuts

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