Requirements
Collector mode ships in a pre-release version of theappsignal gem.
Collector mode requires Ruby 3.1 or newer. On older Ruby versions the collector_endpoint option is ignored.
Collector mode does not support JRuby. It depends on how Ruby handles forking, which JRuby does something different with.
Installing the OpenTelemetry gems
Collector mode sends data using OpenTelemetry. Theappsignal gem does not install the OpenTelemetry gems, so add appsignal-opentelemetry next to the gem "appsignal" line already in your Gemfile:
bundle install.
The appsignal-opentelemetry gem does nothing on its own. It only installs the OpenTelemetry gem versions that collector mode supports, so you do not have to track them yourself. Its version matches the appsignal gem, so appsignal-opentelemetry 5.0.0 pairs with appsignal 5.0.0.
If those gems are missing or their versions are unsupported, AppSignal logs a warning at startup and does not enter collector mode.
Deploying a collector
You can have AppSignal host a collector for you using the “Hosted Collector” page in your organization’s settings.Configuring the collector
Set thecollector_endpoint configuration option to the address of your collector. When using a hosted collector, this address can be found under “Collector URL” in the “Hosted Collector” settings page.
Set the service_name option as well. It names this application among the services reporting to your collector, so a trace that crosses several of them shows which service did what.