Skip to content

Commit

Permalink
remove metriclabels handling from factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Aug 31, 2024
1 parent 2c47bd8 commit 20860af
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions logprep/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 20860af

Please sign in to comment.