Elixir

Altix ErrorTrack speaks the Sentry protocol, so you use the official sentry SDK. The snippets below use a placeholder DSN; your project's setup page shows them with the real one.

  1. Install the SDK

    Add sentry, the official Sentry SDK. It works unmodified with Altix ErrorTrack.

    elixir

    # mix.exs
    defp deps do
      [
        {:sentry, "~> 14.0"},
        {:jason, "~> 1.1"},
        {:hackney, "~> 1.8"}
      ]
    end
  2. Configure it

    Initialise the SDK as early as possible in your app, with your DSN.

    config/config.exs

    config :sentry,
      dsn: "https://<public-key>@errortrack.altixcode.com/<project-id>",
      release: "my-app@1.0.0",
      environment_name: Mix.env(),
      enable_source_code_context: true,
      root_source_code_paths: [File.cwd!()]
  3. Verify

    Trigger an error on purpose. It appears in your issue stream within seconds.

    elixir

    try do
      raise "My first ErrorTrack error"
    rescue
      exception -> Sentry.capture_exception(exception, stacktrace: __STACKTRACE__)
    end

Create a project and its setup page fills in your real DSN.