Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 927 Bytes

getting-started-with-ash-appsignal.md

File metadata and controls

42 lines (32 loc) · 927 Bytes

Getting Started with AshAppsignal

Installation

Add ash_appsignal to your list of dependencies in mix.exs:

def deps do
  [
    {:ash_appsignal, "~> 0.1.2"}
  ]
end

Configuration

After installing the ash_appsignal dependency, add this to your config:

# `config` supports a list, so this can be combined with other tracers
config :ash, :tracer, [AshAppsignal]

# Optionally configure span types to be sent to appsignal. The default is
# [:custom, :action, :flow]
# We suggest using this list. It trims down some noisy traces that Ash emits
config :ash_appsignal,
  trace_types: [
    :custom,
    :action,
    :before_transaction,
    :before_action,
    :after_transaction,
    :after_action,
    :custom_flow_step,
    :flow
  ]

For all available types, see the documentation for Ash.Tracer.

Thats it! Additional traces and spans from Ash will now be displayed in AppSignal.