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-3.12.1 docs/getting-started-rails.asciidoc
elastic-apm-3.12.0 docs/getting-started-rails.asciidoc
elastic-apm-3.11.1 docs/getting-started-rails.asciidoc
elastic-apm-3.11.0 docs/getting-started-rails.asciidoc
elastic-apm-3.10.1 docs/getting-started-rails.asciidoc
elastic-apm-3.10.0 docs/getting-started-rails.asciidoc
elastic-apm-3.9.0 docs/getting-started-rails.asciidoc
elastic-apm-3.8.0 docs/getting-started-rails.asciidoc
elastic-apm-3.7.0 docs/getting-started-rails.asciidoc