otlpgrpc

package
v0.0.0-...-bfa2730 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoints flagext.StringSlice `yaml:"endpoints"`
	TLS       TLSConfig           `yaml:"tls"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type Forwarder

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

func NewForwarder

func NewForwarder(cfg Config, logger log.Logger) (*Forwarder, error)

func (*Forwarder) Dial

func (f *Forwarder) Dial(ctx context.Context, opts ...grpc.DialOption) error

Dial creates client connections and clients based on config. Dial is expected to be called only once.

func (*Forwarder) ForwardTraces

func (f *Forwarder) ForwardTraces(ctx context.Context, traces ptrace.Traces) error

func (*Forwarder) Shutdown

func (f *Forwarder) Shutdown(_ context.Context) error

type TLSConfig

type TLSConfig struct {
	Insecure bool   `yaml:"insecure"`
	CertFile string `yaml:"cert_file"`
}

func (*TLSConfig) Validate

func (cfg *TLSConfig) Validate() error

Jump to

Keyboard shortcuts

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