Install the OpenTelemetry gems
Use Bundler to add the OpenTelemetry SDK, OTLP exporter and instrumentation packages to your application’s Gemfile: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 thisappsignal.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.