Skip to content

Commit

Permalink
WIP, there is a bug with the popping of elements of mapping_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Nov 1, 2023
1 parent ee01912 commit 2f302f1
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ def traverse_configuration(schema_dictionary, configuration_dictionary):
def traverse(
schema_dictionary, configuration_dictionary, mapping_path
):
print("/".join(mapping_path))

mapping_path_joined = "/".join(mapping_path)

if "trace_id_ratio_based" in mapping_path_joined:
set_trace

print(mapping_path_joined)
# print(mapping_path)

if "properties" in schema_dictionary.keys():
Expand All @@ -123,6 +129,9 @@ def traverse(
mapping_path[-1] = f"{mapping_path[-1]}/properties"
schema_dictionary = schema_dictionary["properties"]

if mapping_path and "logger_provider/properties" == mapping_path[-1]:
set_trace

for configuration_dictionary_key, configuration_dictionary_value in (
configuration_dictionary.items()
):
Expand Down Expand Up @@ -153,6 +162,9 @@ def traverse(
element,
mapping_path
)
# FIXME adding this apparently causes an issue and
# fixes another one. Look at mapping_path.
mapping_path.pop()

mapping_path = []

Expand Down

0 comments on commit 2f302f1

Please sign in to comment.