Impact.Config (Impact v0.0.1)

Copy Markdown

Resolves Impact configuration from init/1 options and environment variables.

Endpoint resolution order (matches the JS SDK):

  1. :endpoint passed to Impact.init/1
  2. IMPACT_BASE_URL
  3. derived from an impact_<region>_* API key (https://api.<region>.<domain>)

Summary

Types

t()

@type t() :: %Impact.Config{
  api_key: String.t() | nil,
  capture_content: boolean(),
  diag_log_level: :none | :error | :warn | :info | :debug | :verbose,
  endpoint: String.t() | nil,
  mode: :auto | :bootstrap | :attach,
  service_name: String.t()
}

Functions

build(opts)

@spec build(keyword()) :: {:ok, t()} | {:error, term()}

current()

@spec current() :: t() | nil