Skip to content

Commit

Permalink
More WIP on recursion handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Nov 7, 2023
1 parent 1eba10e commit 0a0f26b
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 488 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def traverse(
mapping_path,
mapping_paths
)
set_trace()
mapping_path.pop()

elif isinstance(configuration_dictionary_value, list):
Expand All @@ -169,7 +168,6 @@ def traverse(
mapping_path,
mapping_paths
)
set_trace()
mapping_path.pop()

mapping_paths = []
Expand All @@ -180,8 +178,6 @@ def traverse(

path_function

set_trace()

return mapping_paths


Expand Down Expand Up @@ -212,7 +208,7 @@ def traverse(schema_dictionary, schema_path, schema_paths):
schema_dictionary = schema_dictionary["properties"]

if "sampler" in schema_path[-1]:
set_trace()
set_trace

for schema_dictionary_key, schema_dictionary_value in (
schema_dictionary.items()
Expand Down
285 changes: 285 additions & 0 deletions prototypes/python/tests/data/result_mapping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
# flake8: noqa: E501


def logger_provider(*args, **kwargs):
pass


def logger_provider_processors(*args, **kwargs):
pass


def logger_provider_processors_batch(*args, **kwargs):
pass


def logger_provider_processors_batch_exporter(*args, **kwargs):
pass


def logger_provider_processors_batch_exporter_otlp(*args, **kwargs):
pass


def logger_provider_processors_batch_exporter_otlp_headers(*args, **kwargs):
pass


def logger_provider_limits(*args, **kwargs):
pass


def meter_provider(*args, **kwargs):
pass


def meter_provider_readers(*args, **kwargs):
pass


def meter_provider_readers_pull(*args, **kwargs):
pass


def meter_provider_readers_pull_exporter(*args, **kwargs):
pass


def meter_provider_readers_pull_exporter_prometheus(*args, **kwargs):
pass


def meter_provider_readers_properties(*args, **kwargs):
pass


def meter_provider_readers_periodic(*args, **kwargs):
pass


def meter_provider_readers_periodic_exporter(*args, **kwargs):
pass


def meter_provider_readers_periodic_exporter_otlp(*args, **kwargs):
pass


def meter_provider_readers_periodic_exporter_otlp_headers(*args, **kwargs):
pass


def meter_provider_readers_properties(*args, **kwargs):
pass


def meter_provider_readers_periodic(*args, **kwargs):
pass


def meter_provider_readers_periodic_exporter(*args, **kwargs):
pass


def meter_provider_readers_periodic_exporter_console(*args, **kwargs):
pass


def meter_provider_views(*args, **kwargs):
pass


def meter_provider_views_selector(*args, **kwargs):
pass


def meter_provider_views_stream(*args, **kwargs):
pass


def meter_provider_views_stream_aggregation(*args, **kwargs):
pass


def meter_provider_views_stream_aggregation_explicit_bucket_histogram(*args, **kwargs):
pass


def propagator(*args, **kwargs):
pass


def tracer_provider(*args, **kwargs):
pass


def tracer_provider_processors(*args, **kwargs):
pass


def tracer_provider_processors_batch(*args, **kwargs):
pass


def tracer_provider_processors_batch_exporter(*args, **kwargs):
pass


def tracer_provider_processors_batch_exporter_otlp(*args, **kwargs):
pass


def tracer_provider_processors_batch_exporter_otlp_headers(*args, **kwargs):
pass


def tracer_provider_processors_properties(*args, **kwargs):
pass


def tracer_provider_processors_batch(*args, **kwargs):
pass


def tracer_provider_processors_batch_exporter(*args, **kwargs):
pass


def tracer_provider_processors_batch_exporter_zipkin(*args, **kwargs):
pass


def tracer_provider_processors_properties(*args, **kwargs):
pass


def tracer_provider_processors_simple(*args, **kwargs):
pass


def tracer_provider_processors_simple_exporter(*args, **kwargs):
pass


def tracer_provider_processors_simple_exporter_console(*args, **kwargs):
pass


def tracer_provider_limits(*args, **kwargs):
pass


def tracer_provider_sampler(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_root(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_root_trace_id_ratio_based(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_remote_parent_sampled(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_remote_parent_sampled_always_on(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_remote_parent_not_sampled(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_remote_parent_not_sampled_always_off(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_local_parent_sampled(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_local_parent_sampled_always_on(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_local_parent_not_sampled(*args, **kwargs):
pass


def tracer_provider_sampler_parent_based_local_parent_not_sampled_always_off(*args, **kwargs):
pass


def resource(*args, **kwargs):
pass


def resource_attributes(*args, **kwargs):
pass


path_function = {
"properties/logger_provider": logger_provider,
"properties/logger_provider/properties/processors": logger_provider_processors,
"properties/logger_provider/properties/processors/items/properties/batch": logger_provider_processors_batch,
"properties/logger_provider/properties/processors/items/properties/batch/properties/exporter": logger_provider_processors_batch_exporter,
"properties/logger_provider/properties/processors/items/properties/batch/properties/exporter/properties/otlp": logger_provider_processors_batch_exporter_otlp,
"properties/logger_provider/properties/processors/items/properties/batch/properties/exporter/properties/otlp/properties/headers": logger_provider_processors_batch_exporter_otlp_headers,
"properties/logger_provider/properties/limits": logger_provider_limits,
"properties/meter_provider": meter_provider,
"properties/meter_provider/properties/readers": meter_provider_readers,
"properties/meter_provider/properties/readers/items/properties/pull": meter_provider_readers_pull,
"properties/meter_provider/properties/readers/items/properties/pull/properties/exporter": meter_provider_readers_pull_exporter,
"properties/meter_provider/properties/readers/items/properties/pull/properties/exporter/properties/prometheus": meter_provider_readers_pull_exporter_prometheus,
"properties/meter_provider/properties/readers/items/properties": meter_provider_readers_properties,
"properties/meter_provider/properties/readers/items/properties/items/properties/periodic": meter_provider_readers_periodic,
"properties/meter_provider/properties/readers/items/properties/items/properties/periodic/properties/exporter": meter_provider_readers_periodic_exporter,
"properties/meter_provider/properties/readers/items/properties/items/properties/periodic/properties/exporter/properties/otlp": meter_provider_readers_periodic_exporter_otlp,
"properties/meter_provider/properties/readers/items/properties/items/properties/periodic/properties/exporter/properties/otlp/properties/headers": meter_provider_readers_periodic_exporter_otlp_headers,
"properties/meter_provider/properties/readers/items/properties/items/properties": meter_provider_readers_properties,
"properties/meter_provider/properties/readers/items/properties/items/properties/items/properties/periodic": meter_provider_readers_periodic,
"properties/meter_provider/properties/readers/items/properties/items/properties/items/properties/periodic/properties/exporter": meter_provider_readers_periodic_exporter,
"properties/meter_provider/properties/readers/items/properties/items/properties/items/properties/periodic/properties/exporter/properties/console": meter_provider_readers_periodic_exporter_console,
"properties/meter_provider/properties/views": meter_provider_views,
"properties/meter_provider/properties/views/items/properties/selector": meter_provider_views_selector,
"properties/meter_provider/properties/views/items/properties/stream": meter_provider_views_stream,
"properties/meter_provider/properties/views/items/properties/stream/properties/aggregation": meter_provider_views_stream_aggregation,
"properties/meter_provider/properties/views/items/properties/stream/properties/aggregation/properties/explicit_bucket_histogram": meter_provider_views_stream_aggregation_explicit_bucket_histogram,
"properties/propagator": propagator,
"properties/tracer_provider": tracer_provider,
"properties/tracer_provider/properties/processors": tracer_provider_processors,
"properties/tracer_provider/properties/processors/items/properties/batch": tracer_provider_processors_batch,
"properties/tracer_provider/properties/processors/items/properties/batch/properties/exporter": tracer_provider_processors_batch_exporter,
"properties/tracer_provider/properties/processors/items/properties/batch/properties/exporter/properties/otlp": tracer_provider_processors_batch_exporter_otlp,
"properties/tracer_provider/properties/processors/items/properties/batch/properties/exporter/properties/otlp/properties/headers": tracer_provider_processors_batch_exporter_otlp_headers,
"properties/tracer_provider/properties/processors/items/properties": tracer_provider_processors_properties,
"properties/tracer_provider/properties/processors/items/properties/items/properties/batch": tracer_provider_processors_batch,
"properties/tracer_provider/properties/processors/items/properties/items/properties/batch/properties/exporter": tracer_provider_processors_batch_exporter,
"properties/tracer_provider/properties/processors/items/properties/items/properties/batch/properties/exporter/properties/zipkin": tracer_provider_processors_batch_exporter_zipkin,
"properties/tracer_provider/properties/processors/items/properties/items/properties": tracer_provider_processors_properties,
"properties/tracer_provider/properties/processors/items/properties/items/properties/items/properties/simple": tracer_provider_processors_simple,
"properties/tracer_provider/properties/processors/items/properties/items/properties/items/properties/simple/properties/exporter": tracer_provider_processors_simple_exporter,
"properties/tracer_provider/properties/processors/items/properties/items/properties/items/properties/simple/properties/exporter/properties/console": tracer_provider_processors_simple_exporter_console,
"properties/tracer_provider/properties/limits": tracer_provider_limits,
"properties/tracer_provider/properties/sampler": tracer_provider_sampler,
"properties/tracer_provider/properties/sampler/properties/parent_based": tracer_provider_sampler_parent_based,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/root": tracer_provider_sampler_parent_based_root,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/root/properties/trace_id_ratio_based": tracer_provider_sampler_parent_based_root_trace_id_ratio_based,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/remote_parent_sampled": tracer_provider_sampler_parent_based_remote_parent_sampled,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/remote_parent_sampled/properties/always_on": tracer_provider_sampler_parent_based_remote_parent_sampled_always_on,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/remote_parent_not_sampled": tracer_provider_sampler_parent_based_remote_parent_not_sampled,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/remote_parent_not_sampled/properties/always_off": tracer_provider_sampler_parent_based_remote_parent_not_sampled_always_off,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/local_parent_sampled": tracer_provider_sampler_parent_based_local_parent_sampled,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/local_parent_sampled/properties/always_on": tracer_provider_sampler_parent_based_local_parent_sampled_always_on,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/local_parent_not_sampled": tracer_provider_sampler_parent_based_local_parent_not_sampled,
"properties/tracer_provider/properties/sampler/properties/parent_based/properties/local_parent_not_sampled/properties/always_off": tracer_provider_sampler_parent_based_local_parent_not_sampled_always_off,
"properties/resource": resource,
"properties/resource/properties/attributes": resource_attributes
}
Loading

0 comments on commit 0a0f26b

Please sign in to comment.