API Reference Impact v#0.0.1
Copy MarkdownModules
Impact is an OpenTelemetry-native SDK for capturing LLM/AI traces from Elixir applications and exporting them to Impact via OTLP.
Span helpers for AWS Bedrock Converse-style API calls.
Resolves Impact configuration from init/1 options and environment variables.
Stores Impact request context on the current OpenTelemetry baggage so that
the canonical impact.context.<key> attributes ride with the OTel context
across process boundaries (GenServer calls, Tasks, anywhere
OpenTelemetry.Ctx.attach/1 is used).
Auto-instrumentation for AWS Bedrock LLM calls made via Req.
Auto-instrumentation for OpenAI-compatible Chat Completions endpoints via
Req. Works for OpenAI proper (api.openai.com), Azure OpenAI, and the
OpenAI-compatible AWS Bedrock endpoint (bedrock-*.api.aws).
Provider lifecycle: bootstrap / attach according to Impact.Config.mode.
Cross-process OpenTelemetry context propagation.
One-call runtime configuration. Designed to be invoked from config/runtime.exs
in a Phoenix/Mix application — BEFORE any application starts — so the
:opentelemetry and :opentelemetry_exporter supervision trees boot with
Impact's OTLP endpoint and auth header already wired in.
Span helpers for LLM tool / function calls. Provider-agnostic — works for any agent loop where the LLM emits structured tool requests and the app executes them.
Manual span helper. Emits the canonical Impact trace attributes