View Source otel_configuration (opentelemetry v1.3.0)

Merges environment variable configuration values with application configuration. The OS environment variables take precedence over the application environment.

Link to this section Summary

Link to this section Types

-type t() ::
    #{log_level := atom(),
      register_loaded_applications := boolean() | undefined,
      create_application_tracers := boolean() | undefined,
      id_generator := module(),
      deny_list := [atom()],
      resource_detectors := [module()],
      resource_detector_timeout := integer(),
      bsp_scheduled_delay_ms := integer() | undefined,
      bsp_exporting_timeout_ms := integer() | undefined,
      bsp_max_queue_size := integer() | undefined,
      ssp_exporting_timeout_ms := integer() | undefined,
      text_map_propagators := [atom()],
      traces_exporter := {atom(), term()} | none | undefined,
      metrics_exporter := {atom(), term()} | none | undefined,
      views := list(),
      readers := [#{id := atom(), module => module(), config => map()}],
      processors := list(),
      sampler := {atom(), term()},
      sweeper :=
          #{sinterval => integer() | infinity,
            strategy => atom() | fun(),
            span_ttl => integer() | infinity,
            storage_size => integer() | infinity},
      attribute_count_limit := integer(),
      attribute_value_length_limit := integer() | infinity,
      event_count_limit := integer(),
      link_count_limit := integer(),
      attribute_per_event_limit := integer(),
      attribute_per_link_limit := integer()}.

Link to this section Functions

Link to this function

merge_list_with_environment(ConfigMappings, AppEnv, ConfigMap)

View Source
-spec merge_list_with_environment([{OSVar, Key, Transform}], AppEnv, ConfigMap) -> ConfigMap
                               when
                                   OSVar :: string(),
                                   Key :: atom(),
                                   Transform :: atom(),
                                   AppEnv :: [{atom(), term()}],
                                   ConfigMap :: map().
-spec merge_with_os(list()) -> t().