Documentation ¶
Index ¶
- Constants
- func CreateDefaultConfig() component.Config
- func NewFactory() receiver.Factory
- type Config
- type OrbReceiver
- func (r *OrbReceiver) DecompressBrotli(data []byte) []byte
- func (r *OrbReceiver) MessageLogsInbound(msg messaging.Message) error
- func (r *OrbReceiver) MessageMetricsInbound(msg messaging.Message) error
- func (r *OrbReceiver) MessageTracesInbound(msg messaging.Message) error
- func (r *OrbReceiver) ProccessLogsContext(scope plog.ScopeLogs, channel string, size int)
- func (r *OrbReceiver) ProccessMetricsContext(scope pmetric.ScopeMetrics, channel string, size int)
- func (r *OrbReceiver) ProccessTracesContext(scope ptrace.ScopeSpans, channel string, size int)
- func (r *OrbReceiver) Shutdown(ctx context.Context) error
- func (r *OrbReceiver) Start(ctx context.Context, _ component.Host) error
Constants ¶
View Source
const ( OtelMetricsTopic = "otlp.*.m.>" OtelLogsTopic = "otlp.*.l.>" OtelTraceTopic = "otlp.*.t.>" )
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfig ¶
createDefaultConfig creates the default configuration for receiver.
func NewFactory ¶
NewFactory creates a new OTLP receiver factory.
Types ¶
type Config ¶
type Config struct { Logger *zap.Logger // Entry from Metrics PubSub mfnats.PubSub // Entry for Accessing DataSets, AgentGroup and Sinks SinkerService *bridgeservice.SinkerOtelBridgeService }
Config defines configuration for OTLP receiver.
type OrbReceiver ¶
type OrbReceiver struct {
// contains filtered or unexported fields
}
OrbReceiver is the type that exposes Trace and Metrics reception.
func NewOrbReceiver ¶
func NewOrbReceiver(ctx context.Context, cfg *Config, settings receiver.CreateSettings) *OrbReceiver
NewOrbReceiver just creates the OpenTelemetry receiver services. It is the caller's responsibility to invoke the respective Start*Reception methods as well as the various Stop*Reception methods to end it.
func (*OrbReceiver) DecompressBrotli ¶
func (r *OrbReceiver) DecompressBrotli(data []byte) []byte
func (*OrbReceiver) MessageLogsInbound ¶
func (r *OrbReceiver) MessageLogsInbound(msg messaging.Message) error
func (*OrbReceiver) MessageMetricsInbound ¶
func (r *OrbReceiver) MessageMetricsInbound(msg messaging.Message) error
func (*OrbReceiver) MessageTracesInbound ¶
func (r *OrbReceiver) MessageTracesInbound(msg messaging.Message) error
func (*OrbReceiver) ProccessLogsContext ¶
func (r *OrbReceiver) ProccessLogsContext(scope plog.ScopeLogs, channel string, size int)
func (*OrbReceiver) ProccessMetricsContext ¶
func (r *OrbReceiver) ProccessMetricsContext(scope pmetric.ScopeMetrics, channel string, size int)
func (*OrbReceiver) ProccessTracesContext ¶
func (r *OrbReceiver) ProccessTracesContext(scope ptrace.ScopeSpans, channel string, size int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.