Packages
EndPointBlank Elixir client library: authorization plus request/response/error/log ingestion (with masking, batching, timeouts, and a bounded queue) — also used for self-monitoring.
Current section
Files
Jump to
Current section
Files
lib/end_point_blank.ex
defmodule EndPointBlank do
@version "0.3.2"
def version, do: @version
@doc """
Configures the EndPointBlank library.
## Options
* `:base_url` - Authorization and update endpoint base URL
* `:log_base_url` - Logging endpoint base URL
* `:client_id` - API credential client ID
* `:client_secret` - API credential client secret
* `:app_name` - Application identifier sent with every payload
* `:environment` - Deployment environment (e.g. "development")
* `:application_version` - App version string (e.g. a git SHA)
* `:log_mode` - `:direct` (synchronous) or `:delayed` (background queue)
* `:token_ttl` - Optional access-token TTL in seconds
* `:version_finder` - Optional 1-arity function for custom version detection
## Example
EndPointBlank.configure(
base_url: "http://localhost:4001",
log_base_url: "http://localhost:4001",
client_id: "my-client-id",
client_secret: "my-client-secret",
app_name: "my-app",
environment: "development",
log_mode: :direct
)
"""
def configure(opts) when is_list(opts) do
EndPointBlank.Config.update(opts)
end
end