# `Jidoka.Trace.Sink`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/trace/sink.ex#L1)

Behaviour and delegator for trace sinks.

A trace sink receives already-projected and policy-filtered trace entries. It
should not need access to runtime capabilities, credentials, or mutable agent
state.

# `sink`

```elixir
@type sink() :: module() | {module(), keyword() | map()}
```

# `record`

```elixir
@callback record([map()], Jidoka.Trace.Policy.t(), keyword()) :: :ok | {:error, term()}
```

Records already-filtered trace entries.

# `record`

```elixir
@spec record(sink(), [map()], Jidoka.Trace.Policy.t(), keyword()) ::
  :ok | {:error, term()}
```

Records trace entries through a sink module or configured sink tuple.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
