Installation
A Webmachine application requires a few manual steps to get working.- Create the AppSignal configuration file or configure it with environment variables. For more details on configuring AppSignal, see the Ruby configuration page.
- Make sure AppSignal is required,
require "appsignal". - Configure AppSignal using
Appsignal.config. - Start AppSignal using
Appsignal.start.
app.rb file:
Span attributes
Collector mode only: this applies when AppSignal for Ruby runs in collector mode. It has no effect otherwise.
http.request.method— the request method.url.scheme,url.path, andurl.query— the address that was requested.http.response.status_code— the status your application responded with.
error.type, the class of the error.
Distributed tracing
Collector mode only: this applies when AppSignal for Ruby runs in collector mode. It has no effect otherwise.
traceparent request header continues the trace it names.
The request appears inside the calling service’s trace, under the request that caused it. You can follow a slow request from that service into this application without switching traces.
The HTTP clients AppSignal supports start the trace. A request without the header starts a new one.