mockawsxrayreceiver

package module
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates a factory for SAPM receiver.

func ToTraces

func ToTraces(rawSeg []byte) (*ptrace.Traces, error)

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 component.ReceiverCreateSettings,
	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

func (*MockAwsXrayReceiver) Shutdown

func (ar *MockAwsXrayReceiver) Shutdown(context.Context) error

Shutdown tells the receiver that should stop reception, giving it a chance to perform any necessary clean-up and shutting down its HTTP server.

func (*MockAwsXrayReceiver) Start

Start spins up the receiver's HTTP server and makes the receiver start its processing.

Jump to

Keyboard shortcuts

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