> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrade from AppSignal for Ruby gem 4.x to 5.x

> A guide to help applications upgrade from AppSignal for Ruby gem 4 to version 5.

Upgrading from AppSignal for Ruby 4.x to 5.x requires no changes to your application. Update the gem and your app reports data in the same way as it did with 4.x.

<h2 id="upgrade-to-the-latest-5-x-series">
  Upgrade to the latest 5.x series
</h2>

In the app's `Gemfile`, remove or update any version lock on the `appsignal` gem, and run `bundle update appsignal` in a terminal in the same directory as the `Gemfile`.

<CodeGroup>
  ```ruby Ruby theme={null}
  # Gemfile

  gem "appsignal", "~> 5.0"
  ```
</CodeGroup>

<h2 id="collector-mode">
  Collector mode
</h2>

AppSignal for Ruby 5.x adds [collector mode](/ruby/configuration/collector), which sends data to an AppSignal collector using OpenTelemetry. Collector mode is optional: the gem only uses it when you set the [`collector_endpoint`](/ruby/configuration/options#option-collector_endpoint) option.

To move your app to collector mode after upgrading, follow [migrating to collector mode](/ruby/configuration/collector#migrating).
