Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline is an OTLP pipeline.
func BuildAndStart ¶
func BuildAndStart(ctx context.Context, cfg config.Config, s serializer.MetricSerializer) (*Pipeline, error)
BuildAndStart builds and starts an OTLP pipeline
func NewPipeline ¶
func NewPipeline(cfg PipelineConfig, s serializer.MetricSerializer) (*Pipeline, error)
NewPipeline defines a new OTLP pipeline.
type PipelineConfig ¶
type PipelineConfig struct {
// BindHost is the bind host for the OTLP receiver.
BindHost string
// GRPCPort is the OTLP receiver gRPC port.
GRPCPort uint
// HTTPPort is the OTLP receiver HTTP port.
HTTPPort uint
// TracePort is the trace Agent OTLP port.
TracePort uint
// MetricsEnabled states whether OTLP metrics support is enabled.
MetricsEnabled bool
// TracesEnabled states whether OTLP traces support is enabled.
TracesEnabled bool
}
PipelineConfig is the config struct for an OTLP pipeline.
func FromAgentConfig ¶
func FromAgentConfig(cfg config.Config) (PipelineConfig, error)
FromAgentConfig builds a pipeline configuration from an Agent configuration.
Click to show internal directories.
Click to hide internal directories.