Errorgap.Configuration (errorgap v0.6.0)

Copy Markdown View Source

Reads the runtime configuration from the :errorgap application env, with ERRORGAP_* environment variables as defaults.

Summary

Functions

Build a Configuration from application env + ERRORGAP_* env vars.

True when nothing should be sent from the configured environment.

Types

t()

@type t() :: %Errorgap.Configuration{
  api_key: String.t() | nil,
  apm_enabled: boolean(),
  apm_sample_rate: float(),
  async: boolean(),
  before_notify: (map() -> map() | false | nil) | {module(), atom()} | nil,
  endpoint: String.t(),
  environment: String.t(),
  filter_keys: [String.t()],
  ignore_environments: [String.t()],
  logs_enabled: boolean(),
  max_breadcrumbs: non_neg_integer(),
  minimum_log_level: String.t(),
  project_id: String.t() | nil,
  project_slug: String.t() | nil,
  queue_size: pos_integer(),
  release: String.t() | nil,
  remote_settings: boolean(),
  root_directory: String.t(),
  timeout: pos_integer()
}

Functions

build()

Build a Configuration from application env + ERRORGAP_* env vars.

ignored_environment?(config)

True when nothing should be sent from the configured environment.

validate!(config)