Changelog

Improving AppSignal, one deploy at a time.

Nov 06, 2024

Fix check-ins not being sent and other improvements

Elixir2.13.1

Added

  • Add reported_by tag to errors reported by the legacy error backend. This makes it easier to understand whether an error is being reported by the error backend.
  • Set the app revision config option for Scalingo deploys automatically. If the CONTAINER_VERSION system environment variable is present, it will use used to set the revision config option automatically. Overwrite it's value by configuring the revision config option for your application.

Changed

  • Change the primary download mirror for integrations.

Fixed

  • Fix parentheses warning for Tesla on Elixir 1.17.x.

  • Fix an issue where, after a certain amount of time, check-ins would no longer be sent.

    This issue also caused the default Hackney connection pool to be saturated, affecting other code that uses the default Hackney connection pool.

View the Elixir package v2.13.1 changelog for more information.

Sep 26, 2024

Heartbeat check-ins and other improvements

Elixir2.13.0

Added

  • Add support for heartbeat check-ins.

    Use the Appsignal.CheckIn.heartbeat method to send a single heartbeat check-in event from your application. This can be used, for example, in a GenServer's callback:

    Elixir
    @impl true def handle_cast({:process_job, job}, jobs) do Appsignal.CheckIn.heartbeat("job_processor") {:noreply, [job | jobs], {:continue, :process_job}} end

    Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the .heartbeat method is called, at most one heartbeat with the same identifier will be sent every ten seconds.

    Pass continuous: true as the second argument to send heartbeats continuously during the entire lifetime of the current process. This can be used, for example, during a GenServer's initialisation:

    Elixir
    @impl true def init(_arg) do Appsignal.CheckIn.heartbeat("my_genserver", continuous: true) {:ok, nil} end

    You can also use Appsignal.CheckIn.Heartbeat as a supervisor's child process, in order for heartbeats to be sent continuously during the lifetime of the supervisor. This can be used, for example, during an Application's start:

    Elixir
    @impl true def start(_type, _args) do Supervisor.start_link([ {Appsignal.CheckIn.Heartbeat, "my_application"} ], strategy: :one_for_one, name: MyApplication.Supervisor) end

Changed

  • Send check-ins concurrently. When calling Appsignal.CheckIn.cron, instead of blocking the current process while the check-in events are sent, schedule them to be sent in a separate process.

View the Elixir package v2.13.0 changelog for more information.

Aug 26, 2024

Fix Ecto transactions in parallel preloads

Elixir2.12.3

Fixed

  • Make Appsignal.Ecto.Repo's default_options/1 function overridable. If your Ecto repo uses Appsignal.Ecto.Repo and implements its own default_options/1, it must call super to merge its default options with those of Appsignal.Ecto.Repo:

    Elixir
    defmodule MyEctoRepo use Appsignal.Ecto.Repo def default_options(operation) do super(operation) ++ [ # ... your default options here ... ] end end
  • Fix an issue where Ecto transactions in parallel preloads would not be instrumented correctly when using Appsignal.Ecto.Repo, causing the query in the Ecto transaction to not be instrumented and the sample to be incorrectly closed as an earlier time.

View the Elixir package v2.12.3 changelog for more information.

Aug 14, 2024

Rename heartbeats to cron check-ins

Elixir2.12.2

Changed

  • Rename heartbeats to cron check-ins. Calls to Appsignal.heartbeat and Appsignal.Heartbeat should be replaced with calls to Appsignal.CheckIn.cron and Appsignal.CheckIn.Cron, for example:

    Elixir
    # Before Appsignal.heartbeat("do_something", fn -> do_something() end) # After Appsignal.CheckIn.cron("do_something", fn -> do_something end)

Deprecated

  • Calls to Appsignal.heartbeat and to methods in Appsignal.Heartbeat will emit a deprecation warning at compile-time.

View the Elixir package v2.12.2 changelog for more information.

Jun 25, 2024

Elixir package v2.12.1

Elixir2.12.1

Fixed

  • When running the installation script on Microsoft Windows, some components threw an error. AppSignal doesn't support Windows, so the installation script won't run on Windows anymore. Preventing errors from raising.

View the Elixir package v2.12.1 changelog for more information.

Jun 05, 2024

Report GraphQL queries by operation names

Elixir2.12.0

Changed

Group GraphQL queries by operation names if available. It will no longer group all errors and performance measurements under the same action name. If no operation name is set, it will use the default action name of the HTTP request route, like POST /graphql.

If you do not wish to use the operation name, or customize the action name for the GraphQL query request, use the Appsignal.Span.set_name in a plug middleware that is called before or after the HTTP request is made:

Elixir
Appsignal.Span.set_name(Appsignal.Tracer.root_span(), "MyActionName")

See the Elixir package 2.12.0 changelog for more information.

Jun 04, 2024

Error backend turned off by default

Elixir2.11.0

Added

  • Add Appsignal.Span.set_name_if_nil helper. This helper can be used to not overwrite previously set span names, and only set the span name if it wasn't set previously. This will used most commonly in AppSignal created integrations with other libraries to allow apps to set custom span names.

Changed

  • Turn error backend off by default. This will prevent errors from being reported without much context. If you're missing errors after this change, set the enable_error_backend config option to true, and let us know what errors you're missing at support@appsignal.com.
  • Add debug and error logs to probes to better track what it's doing. This is helpful when debugging issues with the minutely probes system.

See the Elixir package 2.11.0 changelog for more information.

May 14, 2024

Support Kamal deployments

Elixir2.10.2

Support Kamal-based deployments. Read the KAMAL_VERSION environment variable, which Kamal exposes within the deployed container, if present, and use it as the application revision if it is not set. This will automatically report deploy markers for applications using Kamal.


See the Elixir package 2.10.2 changelog for more information.

Apr 22, 2024

Add heartbeats and `ignore_logs` config option

Elixir2.10.0

Added

ignore_logs configuration option

Add the ignore_logs configuration option, which can also be configured as the APPSIGNAL_IGNORE_LOGS environment variable.

The value of ignore_logs is a list (comma-separated, when using the environment variable) of log line messages that should be ignored. For example, the value "start" will cause any message containing the word "start" to be ignored. Any log line message containing a value in ignore_logs will not be reported to AppSignal.

The values can use a small subset of regular expression syntax (specifically, ^, $ and .*) to narrow or expand the scope of lines that should be matched.

For example, the value "^start$" can be used to ignore any message that is exactly the word "start", but not messages that merely contain it, like "Process failed to start". The value "Task .* succeeded" can be used to ignore messages about task success regardless of the specific task name.

Heartbeats

Heartbeats are currently only available to beta testers. If you are interested in trying it out, send an email to support@appsignal.com!


Add heartbeats support. You can send heartbeats directly from your code, to track the execution of certain processes:

Elixir
def send_invoices do # ... your code here ... Appsignal.heartbeat("send_invoices") end

You can pass a function to Appsignal.heartbeat, to report to AppSignal both when the process starts, and when it finishes, allowing you to see the duration of the process:

Elixir
def send_invoices do Appsignal.heartbeat("send_invoices", fn -> # ... your code here ... end) end

If an exception is thrown within the function, the finish event will not be reported to AppSignal, triggering a notification about the missing heartbeat. The exception will bubble outside of the heartbeat function.

Changed

Remove a broken link pointing to a 1.x upgrade page during the installation flow.


See the Elixir package 2.10.0 changelog for more information.

Start your free trial

Don’t let the bad bugs bite. Try AppSignal for free.

AppSignal offers a 30-day free trial, no credit card is required. All features are available in all plans. Start monitoring your application in just a few clicks!