# `Orchid.Runner.Hooks.Telemetry`
[🔗](https://github.com/SynapticStrings/Orchid/blob/main/lib/orchid/runner_hooks/telemetry.ex#L1)

# `call`
[🔗](https://github.com/SynapticStrings/Orchid/blob/main/lib/orchid/runner_hooks/telemetry.ex#L7)

```elixir
@spec call(Orchid.Runner.Context.t(), Orchid.Runner.Hook.next_fn()) ::
  Orchid.Runner.Hook.hook_result()
```

# `error_handler`
[🔗](https://github.com/SynapticStrings/Orchid/blob/main/lib/orchid/runner_hooks/telemetry.ex#L74)

A helper error handler for Telemetry step exceptions.

When you want to log step exceptions, you can attach this handler to the
`[:orchid, :step, :exception]` event.

### Example

    # In iex.exs or your application startup
    :telemetry.attach(
      "orchid-step-exception-logger",
      [:orchid, :step, :exception],
      &Orchid.Runner.Hooks.Telemetry.error_handler/4,
      %{}
    )

---

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