# `ABSmartly.ContextPublisher`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/context_publisher.ex#L1)

Behaviour for publishing context events to the ABSmartly collector.

# `publish`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/context_publisher.ex#L6)

```elixir
@callback publish(
  endpoint :: String.t(),
  api_key :: String.t(),
  application :: String.t(),
  environment :: String.t(),
  event_map :: map(),
  retries :: non_neg_integer()
) :: :ok | {:error, term()}
```

---

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