> ## 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.

# Distributed tracing for Ruby

export const Compatibility = ({versions = [], label = "Available in"}) => {
  if (!Array.isArray(versions) || versions.length === 0) {
    return null;
  }
  const defaultPillStyle = {
    borderColor: "#d4d4d8",
    background: "#f4f4f5",
    color: "#3f3f46"
  };
  const pillStyles = {
    "AppSignal for Elixir": {
      background: "#f3e8ff",
      borderColor: "#d8b4fe",
      color: "#6b21a8"
    },
    "AppSignal for Front-end": {
      background: "#fef9c3",
      borderColor: "#fde047",
      color: "#854d0e"
    },
    "AppSignal for Go": {
      background: "#ccfbf1",
      borderColor: "#5eead4",
      color: "#115e59"
    },
    "AppSignal for JavaScript": {
      background: "#fef9c3",
      borderColor: "#fde047",
      color: "#854d0e"
    },
    "AppSignal for Node.js": {
      background: "#dcfce7",
      borderColor: "#86efac",
      color: "#166534"
    },
    "AppSignal for Python": {
      background: "#dbeafe",
      borderColor: "#93c5fd",
      color: "#1e40af"
    },
    "AppSignal for Ruby": {
      background: "#fee2e2",
      borderColor: "#fca5a5",
      color: "#991b1b"
    },
    "AppSignal for Rust": {
      background: "#ffedd5",
      borderColor: "#fdba74",
      color: "#9a3412"
    }
  };
  const getPillStyle = name => ({
    ...defaultPillStyle,
    ...pillStyles[name] || ({})
  });
  return <div className="not-prose my-4 rounded-lg border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm dark:border-white/10 dark:bg-white/5">
      <div className="flex flex-wrap items-center gap-x-2 gap-y-1">
        <span className="font-semibold text-zinc-700 dark:text-zinc-200">
          {label}:
        </span>
        {versions.map((v, i) => <span key={`${v.name}-${v.version}-${i}`} className="inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium" style={getPillStyle(v.name)}>
            <span>{v.name}</span>
            <span className="opacity-70">
              {v.version}
              {v.exact ? "" : "+"}
            </span>
          </span>)}
      </div>
    </div>;
};

<Compatibility versions={[{ name: "AppSignal for Ruby", version: "5.0.0" }]} />

<Note>
  **Collector mode only:** this applies when AppSignal for Ruby runs in [collector mode](/ruby/configuration/collector). It has no effect otherwise.
</Note>

[Distributed tracing](/distributed-tracing) shows a request as one trace across every service it passed through.

AppSignal for Ruby does this for the integrations below. You do not have to pass anything between your services.

## HTTP clients

Requests made with these libraries carry the current trace to the service being called:

* [Excon](/ruby/integrations/excon)
* [Faraday](/ruby/integrations/faraday)
* [HTTP.rb](/ruby/integrations/http)
* [Net::HTTP](/ruby/integrations/net-http)

## HTTP servers

Requests that arrive carrying a trace continue it:

* [Grape](/ruby/integrations/grape)
* [Hanami](/ruby/integrations/hanami)
* [Padrino](/ruby/integrations/padrino)
* [Rack](/ruby/integrations/rack)
* [Rails](/ruby/integrations/rails)
* [Sinatra](/ruby/integrations/sinatra)
* [Webmachine](/ruby/integrations/webmachine)

## Background jobs

Jobs run in the same trace as the code that enqueued them:

* [Active Job](/ruby/integrations/active-job)
* [Delayed Job](/ruby/integrations/delayed-job)
* [Que](/ruby/integrations/que)
* [Resque](/ruby/integrations/resque)
* [Shoryuken](/ruby/integrations/shoryuken)
* [Sidekiq](/ruby/integrations/sidekiq)

How the trace reaches a job differs per library. Each integration's page describes its own behavior and limits.
