Skip to content

[exporterhelper] Enable batching by default in a component #13894

@mx-psi

Description

@mx-psi

@mx-psi Thanks for the table; it was quite helpful.

While not entirely related with this PR, I realized that currently the configoptional flavours don't seem to handle providing an optional configuration that is enabled by default. For example, if an exporter wants to enable batching by default (as it is a better default for good performance for most exporters) and users can choose to disable batching if required, then there is no good way to do this without explicitly handling the nil case in the Unmarshal logic.

Does this make sense or am I misunderstanding the code? If it does make sense, do you think it is worthwhile to handle a case where batch is explicitly set to nil in the config definition?

Originally posted by @lahsivjar in #13865 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions