Skip to main content
Make sure to install the AppSignal collector before proceeding with these instructions.

Install the OpenTelemetry gems

Use Bundler to add the OpenTelemetry SDK, OTLP exporter and instrumentation packages to your application’s Gemfile:
The opentelemetry-instrumentation-all package installs instrumentations for most frameworks and libraries. You can check out a list of instrumented frameworks and libraries in the package’s dependencies on RubyGems. You can also find additional instrumentations for frameworks and libraries in the OpenTelemetry Registry.

Configure OpenTelemetry in your application

Add this appsignal.rb file to your application with the OpenTelemetry exporter and AppSignal configuration. Then, require this file in your application. For Rails applications, add it to an Rails initializer like config/initializers/appsignal.rb. Make sure to update the values below with your AppSignal application name, environment and push API key, and to replace the exporter endpoint with the address of your AppSignal collector if needed.

Test the app!

Now that all the components are connected, start your app and test if you see data arrive in AppSignal. Check the “Errors > Issue list” and “Performance > Traces” page specifically. If after following our installation instructions you still don’t see data in AppSignal, let us know and we’ll help you finalize your OpenTelemetry installation!