Sha256: cbee3de77fad7161007709f4c0b81d26fcefba4d147df79479141f34c306459e

Contents?: true

Size: 760 Bytes

Versions: 29

Compression:

Stored size: 760 Bytes

Contents

ifdef::env-github[]
NOTE: For the best reading experience,
please view this documentation at
https://www.elastic.co/guide/en/apm/agent/ruby/current/introduction.html[elastic.co]
endif::[]

[[getting-started-rails]]
=== Getting started with Rails

[float]
==== Setup

Add the gem to your `Gemfile`:

[source,ruby]
----
gem 'elastic-apm'
----

Create a file `config/elastic_apm.yml`:

[source,yaml]
----
server_url: http://localhost:8200
secret_token: ''
----

Or if you prefer environment variables, skip the file and set `ELASTIC_APM_SERVER_URL` and `ELASTIC_APM_SECRET_TOKEN` in your local or server environment.

This automatically sets up error logging and performance tracking but of course there are knobs to turn if you'd like to. See <<configuration>>.

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
elastic-apm-4.7.3 docs/getting-started-rails.asciidoc
elastic-apm-4.7.2 docs/getting-started-rails.asciidoc
elastic-apm-4.7.1 docs/getting-started-rails.asciidoc
elastic-apm-4.7.0 docs/getting-started-rails.asciidoc
elastic-apm-4.6.2 docs/getting-started-rails.asciidoc
elastic-apm-4.6.1 docs/getting-started-rails.asciidoc
elastic-apm-4.6.0 docs/getting-started-rails.asciidoc
elastic-apm-4.5.1 docs/getting-started-rails.asciidoc
elastic-apm-4.5.0 docs/getting-started-rails.asciidoc
elastic-apm-4.4.0 docs/getting-started-rails.asciidoc
elastic-apm-4.3.0 docs/getting-started-rails.asciidoc
elastic-apm-4.2.0 docs/getting-started-rails.asciidoc
elastic-apm-4.1.0 docs/getting-started-rails.asciidoc
elastic-apm-4.0.0 docs/getting-started-rails.asciidoc
elastic-apm-4.0.0.beta.2 docs/getting-started-rails.asciidoc
elastic-apm-3.15.1 docs/getting-started-rails.asciidoc
elastic-apm-4.0.0.beta.1 docs/getting-started-rails.asciidoc
elastic-apm-3.15.0 docs/getting-started-rails.asciidoc
elastic-apm-3.14.0 docs/getting-started-rails.asciidoc
elastic-apm-3.13.0 docs/getting-started-rails.asciidoc