Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for SAPM receiver.
Types ¶
type Config ¶
type Config struct { config.ReceiverSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // The target endpoint. Endpoint string `mapstructure:"endpoint"` // Configures the receiver to use TLS. // The default value is nil, which will cause the receiver to not use TLS. TLSCredentials *configtls.TLSSetting `mapstructure:"tls, omitempty"` }
Config defines configuration for xray receiver.
type MockAwsXrayReceiver ¶
type MockAwsXrayReceiver struct {
// contains filtered or unexported fields
}
MockAwsXrayReceiver type is used to handle spans received in the AWS data format.
func New ¶
func New( nextConsumer consumer.Traces, params receiver.CreateSettings, config *Config) (*MockAwsXrayReceiver, error)
New creates a new awsxrayreceiver.MockAwsXrayReceiver reference.
func (*MockAwsXrayReceiver) HTTPHandlerFunc ¶
func (ar *MockAwsXrayReceiver) HTTPHandlerFunc(rw http.ResponseWriter, req *http.Request)
HTTPHandlerFunc returns an http.HandlerFunc that handles awsXray requests
Click to show internal directories.
Click to hide internal directories.