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 }
func TestConnection ¶
func TestConnection(ctx context.Context, dest config.ExporterConfigurer) TestConnectionResult
Click to show internal directories.
Click to hide internal directories.