Package configparser implements loading of configuration from Viper configuration. The implementation relies on registered factories that allow creating default configuration for each type of receiver/exporter/processor.
func DecodeTypeAndName ¶
DecodeTypeAndName decodes a key in type[/name] format into type and fullName. fullName is the key normalized such that type and name components have spaces trimmed. The "type" part must be present, the forward slash and "name" are optional. typeStr will be non-empty if err is nil.
Load loads a Config from Parser. After loading the config, need to check if it is valid by calling `ValidateConfig`.