testconnection

package
v0.0.0-...-1a60cd4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOTLPHTTPTester

func NewOTLPHTTPTester() *otlphttpExporterConnectionTester

func NewOTLPTester

func NewOTLPTester() *otlpExporterConnectionTester

Types

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