Documentation ¶
Overview ¶
Package otelreceiver provides simple wrapper to setup trace receiver.
Index ¶
- type Consumers
- type LogsConsumer
- type MetricsConsumer
- type Receiver
- func (r *Receiver) GetExporters() map[component.DataType]map[component.ID]component.Component
- func (r *Receiver) GetExtensions() map[component.ID]extension.Extension
- func (r *Receiver) GetFactory(component.Kind, component.Type) component.Factory
- func (r *Receiver) ReportFatalError(err error)
- func (r *Receiver) Run(ctx context.Context) (rerr error)
- type ReceiverConfig
- type TracesConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumers ¶
type Consumers struct { Traces TracesConsumer Metrics MetricsConsumer Logs LogsConsumer }
Consumers is a set of telemetry consumers.
type LogsConsumer ¶
LogsConsumer is logs consumer.
type MetricsConsumer ¶
MetricsConsumer is metrics consumer.
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver is a OpenTelemetry-compatible trace receiver.
func NewReceiver ¶
func NewReceiver(consumers Consumers, cfg ReceiverConfig) (*Receiver, error)
NewReceiver setups trace receiver.
func (*Receiver) GetExporters ¶
GetExporters implements component.Host
func (*Receiver) GetExtensions ¶
GetExtensions implements component.Host
func (*Receiver) GetFactory ¶
GetFactory implements component.Host
func (*Receiver) ReportFatalError ¶
ReportFatalError implements component.Host
type ReceiverConfig ¶
type ReceiverConfig struct { OTELConfig map[string]any TracerProvider trace.TracerProvider MeterProvider metric.MeterProvider Logger *zap.Logger }
ReceiverConfig is a config struct for Receiver.
Directories ¶
Path | Synopsis |
---|---|
Package prometheusremotewrite contains translator from Prometheus remote write format to OTLP metrics.
|
Package prometheusremotewrite contains translator from Prometheus remote write format to OTLP metrics. |
Package prometheusremotewritereceiver implements Prometheus Remote Write API for OTLP collector.
|
Package prometheusremotewritereceiver implements Prometheus Remote Write API for OTLP collector. |
Click to show internal directories.
Click to hide internal directories.