omni::telemetry::kReplaceExtraFieldsSetting

Defined in omni/structuredlog/Telemetry.h

constexpr const char *const omni::telemetry::kReplaceExtraFieldsSetting = "/telemetry/replaceExtraFields"

This controls whether the extra fields specified in kExtraFieldsToAddSetting will be replaced in each message if one or more of them already exists or if any fields that already exist in the event will just be ignored.

When set to true, the listed extra fields with their given values will always overwrite any existing fields with the same name. When set to false, if a field with the same name as one of the extra fields already exists in a given event message, it will not be replaced. The default behavior is to never overwrite existing fields (ie: set to false).