From 20860af6b2b5295dbca7d6ba1dc8f2f20b71599f Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Sat, 31 Aug 2024 16:31:07 +0200 Subject: [PATCH] remove metriclabels handling from factory --- logprep/factory.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/logprep/factory.py b/logprep/factory.py index 5e22f9cec..674073b96 100644 --- a/logprep/factory.py +++ b/logprep/factory.py @@ -35,12 +35,8 @@ def create(cls, configuration: dict) -> "Component": ) if not isinstance(component_configuration_dict, dict): raise InvalidConfigSpecificationError(component_name) - metric_labels = {} - if "metric_labels" in configuration[component_name]: - metric_labels = configuration[component_name].pop("metric_labels") component = Configuration.get_class(component_name, component_configuration_dict) component_configuration = Configuration.create( component_name, component_configuration_dict ) - component_configuration.metric_labels = copy.deepcopy(metric_labels) return component(component_name, component_configuration)