Documentation ¶
Index ¶
- func MakeFactoryMap(factories ...Factory) (map[component.Type]Factory, error)
- type Builderdeprecated
- func (b *Builder) CreateLogs(ctx context.Context, set Settings) (Logs, error)
- func (b *Builder) CreateMetrics(ctx context.Context, set Settings) (Metrics, error)
- func (b *Builder) CreateTraces(ctx context.Context, set Settings) (Traces, error)
- func (b *Builder) Factory(componentType component.Type) component.Factory
- type CreateLogsFunc
- type CreateMetricsFunc
- type CreateTracesFunc
- type Factory
- type FactoryOption
- type Logs
- type Metrics
- type Settings
- type Traces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder
deprecated
type Builder struct {
// contains filtered or unexported fields
}
Builder exporter is a helper struct that given a set of Configs and Factories helps with creating exporters.
Deprecated: [v0.108.0] this builder is being internalized within the service module, and will be removed soon.
func NewBuilder
deprecated
func NewBuilder(cfgs map[component.ID]component.Config, factories map[component.Type]Factory) *Builder
NewBuilder creates a new exporter.Builder to help with creating components form a set of configs and factories.
Deprecated: [v0.108.0] this builder is being internalized within the service module, and will be removed soon.
func (*Builder) CreateLogs ¶
CreateLogs creates a Logs exporter based on the settings and config.
func (*Builder) CreateMetrics ¶
CreateMetrics creates a Metrics exporter based on the settings and config.
func (*Builder) CreateTraces ¶
CreateTraces creates a Traces exporter based on the settings and config.
type CreateLogsFunc ¶
type CreateLogsFunc = internal.CreateLogsFunc
CreateLogsFunc is the equivalent of Factory.CreateLogs.
type CreateMetricsFunc ¶
type CreateMetricsFunc = internal.CreateMetricsFunc
CreateMetricsFunc is the equivalent of Factory.CreateMetrics.
type CreateTracesFunc ¶
type CreateTracesFunc = internal.CreateTracesFunc
CreateTracesFunc is the equivalent of Factory.CreateTraces.
type Factory ¶
Factory is factory interface for exporters.
This interface cannot be directly implemented. Implementations must use the NewFactory to implement it.
func NewFactory ¶
func NewFactory(cfgType component.Type, createDefaultConfig component.CreateDefaultConfigFunc, options ...FactoryOption) Factory
NewFactory returns a Factory.
type FactoryOption ¶
type FactoryOption = internal.FactoryOption
FactoryOption apply changes to Factory.
func WithLogs ¶
func WithLogs(createLogs CreateLogsFunc, sl component.StabilityLevel) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogsExporter and the default "undefined" stability level.
func WithMetrics ¶
func WithMetrics(createMetrics CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
WithMetrics overrides the default "error not supported" implementation for CreateMetricsExporter and the default "undefined" stability level.
func WithTraces ¶
func WithTraces(createTraces CreateTracesFunc, sl component.StabilityLevel) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTracesExporter and the default "undefined" stability level.
Directories ¶
Path | Synopsis |
---|---|
debugexporter
module
|
|
Package exporterhelper provides helper functions for exporters.
|
Package exporterhelper provides helper functions for exporters. |
exporterhelperprofiles
Module
|
|
xexporterhelper
Module
|
|
exporterprofiles
module
|
|
loggingexporter
module
|
|
nopexporter
module
|
|
otlpexporter
module
|
|
otlphttpexporter
module
|
|
xexporter
module
|