Documentation
¶
Index ¶
- func NewTranslator(opts ...common.TranslatorOption) common.ComponentTranslator
- func NewTranslatorWithNameAndSection(name string, telemetrySectionKey string) common.ComponentTranslator
- func WithMetadataKeys(keys []string) common.TranslatorOption
- func WithSendBatchMaxSize(size uint32) common.TranslatorOption
- func WithSendBatchSize(size uint32) common.TranslatorOption
- func WithTelemetrySection(section string) common.TranslatorOption
- func WithTimeout(timeout time.Duration) common.TranslatorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTranslator ¶ added in v1.300062.0
func NewTranslator(opts ...common.TranslatorOption) common.ComponentTranslator
NewTranslator creates a new batch processor translator with options
func NewTranslatorWithNameAndSection ¶
func NewTranslatorWithNameAndSection(name string, telemetrySectionKey string) common.ComponentTranslator
Use NewTranslator with WithName and WithTelemetrySection options
func WithMetadataKeys ¶ added in v1.300069.0
func WithMetadataKeys(keys []string) common.TranslatorOption
WithMetadataKeys sets the metadata_keys for per-key batching.
func WithSendBatchMaxSize ¶ added in v1.300069.0
func WithSendBatchMaxSize(size uint32) common.TranslatorOption
WithSendBatchMaxSize sets the maximum number of items per batch export.
func WithSendBatchSize ¶ added in v1.300069.0
func WithSendBatchSize(size uint32) common.TranslatorOption
WithSendBatchSize sets the preferred number of items per batch export.
func WithTelemetrySection ¶ added in v1.300062.0
func WithTelemetrySection(section string) common.TranslatorOption
WithTelemetrySection sets the telemetry section key for the translator
func WithTimeout ¶ added in v1.300062.0
func WithTimeout(timeout time.Duration) common.TranslatorOption
WithTimeout sets a timeout override for the translator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.